Documentation ¶
Index ¶
- Variables
- type Fetcher
- type PersistConfig
- type Persister
- type Registry
- func (r *Registry) API() avro.API
- func (r *Registry) GetCurrent(ctx context.Context, v schemaIDGetter) (schemaID string, schema *avro.RecordSchema, batchSchema *avro.ArraySchema, ...)
- func (r *Registry) GetSchema(ctx context.Context, id string) (string, *avro.RecordSchema, *avro.ArraySchema, error)
- func (r *Registry) Setup(ctx context.Context, schema avro.Schema, opts ...func(*RegistryConfig)) error
- type RegistryConfig
- type WalkConfig
- type Walker
- type WireFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSchemaID = errors.New("invalid schema ID") ErrInvalidDataWireFormat = errors.New("invalid data wire format") ErrMarshalOperationUnsupported = errors.New("marshal operation unsupported") ErrUnableToResolveSchema = errors.New("unable to resolve schema") ErrUnableToSetupRegistry = errors.New("unable to setup registry") ErrCreateOrUpdateSchemaFailed = errors.New("failed to create or update schema") ErrSchemaNotFound = errors.New("schema not found") )
Functions ¶
This section is empty.
Types ¶
type PersistConfig ¶ added in v0.0.3
type Persister ¶ added in v0.0.3
type Persister interface {
Persist(ctx context.Context, schema *avro.RecordSchema, opts ...func(*PersistConfig)) (id string, err error)
}
type Registry ¶
type Registry struct { WireFormatter // contains filtered or unexported fields }
func New ¶ added in v0.0.3
func New(fetcher Fetcher, persister Persister, wf WireFormatter) *Registry
func (*Registry) GetCurrent ¶ added in v0.0.3
type RegistryConfig ¶
type WalkConfig ¶ added in v0.0.3
type WalkConfig struct {
Namespaces []string
}
Click to show internal directories.
Click to hide internal directories.