Documentation ¶
Overview ¶
Package main is a generated protocol buffer package.
It is generated from these files:
service.proto
It has these top-level messages:
TestReq TestRsp AddReq AddRsp ErrReq ErrRsp EventReq
Index ¶
- Variables
- type AddReq
- func (*AddReq) Descriptor() ([]byte, []int)
- func (this *AddReq) Equal(that interface{}) bool
- func (this *AddReq) GoString() string
- func (m *AddReq) Marshal() (dAtA []byte, err error)
- func (m *AddReq) MarshalTo(dAtA []byte) (int, error)
- func (*AddReq) ProtoMessage()
- func (m *AddReq) Reset()
- func (m *AddReq) Size() (n int)
- func (this *AddReq) String() string
- func (m *AddReq) Unmarshal(dAtA []byte) error
- func (this *AddReq) VerboseEqual(that interface{}) error
- type AddRsp
- func (*AddRsp) Descriptor() ([]byte, []int)
- func (this *AddRsp) Equal(that interface{}) bool
- func (this *AddRsp) GoString() string
- func (m *AddRsp) Marshal() (dAtA []byte, err error)
- func (m *AddRsp) MarshalTo(dAtA []byte) (int, error)
- func (*AddRsp) ProtoMessage()
- func (m *AddRsp) Reset()
- func (m *AddRsp) Size() (n int)
- func (this *AddRsp) String() string
- func (m *AddRsp) Unmarshal(dAtA []byte) error
- func (this *AddRsp) VerboseEqual(that interface{}) error
- type ErrReq
- func (*ErrReq) Descriptor() ([]byte, []int)
- func (this *ErrReq) Equal(that interface{}) bool
- func (this *ErrReq) GoString() string
- func (m *ErrReq) Marshal() (dAtA []byte, err error)
- func (m *ErrReq) MarshalTo(dAtA []byte) (int, error)
- func (*ErrReq) ProtoMessage()
- func (m *ErrReq) Reset()
- func (m *ErrReq) Size() (n int)
- func (this *ErrReq) String() string
- func (m *ErrReq) Unmarshal(dAtA []byte) error
- func (this *ErrReq) VerboseEqual(that interface{}) error
- type ErrRsp
- func (*ErrRsp) Descriptor() ([]byte, []int)
- func (this *ErrRsp) Equal(that interface{}) bool
- func (this *ErrRsp) GoString() string
- func (m *ErrRsp) Marshal() (dAtA []byte, err error)
- func (m *ErrRsp) MarshalTo(dAtA []byte) (int, error)
- func (*ErrRsp) ProtoMessage()
- func (m *ErrRsp) Reset()
- func (m *ErrRsp) Size() (n int)
- func (this *ErrRsp) String() string
- func (m *ErrRsp) Unmarshal(dAtA []byte) error
- func (this *ErrRsp) VerboseEqual(that interface{}) error
- type EventReq
- func (*EventReq) Descriptor() ([]byte, []int)
- func (this *EventReq) Equal(that interface{}) bool
- func (this *EventReq) GoString() string
- func (m *EventReq) Marshal() (dAtA []byte, err error)
- func (m *EventReq) MarshalTo(dAtA []byte) (int, error)
- func (*EventReq) ProtoMessage()
- func (m *EventReq) Reset()
- func (m *EventReq) Size() (n int)
- func (this *EventReq) String() string
- func (m *EventReq) Unmarshal(dAtA []byte) error
- func (this *EventReq) VerboseEqual(that interface{}) error
- type TestReq
- func (*TestReq) Descriptor() ([]byte, []int)
- func (this *TestReq) Equal(that interface{}) bool
- func (this *TestReq) GoString() string
- func (m *TestReq) Marshal() (dAtA []byte, err error)
- func (m *TestReq) MarshalTo(dAtA []byte) (int, error)
- func (*TestReq) ProtoMessage()
- func (m *TestReq) Reset()
- func (m *TestReq) Size() (n int)
- func (this *TestReq) String() string
- func (m *TestReq) Unmarshal(dAtA []byte) error
- func (this *TestReq) VerboseEqual(that interface{}) error
- type TestRsp
- func (*TestRsp) Descriptor() ([]byte, []int)
- func (this *TestRsp) Equal(that interface{}) bool
- func (this *TestRsp) GoString() string
- func (m *TestRsp) Marshal() (dAtA []byte, err error)
- func (m *TestRsp) MarshalTo(dAtA []byte) (int, error)
- func (*TestRsp) ProtoMessage()
- func (m *TestRsp) Reset()
- func (m *TestRsp) Size() (n int)
- func (this *TestRsp) String() string
- func (m *TestRsp) Unmarshal(dAtA []byte) error
- func (this *TestRsp) VerboseEqual(that interface{}) error
- type TestService
- func (r *TestService) Add(req *AddReq, rsp *AddRsp) error
- func (r *TestService) Err(req *ErrReq, rsp *ErrRsp) error
- func (r *TestService) Event(req *EventReq) error
- func (r *TestService) Service() string
- func (r *TestService) Test(req *TestReq, rsp *TestRsp) error
- func (r *TestService) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthService = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowService = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type AddReq ¶
type AddReq struct { A int32 `protobuf:"varint,1,opt,name=A" json:"A"` B int32 `protobuf:"varint,2,opt,name=B" json:"B"` }
func (*AddReq) Descriptor ¶
func (*AddReq) ProtoMessage ¶
func (*AddReq) ProtoMessage()
func (*AddReq) VerboseEqual ¶
type AddRsp ¶
type AddRsp struct {
Sum int32 `protobuf:"varint,1,opt,name=Sum" json:"Sum"`
}
func (*AddRsp) Descriptor ¶
func (*AddRsp) ProtoMessage ¶
func (*AddRsp) ProtoMessage()
func (*AddRsp) VerboseEqual ¶
type ErrReq ¶
type ErrReq struct {
A int32 `protobuf:"varint,1,opt,name=A" json:"A"`
}
func (*ErrReq) Descriptor ¶
func (*ErrReq) ProtoMessage ¶
func (*ErrReq) ProtoMessage()
func (*ErrReq) VerboseEqual ¶
type ErrRsp ¶
type ErrRsp struct {
A int32 `protobuf:"varint,1,opt,name=A" json:"A"`
}
func (*ErrRsp) Descriptor ¶
func (*ErrRsp) ProtoMessage ¶
func (*ErrRsp) ProtoMessage()
func (*ErrRsp) VerboseEqual ¶
type EventReq ¶
type EventReq struct {
A string `protobuf:"bytes,1,opt,name=A" json:"A"`
}
func (*EventReq) Descriptor ¶
func (*EventReq) ProtoMessage ¶
func (*EventReq) ProtoMessage()
func (*EventReq) VerboseEqual ¶
type TestReq ¶
type TestReq struct { A string `protobuf:"bytes,1,opt,name=A" json:"A"` B string `protobuf:"bytes,2,opt,name=B" json:"B"` C string `protobuf:"bytes,3,opt,name=C" json:"C"` }
func (*TestReq) Descriptor ¶
func (*TestReq) ProtoMessage ¶
func (*TestReq) ProtoMessage()
func (*TestReq) VerboseEqual ¶
type TestRsp ¶
type TestRsp struct {
A string `protobuf:"bytes,1,opt,name=A" json:"A"`
}
func (*TestRsp) Descriptor ¶
func (*TestRsp) ProtoMessage ¶
func (*TestRsp) ProtoMessage()
func (*TestRsp) VerboseEqual ¶
type TestService ¶
type TestService struct {
// contains filtered or unexported fields
}
func (*TestService) Event ¶
func (r *TestService) Event(req *EventReq) error
func (*TestService) Service ¶
func (r *TestService) Service() string
func (*TestService) Version ¶
func (r *TestService) Version() string
Click to show internal directories.
Click to hide internal directories.