Help us shape the future of Go! Take the 2026 Go Developer Survey

catalogs

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCatalogNotFound = errors.New("catalog not found")

Functions

This section is empty.

Types

type Catalog

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

func NewCatalog

func NewCatalog(ctx context.Context, name, prefix string, engine engines.Engine, source sources.Source, asModule, readOnly bool) (*Catalog, error)

func (*Catalog) Name

func (c *Catalog) Name() string

func (*Catalog) Reload

func (c *Catalog) Reload(ctx context.Context) error

func (*Catalog) Schema

func (c *Catalog) Schema() *ast.Schema

type Extension added in v0.1.12

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

func (*Extension) Depends added in v0.1.12

func (e *Extension) Depends() []string

func (*Extension) Engine added in v0.1.12

func (e *Extension) Engine() engines.Engine

func (*Extension) Name added in v0.1.12

func (e *Extension) Name() string

func (*Extension) Reload added in v0.1.12

func (e *Extension) Reload(ctx context.Context, base *ast.Schema) error

func (*Extension) Schema added in v0.1.12

func (e *Extension) Schema() *ast.Schema

func (*Extension) Source added in v0.1.12

func (e *Extension) Source() *ast.SchemaDocument

type Service

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

func New

func New() *Service

func (*Service) AddCatalog

func (s *Service) AddCatalog(ctx context.Context, name string, c *Catalog) error

func (*Service) AddExtension

func (s *Service) AddExtension(ctx context.Context, ext *Extension) error

func (*Service) CatalogSchema

func (s *Service) CatalogSchema(name string) (*ast.Schema, error)

func (*Service) Engine

func (s *Service) Engine(name string) (engines.Engine, error)

func (*Service) ExistsCatalog

func (s *Service) ExistsCatalog(name string) bool

func (*Service) ExistsExtension

func (s *Service) ExistsExtension(name string) bool

func (*Service) NewExtension added in v0.1.12

func (s *Service) NewExtension(ctx context.Context, def types.DataSource, source sources.Source) (*Extension, error)

func (*Service) RebuildSchema

func (s *Service) RebuildSchema(ctx context.Context) error

func (*Service) Reload

func (s *Service) Reload(ctx context.Context, name string) error

func (*Service) RemoveCatalog

func (s *Service) RemoveCatalog(ctx context.Context, name string) error

func (*Service) RemoveExtension

func (s *Service) RemoveExtension(ctx context.Context, name string) error

func (*Service) Schema

func (s *Service) Schema() *ast.Schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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