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

schemaClient

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const (
	PATHSEP = "/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaClientBound

type SchemaClientBound interface {
	// GetSchema retrieves the schema for the given path
	GetSchemaSdcpbPath(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
	// GetSchemaElements retrieves the Schema Elements for all levels of the given path
	GetSchemaElements(ctx context.Context, path *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)
}

SchemaClientBound provides access to a certain vendor + model + version based schema

type SchemaClientBoundImpl added in v0.0.39

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

func (*SchemaClientBoundImpl) GetSchemaElements added in v0.0.39

func (scb *SchemaClientBoundImpl) GetSchemaElements(ctx context.Context, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)

func (*SchemaClientBoundImpl) GetSchemaSdcpbPath added in v0.0.54

func (scb *SchemaClientBoundImpl) GetSchemaSdcpbPath(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)

GetSchema retrieves the schema for the given path

func (*SchemaClientBoundImpl) Retrieve added in v0.0.54

func (*SchemaClientBoundImpl) ToPath added in v0.0.39

func (scb *SchemaClientBoundImpl) ToPath(ctx context.Context, path []string) (*sdcpb.Path, error)

type SchemaIndexEntry added in v0.0.64

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

func NewSchemaIndexEntry added in v0.0.54

func NewSchemaIndexEntry(schemaRsp *sdcpb.GetSchemaResponse, err error) *SchemaIndexEntry

func (*SchemaIndexEntry) Get added in v0.0.64

func (*SchemaIndexEntry) GetError added in v0.0.64

func (s *SchemaIndexEntry) GetError() error

func (*SchemaIndexEntry) GetReady added in v0.0.64

func (s *SchemaIndexEntry) GetReady() bool

func (*SchemaIndexEntry) GetSchemaResponse added in v0.0.64

func (s *SchemaIndexEntry) GetSchemaResponse() *sdcpb.GetSchemaResponse

func (*SchemaIndexEntry) Lock added in v0.0.64

func (s *SchemaIndexEntry) Lock()

func (*SchemaIndexEntry) SetSchemaResponseAndError added in v0.0.64

func (s *SchemaIndexEntry) SetSchemaResponseAndError(r *sdcpb.GetSchemaResponse, err error)

func (*SchemaIndexEntry) Unlock added in v0.0.64

func (s *SchemaIndexEntry) Unlock()

Jump to

Keyboard shortcuts

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