provider

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: EUPL-1.2 Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Describable

type Describable interface {
	Provider
}

type ElementSpec

type ElementSpec struct {
	Tag    string `json:"tag"`
	Source string `json:"source"`
}

type Provider

type Provider interface {
	Name() string
	BasePath() string
	RegisterRoutes(*gin.RouterGroup)
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry
Example
registry := NewRegistry()
registry.Add(registryTestProvider{name: "build", basePath: "/build"})

func (*Registry) Add

func (r *Registry) Add(provider Provider)
Example
registry := NewRegistry()
registry.Add(registryTestProvider{name: "build", basePath: "/build"})

func (*Registry) Get

func (r *Registry) Get(name string) Provider
Example
registry := NewRegistry()
registry.Add(registryTestProvider{name: "build", basePath: "/build"})
_ = registry.Get("build")

func (*Registry) Info

func (r *Registry) Info() []map[string]any
Example
registry := NewRegistry()
registry.Add(registryTestProvider{name: "build", basePath: "/build"})
_ = registry.Info()

type Renderable

type Renderable interface {
	Provider
	Element() ElementSpec
}

type Streamable

type Streamable interface {
	Provider
	Channels() []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL