Documentation ¶
Overview ¶
Package converter generates a polyglot-encoded buffer from a signature schema and a data payload
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidSchema = errors.New("invalid schema") ErrInvalidData = errors.New("invalid data") )
Functions ¶
func FromPolyglot ¶
func ToPolyglot ¶
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter converts a signature schema and data payload into a polyglot-encoded buffer
func (*Converter) FromPolyglot ¶
func (*Converter) ToPolyglot ¶
func (p *Converter) ToPolyglot(data map[string]interface{}, encoder *polyglot.BufferEncoder) error
Click to show internal directories.
Click to hide internal directories.