Documentation ¶
Overview ¶
Package go_micro_srv_srv2 is a generated protocol buffer package.
It is generated from these files:
srv2.proto
It has these top-level messages:
Request Response
Index ¶
- func RegisterSrv2Handler(s server.Server, hdlr Srv2Handler, opts ...server.HandlerOption) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetX() int64
- func (m *Request) GetY() int64
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetResult() int64
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Srv2Handler
- type Srv2Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSrv2Handler ¶
func RegisterSrv2Handler(s server.Server, hdlr Srv2Handler, opts ...server.HandlerOption) error
Types ¶
type Request ¶
type Request struct { X int64 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int64 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Result int64 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Srv2Handler ¶
type Srv2Service ¶
type Srv2Service interface {
Square(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewSrv2Service ¶
func NewSrv2Service(name string, c client.Client) Srv2Service
Click to show internal directories.
Click to hide internal directories.