sources

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: 2

Documentation

Index

Constants

View Source
const (
	FileSourceType    types.CatalogSourceType = "localFS"
	URISourceType     types.CatalogSourceType = "uri"
	URIFileSourceType types.CatalogSourceType = "uriFile"
)

Variables

View Source
var ErrNoSourcesByURI = errors.New("no sources found by URI")

Functions

This section is empty.

Types

type CatalogSourceLoader

type CatalogSourceLoader interface {
	Reload(ctx context.Context) error
}

type FileSource

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

func NewFileSource

func NewFileSource(path string) *FileSource

func (*FileSource) Reload

func (s *FileSource) Reload(_ context.Context) error

func (*FileSource) SchemaDocument

func (s *FileSource) SchemaDocument(ctx context.Context) (*ast.SchemaDocument, error)

type MergedSource

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

func MergeSource

func MergeSource(sources ...Source) *MergedSource

func (*MergedSource) Reload

func (s *MergedSource) Reload(ctx context.Context) error

func (*MergedSource) SchemaDocument

func (s *MergedSource) SchemaDocument(ctx context.Context) (*ast.SchemaDocument, error)

type Source

type Source interface {
	SchemaDocument(ctx context.Context) (*ast.SchemaDocument, error)
}

type StringSource

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

func NewStringSource

func NewStringSource(name string, sources ...string) StringSource

func (StringSource) SchemaDocument

func (s StringSource) SchemaDocument(_ context.Context) (*ast.SchemaDocument, error)

type URISource

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

func NewURISource

func NewURISource(db *db.Pool, path string, isFile bool) *URISource

func (*URISource) Reload

func (s *URISource) Reload(ctx context.Context) error

func (URISource) SchemaDocument

func (s URISource) SchemaDocument(ctx context.Context) (*ast.SchemaDocument, error)

Jump to

Keyboard shortcuts

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