base

package
v0.0.0-...-b1e6648 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnableToMarshal = errors.New("unable to marshal message")
View Source
var ErrUnableToUnmarshal = errors.New("unable to unmarshal message")
View Source
var Marshallers = map[string]Marshaller{}

Functions

func Register

func Register(key string, marshaller Marshaller)

Types

type Marshaller

type Marshaller interface {
	Marshal(in interface{}, variable model.ContentVariable) (out string, err error)
	Unmarshal(in string, variable model.ContentVariable) (out interface{}, err error)
}

func Get

func Get(key string) (marshaller Marshaller, ok bool)

Jump to

Keyboard shortcuts

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