fs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(f fs.FS, dir string) *Adapter

func NewDirAdapter

func NewDirAdapter(dir string) *Adapter

func (*Adapter) Get

func (f *Adapter) Get(ctx context.Context, id string) (string, error)

Get implements registry.Fetcher.

func (*Adapter) GetByDefinition

func (f *Adapter) GetByDefinition(ctx context.Context, schema avro.Schema) (string, error)

GetByDefinition implements registry.Fetcher.

func (*Adapter) Persist

func (p *Adapter) Persist(ctx context.Context, schema *avro.RecordSchema, opts ...func(*registry.PersistConfig)) (string, error)

Persist implements registry.Persister

func (*Adapter) Walk

func (f *Adapter) Walk(ctx context.Context, fn func(id string, version int64, latest bool, schema *avro.RecordSchema) error, opts ...func(*registry.WalkConfig)) (int, error)

Walk implements registry.Walker.

type WireFormatter

type WireFormatter struct{}

func NewWireFormatter

func NewWireFormatter() *WireFormatter

func (*WireFormatter) AppendSchemaID

func (*WireFormatter) AppendSchemaID(data []byte, id string) ([]byte, error)

AppendSchemaID implements registry.WireFormatter.

func (*WireFormatter) ExtractSchemaID

func (*WireFormatter) ExtractSchemaID(data []byte) (string, []byte, error)

ExtractSchemaID implements registry.WireFormatter.

Jump to

Keyboard shortcuts

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