Documentation
¶
Overview ¶
Package picotest holds generated types for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllTypes ¶
type AllTypes struct { Int32 int32 `json:"int32,omitempty"` Int64 int64 `json:"int64,omitempty"` Uint32 uint32 `json:"uint32,omitempty"` Uint64 uint64 `json:"uint64,omitempty"` Sint32 int32 `json:"sint32,omitempty"` Sint64 int64 `json:"sint64,omitempty"` Fixed32 uint32 `json:"fixed32,omitempty"` Fixed64 uint64 `json:"fixed64,omitempty"` Sfixed32 int32 `json:"sfixed32,omitempty"` Sfixed64 int64 `json:"sfixed64,omitempty"` Float float32 `json:"float,omitempty"` Double float64 `json:"double,omitempty"` Bool bool `json:"bool,omitempty"` String_ string `json:"string,omitempty"` Bytes []byte `json:"bytes,omitempty"` Message *Message `json:"message,omitempty"` Int32S []int32 `json:"int32s,omitempty"` Int64S []int64 `json:"int64s,omitempty"` Uint32S []uint32 `json:"uint32s,omitempty"` Uint64S []uint64 `json:"uint64s,omitempty"` Sint32S []int32 `json:"sint32s,omitempty"` Sint64S []int64 `json:"sint64s,omitempty"` Fixed32S []uint32 `json:"fixed32s,omitempty"` Fixed64S []uint64 `json:"fixed64s,omitempty"` Sfixed32S []int32 `json:"sfixed32s,omitempty"` Sfixed64S []int64 `json:"sfixed64s,omitempty"` Floats []float32 `json:"floats,omitempty"` Doubles []float64 `json:"doubles,omitempty"` Bools []bool `json:"bools,omitempty"` Strings []string `json:"strings,omitempty"` Bytess [][]byte `json:"bytess,omitempty"` Messages []*Message `json:"messages,omitempty"` }
type Basic ¶
type Basic struct { Byte0 int32 `json:"byte0,omitempty"` Byte1 int32 `json:"byte1,omitempty"` Byte100 int32 `json:"byte100,omitempty"` Byte255 int32 `json:"byte255,omitempty"` StringEmpty string `json:"string_empty,omitempty"` StringHello string `json:"string_hello,omitempty"` BytesZero []byte `json:"bytes_zero,omitempty"` BytesNumbers []byte `json:"bytes_numbers,omitempty"` }
type CustomBytes ¶
type CustomBytes struct { Value pic.ID `json:"value,omitempty"` Opt *pic.ID `json:"opt,omitempty"` Rep []pic.ID `json:"rep,omitempty"` PresentBasic pic.ID `json:"present_basic,omitempty"` PresentOpt pic.ID `json:"present_opt,omitempty"` PresentRep []pic.ID `json:"present_rep,omitempty"` }
func (*CustomBytes) Decode ¶
func (m *CustomBytes) Decode(c *picobuf.Decoder)
type CustomMessageTypes ¶
type CustomMessageTypes struct { Normal *Timestamp `json:"normal,omitempty"` CustomType *pic.Timestamp `json:"custom_type,omitempty"` PresentCustomType pic.Timestamp `json:"present_custom_type,omitempty"` CustomTypeCast *time.Time `json:"custom_type_cast,omitempty"` PresentCustomTypeCast time.Time `json:"present_custom_type_cast,omitempty"` RepeatedCustomType []*pic.Timestamp `json:"repeated_custom_type,omitempty"` RepeatedPresentCustomType []pic.Timestamp `json:"repeated_present_custom_type,omitempty"` RepeatedCustomTypeCast []*time.Time `json:"repeated_custom_type_cast,omitempty"` RepeatedPresentCustomTypeCast []time.Time `json:"repeated_present_custom_type_cast,omitempty"` }
func (*CustomMessageTypes) Decode ¶
func (m *CustomMessageTypes) Decode(c *picobuf.Decoder)
type Person ¶
type Timestamp ¶
type VariationsMessage ¶
type VariationsMessage struct { Value *Message `json:"value,omitempty"` Opt *Message `json:"opt,omitempty"` Rep []*Message `json:"rep,omitempty"` PresentBasic Message `json:"present_basic,omitempty"` PresentOpt Message `json:"present_opt,omitempty"` PresentRep []Message `json:"present_rep,omitempty"` }
func (*VariationsMessage) Decode ¶
func (m *VariationsMessage) Decode(c *picobuf.Decoder)
type VariationsScalar ¶
type VariationsScalar struct { Value string `json:"value,omitempty"` Opt *string `json:"opt,omitempty"` Rep []string `json:"rep,omitempty"` PresentBasic string `json:"present_basic,omitempty"` PresentOpt string `json:"present_opt,omitempty"` PresentRep []string `json:"present_rep,omitempty"` OptBytes *[]byte `json:"opt_bytes,omitempty"` }
func (*VariationsScalar) Decode ¶
func (m *VariationsScalar) Decode(c *picobuf.Decoder)
Click to show internal directories.
Click to hide internal directories.