tuple

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedKeyType = errors.New("unsupported key type")

Functions

This section is empty.

Types

type Coder

type Coder struct {
}

Coder represents a CBOR erializer.

func NewCoder

func NewCoder() *Coder

NewCoder returns a new CBOR erializer instance.

func (*Coder) DecodeKey

func (s *Coder) DecodeKey(b []byte) (document.Key, error)

DecodeKey returns the decoded key from the specified bytes if available, otherwise returns an error.

func (*Coder) EncodeKey

func (s *Coder) EncodeKey(key document.Key) ([]byte, error)

EncodeKey returns the encoded bytes from the specified key if available, otherwise returns an error.

func (*Coder) ServiceName

func (s *Coder) ServiceName() string

ServiceName returns the plug-in service name.

func (*Coder) ServiceType

func (s *Coder) ServiceType() plugins.ServiceType

ServiceType returns the plug-in service type.

func (*Coder) SetConfig added in v1.0.0

func (s *Coder) SetConfig(conf config.Config)

SetConfig sets the specified configuration.

func (*Coder) Start

func (s *Coder) Start() error

Start starts this coder.

func (Coder) Stop

func (s Coder) Stop() error

Stop stops this coder.

Jump to

Keyboard shortcuts

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