Documentation ¶
Index ¶
- type SchemaClientBound
- type SchemaClientBoundImpl
- func (scb *SchemaClientBoundImpl) GetSchema(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
- func (scb *SchemaClientBoundImpl) GetSchemaElements(ctx context.Context, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)
- func (scb *SchemaClientBoundImpl) ToPath(ctx context.Context, path []string) (*sdcpb.Path, error)
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
func (scb *SchemaClientBoundImpl) GetSchema(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.