pico

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 3 Imported by: 0

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)

func (*CommandMessage) Encode

func (m *CommandMessage) Encode(c *picobuf.Encoder) bool

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 Language

type Language int32
const (
	Language_UNKNOWN Language = 0
	Language_ENGLISH Language = 1
	Language_SPANISH Language = 3
	Language_FRENCH  Language = 4
	Language_GERMAN  Language = 5
)

func (Language) String added in v0.0.2

func (m Language) String() 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"`
}

func (*Map) Decode

func (m *Map) Decode(c *picobuf.Decoder)

func (*Map) Encode

func (m *Map) Encode(c *picobuf.Encoder) bool

type Message

type Message struct {
	Int32 int32 `json:"int32,omitempty"`
	Int64 int64 `json:"int64,omitempty"`
}

func (*Message) Decode

func (m *Message) Decode(c *picobuf.Decoder)

func (*Message) Encode

func (m *Message) Encode(c *picobuf.Encoder) bool

type OptionalMessage

type OptionalMessage struct {
	Int32 int32 `json:"int32,omitempty"`
}

func (*OptionalMessage) Decode

func (m *OptionalMessage) Decode(c *picobuf.Decoder)

func (*OptionalMessage) Encode

func (m *OptionalMessage) Encode(c *picobuf.Encoder) bool

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"`
}

func (*Person) Decode

func (m *Person) Decode(c *picobuf.Decoder)

func (*Person) Encode

func (m *Person) Encode(c *picobuf.Encoder) bool

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)

func (*RepeatedMixed) Encode

func (m *RepeatedMixed) Encode(c *picobuf.Encoder) bool

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)

func (*RepeatedTypes) Encode

func (m *RepeatedTypes) Encode(c *picobuf.Encoder) bool

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"`
}

func (*Types) Decode

func (m *Types) Decode(c *picobuf.Decoder)

func (*Types) Encode

func (m *Types) Encode(c *picobuf.Encoder) bool

Jump to

Keyboard shortcuts

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