e2e

package
v0.0.0-...-5e5293b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BasicJSONMarshaler = protojson.MarshalOptions{}

BasicJSONMarshaler describes the default jsonpb.Marshaler used by all instances of Basic. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var BasicJSONUnmarshaler = protojson.UnmarshalOptions{
	DiscardUnknown: true,
}

BasicJSONUnmarshaler describes the default jsonpb.Unmarshaler used by all instances of Basic. This struct is safe to replace or modify but should not be done so concurrently.

View Source
var File_example_e2e_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Basic

type Basic struct {
	A    string          `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	Meta *_struct.Struct `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*Basic) Descriptor deprecated

func (*Basic) Descriptor() ([]byte, []int)

Deprecated: Use Basic.ProtoReflect.Descriptor instead.

func (*Basic) GetA

func (x *Basic) GetA() string

func (*Basic) GetMeta

func (x *Basic) GetMeta() *_struct.Struct

func (*Basic) MarshalJSON

func (m *Basic) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the encoding/json Marshaler interface. This method uses the more correct jsonpb package to correctly marshal the message.

func (*Basic) ProtoMessage

func (*Basic) ProtoMessage()

func (*Basic) ProtoReflect

func (x *Basic) ProtoReflect() protoreflect.Message

func (*Basic) Reset

func (x *Basic) Reset()

func (*Basic) String

func (x *Basic) String() string

func (*Basic) UnmarshalJSON

func (m *Basic) UnmarshalJSON(b []byte) error

UnmarshalJSON satisfies the encoding/json Unmarshaler interface. This method uses the more correct jsonpb package to correctly unmarshal the message.

Jump to

Keyboard shortcuts

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