cbor

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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) DecodeDocument

func (s *Coder) DecodeDocument(r io.Reader) (document.Object, error)

DecodeDocument returns the decorded object from the specified reader if available, otherwise returns an error.

func (*Coder) EncodeDocument

func (s *Coder) EncodeDocument(w io.Writer, obj document.Object) error

EncodeDocument writes the specified object to the specified writer.

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