Documentation
¶
Index ¶
- Constants
- type SchemaClientBound
- type SchemaClientBoundImpl
- func (scb *SchemaClientBoundImpl) GetSchemaElements(ctx context.Context, p *sdcpb.Path, done chan struct{}) (chan *sdcpb.GetSchemaResponse, error)
- func (scb *SchemaClientBoundImpl) GetSchemaSdcpbPath(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
- func (scb *SchemaClientBoundImpl) Retrieve(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, error)
- type SchemaIndexEntry
- func (s *SchemaIndexEntry) Get() (*sdcpb.GetSchemaResponse, error)
- func (s *SchemaIndexEntry) GetError() error
- func (s *SchemaIndexEntry) GetReady() bool
- func (s *SchemaIndexEntry) GetSchemaResponse() *sdcpb.GetSchemaResponse
- func (s *SchemaIndexEntry) Lock()
- func (s *SchemaIndexEntry) SetSchemaResponseAndError(r *sdcpb.GetSchemaResponse, err error)
- func (s *SchemaIndexEntry) Unlock()
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 NewSchemaClientBound ¶
func NewSchemaClientBound(s *config.SchemaConfig, sc schema.Client) *SchemaClientBoundImpl
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 (scb *SchemaClientBoundImpl) Retrieve(ctx context.Context, path *sdcpb.Path) (*sdcpb.GetSchemaResponse, 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 (s *SchemaIndexEntry) Get() (*sdcpb.GetSchemaResponse, error)
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()
Click to show internal directories.
Click to hide internal directories.