schemaClient

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaClientBound

type SchemaClientBound interface {
	// GetSchema retrieves the schema for the given path
	GetSchema(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, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)
	ToPath(ctx context.Context, path []string) (*sdcpb.Path, 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 NewSchemaClientBound

func NewSchemaClientBound(s *sdcpb.Schema, sc schema.Client) *SchemaClientBoundImpl

func (*SchemaClientBoundImpl) GetSchema added in v0.0.39

GetSchema retrieves the schema for the given path

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) ToPath added in v0.0.39

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

Jump to

Keyboard shortcuts

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