Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandMessage ¶
type CommandMessage struct { Class string `json:"class,omitempty"` // Types that are assignable to Command: // // *CommandMessage_Name // *CommandMessage_Message // *CommandMessage_Count Command isCommandMessage_Command }
func (*CommandMessage) Decode ¶
func (m *CommandMessage) Decode(c *picobuf.Decoder)
type CommandMessage_Count ¶ added in v0.0.3
type CommandMessage_Count struct {
Count int32
}
type CommandMessage_Message ¶
type CommandMessage_Message struct {
Message *Message
}
type CommandMessage_Name ¶
type CommandMessage_Name struct {
Name string
}
type Map ¶
type Map struct { StringString map[string]string `json:"string_string,omitempty"` StringInt32 map[string]int32 `json:"string_int32,omitempty"` StringInt64 map[string]int64 `json:"string_int64,omitempty"` StringUint32 map[string]uint32 `json:"string_uint32,omitempty"` StringUint64 map[string]uint64 `json:"string_uint64,omitempty"` StringSint32 map[string]int32 `json:"string_sint32,omitempty"` StringSint64 map[string]int64 `json:"string_sint64,omitempty"` StringFixed32 map[string]uint32 `json:"string_fixed32,omitempty"` StringFixed64 map[string]uint64 `json:"string_fixed64,omitempty"` StringSfixed32 map[string]int32 `json:"string_sfixed32,omitempty"` StringSfixed64 map[string]int64 `json:"string_sfixed64,omitempty"` StringFloat map[string]float32 `json:"string_float,omitempty"` StringDouble map[string]float64 `json:"string_double,omitempty"` StringBool map[string]bool `json:"string_bool,omitempty"` StringBytes map[string][]byte `json:"string_bytes,omitempty"` Int32String map[int32]string `json:"int32_string,omitempty"` Int64String map[int64]string `json:"int64_string,omitempty"` Uint32String map[uint32]string `json:"uint32_string,omitempty"` Uint64String map[uint64]string `json:"uint64_string,omitempty"` Sint32String map[int32]string `json:"sint32_string,omitempty"` Sint64String map[int64]string `json:"sint64_string,omitempty"` Fixed32String map[uint32]string `json:"fixed32_string,omitempty"` Fixed64String map[uint64]string `json:"fixed64_string,omitempty"` Sfixed32String map[int32]string `json:"sfixed32_string,omitempty"` Sfixed64String map[int64]string `json:"sfixed64_string,omitempty"` BoolString map[bool]string `json:"bool_string,omitempty"` }
type OptionalMessage ¶
type OptionalMessage struct {
Int32 int32 `json:"int32,omitempty"`
}
func (*OptionalMessage) Decode ¶
func (m *OptionalMessage) Decode(c *picobuf.Decoder)
type Person ¶
type Person struct { Name string `json:"name,omitempty"` Birthday int64 `json:"birthday,omitempty"` Phone string `json:"phone,omitempty"` Siblings int32 `json:"siblings,omitempty"` Spouse bool `json:"spouse,omitempty"` Money float64 `json:"money,omitempty"` Primary Language `json:"primary,omitempty"` Spoken []Language `json:"spoken,omitempty"` }
type RepeatedMixed ¶
type RepeatedMixed struct { Int32 int32 `json:"int32,omitempty"` Message []*Message `json:"message,omitempty"` }
func (*RepeatedMixed) Decode ¶
func (m *RepeatedMixed) Decode(c *picobuf.Decoder)
type RepeatedTypes ¶
type RepeatedTypes 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"` Language []Language `json:"language,omitempty"` }
func (*RepeatedTypes) Decode ¶
func (m *RepeatedTypes) Decode(c *picobuf.Decoder)
type Types ¶
type Types 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"` OptionalMessage *OptionalMessage `json:"optional_message,omitempty"` Language Language `json:"language,omitempty"` }
Click to show internal directories.
Click to hide internal directories.