tests

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Generated by github.com/davyxu/protoplus DO NOT EDIT!

Index

Constants

This section is empty.

Variables

View Source
var (
	MyEnumMapperValueByName = map[string]int32{
		"Zero": 0,
		"One":  1,
		"Two":  2,
	}

	MyEnumMapperNameByValue = map[int32]string{
		0: "Zero",
		1: "One",
		2: "Two",
	}
)

Functions

This section is empty.

Types

type MyEnum

type MyEnum int32
const (
	MyEnum_Zero MyEnum = 0
	MyEnum_One  MyEnum = 1
	MyEnum_Two  MyEnum = 2
)

func (MyEnum) String

func (self MyEnum) String() string

type MySubType

type MySubType struct {
	Bool         bool
	Int32        int32
	UInt32       uint32
	Int64        int64
	UInt64       uint64
	Float32      float32
	Float64      float64
	Str          string
	BytesSlice   []byte
	BoolSlice    []bool
	Int32Slice   []int32
	UInt32Slice  []uint32
	Int64Slice   []int64
	UInt64Slice  []uint64
	Float32Slice []float32
	Float64Slice []float64
	StrSlice     []string
	Enum         MyEnum
	EnumSlice    []MyEnum
}

func (*MySubType) Marshal

func (self *MySubType) Marshal(buffer *proto.Buffer) error

func (*MySubType) Size

func (self *MySubType) Size() (ret int)

func (*MySubType) String

func (self *MySubType) String() string

func (*MySubType) Unmarshal

func (self *MySubType) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type MyType

type MyType struct {
	Bool         bool
	Int32        int32
	UInt32       uint32
	Int64        int64
	UInt64       uint64
	Float32      float32
	Float64      float64
	Str          string
	Struct       MySubType
	BytesSlice   []byte
	BoolSlice    []bool
	Int32Slice   []int32
	UInt32Slice  []uint32
	Int64Slice   []int64
	UInt64Slice  []uint64
	Float32Slice []float32
	Float64Slice []float64
	StrSlice     []string
	StructSlice  []MySubType
	Enum         MyEnum
	EnumSlice    []MyEnum
}

func (*MyType) Marshal

func (self *MyType) Marshal(buffer *proto.Buffer) error

func (*MyType) Size

func (self *MyType) Size() (ret int)

func (*MyType) String

func (self *MyType) String() string

func (*MyType) Unmarshal

func (self *MyType) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

type MyTypeMini

type MyTypeMini struct {
	Str  string
	Bool bool
}

func (*MyTypeMini) Marshal

func (self *MyTypeMini) Marshal(buffer *proto.Buffer) error

func (*MyTypeMini) Size

func (self *MyTypeMini) Size() (ret int)

func (*MyTypeMini) String

func (self *MyTypeMini) String() string

func (*MyTypeMini) Unmarshal

func (self *MyTypeMini) Unmarshal(buffer *proto.Buffer, fieldIndex uint64, wt proto.WireType) error

Jump to

Keyboard shortcuts

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