json

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JsonMarshaler = &Marshaler{
	Marshaler: &jsonpb.Marshaler{},
}

JsonMarshaler provides default json marshaler that is compatible with eventing data model

View Source
var JsonUnmshaler = &Unmarshaler{
	Unmarshaler: &jsonpb.Unmarshaler{},
}

JsonUnmshaler provides default json marshaler that is compatible with eventing data model

Functions

This section is empty.

Types

type Marshaler

type Marshaler struct {
	*jsonpb.Marshaler
}

func (*Marshaler) MarshalJSON

func (m *Marshaler) MarshalJSON(pb proto.Message) ([]byte, error)

type Unmarshaler

type Unmarshaler struct {
	*jsonpb.Unmarshaler
}

func (*Unmarshaler) UnmarshalJSON

func (m *Unmarshaler) UnmarshalJSON(data []byte, pb proto.Message) error

Jump to

Keyboard shortcuts

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