Documentation ¶
Overview ¶
Package test is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Empty SimpleTypes ComplexTypes
Package test is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
Empty SimpleTypes ComplexTypes
Index ¶
- Constants
- Variables
- func RunServer(srv rpc.Server, handler TestServer)
- type ComplexTypes
- func (*ComplexTypes) Descriptor() ([]byte, []int)
- func (this *ComplexTypes) Equal(that interface{}) bool
- func (m *ComplexTypes) GetArray() []int32
- func (m *ComplexTypes) GetDict() map[int32]string
- func (m *ComplexTypes) Marshal() (dAtA []byte, err error)
- func (m *ComplexTypes) MarshalTo(dAtA []byte) (int, error)
- func (*ComplexTypes) ProtoMessage()
- func (m *ComplexTypes) Reset()
- func (m *ComplexTypes) Size() (n int)
- func (m *ComplexTypes) String() string
- func (m *ComplexTypes) Unmarshal(dAtA []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (this *Empty) Equal(that interface{}) bool
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- type SimpleTypes
- func (*SimpleTypes) Descriptor() ([]byte, []int)
- func (this *SimpleTypes) Equal(that interface{}) bool
- func (m *SimpleTypes) GetLogic() bool
- func (m *SimpleTypes) GetNumber() int32
- func (m *SimpleTypes) GetStr() string
- func (m *SimpleTypes) Marshal() (dAtA []byte, err error)
- func (m *SimpleTypes) MarshalTo(dAtA []byte) (int, error)
- func (*SimpleTypes) ProtoMessage()
- func (m *SimpleTypes) Reset()
- func (m *SimpleTypes) Size() (n int)
- func (m *SimpleTypes) String() string
- func (m *SimpleTypes) Unmarshal(dAtA []byte) error
- type TestClient
- type TestServer
Constants ¶
View Source
const ( Functions_CopySimple int32 = 0 Functions_GenErr int32 = 1 Functions_CopyComplex int32 = 2 )
Functions enum
Variables ¶
View Source
var ( ErrInvalidLengthTest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTest = fmt.Errorf("proto: integer overflow") )
Functions ¶
Types ¶
type ComplexTypes ¶
type ComplexTypes struct { Array []int32 `protobuf:"varint,2,rep,packed,name=array" json:"array,omitempty"` Dict map[int32]string `` /* 143-byte string literal not displayed */ }
func (*ComplexTypes) Descriptor ¶
func (*ComplexTypes) Descriptor() ([]byte, []int)
func (*ComplexTypes) Equal ¶
func (this *ComplexTypes) Equal(that interface{}) bool
func (*ComplexTypes) GetArray ¶
func (m *ComplexTypes) GetArray() []int32
func (*ComplexTypes) GetDict ¶
func (m *ComplexTypes) GetDict() map[int32]string
func (*ComplexTypes) Marshal ¶
func (m *ComplexTypes) Marshal() (dAtA []byte, err error)
func (*ComplexTypes) ProtoMessage ¶
func (*ComplexTypes) ProtoMessage()
func (*ComplexTypes) Reset ¶
func (m *ComplexTypes) Reset()
func (*ComplexTypes) Size ¶
func (m *ComplexTypes) Size() (n int)
func (*ComplexTypes) String ¶
func (m *ComplexTypes) String() string
func (*ComplexTypes) Unmarshal ¶
func (m *ComplexTypes) Unmarshal(dAtA []byte) error
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type SimpleTypes ¶
type SimpleTypes struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Str string `protobuf:"bytes,2,opt,name=str,proto3" json:"str,omitempty"` Logic bool `protobuf:"varint,3,opt,name=logic,proto3" json:"logic,omitempty"` }
func (*SimpleTypes) Descriptor ¶
func (*SimpleTypes) Descriptor() ([]byte, []int)
func (*SimpleTypes) Equal ¶
func (this *SimpleTypes) Equal(that interface{}) bool
func (*SimpleTypes) GetLogic ¶
func (m *SimpleTypes) GetLogic() bool
func (*SimpleTypes) GetNumber ¶
func (m *SimpleTypes) GetNumber() int32
func (*SimpleTypes) GetStr ¶
func (m *SimpleTypes) GetStr() string
func (*SimpleTypes) Marshal ¶
func (m *SimpleTypes) Marshal() (dAtA []byte, err error)
func (*SimpleTypes) ProtoMessage ¶
func (*SimpleTypes) ProtoMessage()
func (*SimpleTypes) Reset ¶
func (m *SimpleTypes) Reset()
func (*SimpleTypes) Size ¶
func (m *SimpleTypes) Size() (n int)
func (*SimpleTypes) String ¶
func (m *SimpleTypes) String() string
func (*SimpleTypes) Unmarshal ¶
func (m *SimpleTypes) Unmarshal(dAtA []byte) error
type TestClient ¶
type TestClient interface { Close() CopySimple(arg *SimpleTypes) (*SimpleTypes, error) GenErr(arg *Empty) (*Empty, error) CopyComplex(arg *ComplexTypes) (*ComplexTypes, error) }
Client API
func NewTestClient ¶
func NewTestClient(cc rpc.Client) TestClient
type TestServer ¶
type TestServer interface { CopySimple(arg *SimpleTypes) (*SimpleTypes, error) GenErr(arg *Empty) (*Empty, error) CopyComplex(arg *ComplexTypes) (*ComplexTypes, error) }
Server API
Click to show internal directories.
Click to hide internal directories.