marshaler

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 8 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 CeteMarshaler

type CeteMarshaler struct{}

func (*CeteMarshaler) ContentType

func (*CeteMarshaler) ContentType(v interface{}) string

func (*CeteMarshaler) Delimiter

func (j *CeteMarshaler) Delimiter() []byte

func (*CeteMarshaler) Marshal

func (j *CeteMarshaler) Marshal(v interface{}) ([]byte, error)

func (*CeteMarshaler) NewDecoder

func (j *CeteMarshaler) NewDecoder(r io.Reader) runtime.Decoder

func (*CeteMarshaler) NewEncoder

func (j *CeteMarshaler) NewEncoder(w io.Writer) runtime.Encoder

func (*CeteMarshaler) Unmarshal

func (j *CeteMarshaler) Unmarshal(data []byte, v interface{}) error

Jump to

Keyboard shortcuts

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