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 FileSource ¶
type FileSource struct {
// contains filtered or unexported fields
}
func NewFileSource ¶
func NewFileSource(path string) *FileSource
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) 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 (URISource) SchemaDocument ¶
Click to show internal directories.
Click to hide internal directories.