marshaler

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultContentType = "application/json"
)

Functions

func MarshalAny

func MarshalAny(message *any.Any) (interface{}, error)

func UnmarshalAny

func UnmarshalAny(instance interface{}, message *any.Any) error

Types

type BlastMarshaler

type BlastMarshaler struct{}

func (*BlastMarshaler) ContentType

func (*BlastMarshaler) ContentType() string

func (*BlastMarshaler) Delimiter

func (m *BlastMarshaler) Delimiter() []byte

func (*BlastMarshaler) Marshal

func (m *BlastMarshaler) Marshal(v interface{}) ([]byte, error)

func (*BlastMarshaler) NewDecoder

func (m *BlastMarshaler) NewDecoder(r io.Reader) runtime.Decoder

func (*BlastMarshaler) NewEncoder

func (m *BlastMarshaler) NewEncoder(w io.Writer) runtime.Encoder

func (*BlastMarshaler) Unmarshal

func (m *BlastMarshaler) Unmarshal(data []byte, v interface{}) error

Jump to

Keyboard shortcuts

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