Documentation
¶
Index ¶
- func RegisterFooServer(s *grpc.Server, srv FooServer)
- type BarRequest
- func (*BarRequest) Descriptor() ([]byte, []int)
- func (m *BarRequest) GetBaz() int64
- func (*BarRequest) ProtoMessage()
- func (m *BarRequest) Reset()
- func (m *BarRequest) String() string
- func (m *BarRequest) XXX_DiscardUnknown()
- func (m *BarRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BarRequest) XXX_Merge(src proto.Message)
- func (m *BarRequest) XXX_Size() int
- func (m *BarRequest) XXX_Unmarshal(b []byte) error
- type BarResponse
- func (*BarResponse) Descriptor() ([]byte, []int)
- func (m *BarResponse) GetQux() string
- func (*BarResponse) ProtoMessage()
- func (m *BarResponse) Reset()
- func (m *BarResponse) String() string
- func (m *BarResponse) XXX_DiscardUnknown()
- func (m *BarResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BarResponse) XXX_Merge(src proto.Message)
- func (m *BarResponse) XXX_Size() int
- func (m *BarResponse) XXX_Unmarshal(b []byte) error
- type FooClient
- type FooServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFooServer ¶
Types ¶
type BarRequest ¶
type BarRequest struct { Baz int64 `protobuf:"varint,1,opt,name=baz,proto3" json:"baz,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BarRequest) Descriptor ¶
func (*BarRequest) Descriptor() ([]byte, []int)
func (*BarRequest) GetBaz ¶
func (m *BarRequest) GetBaz() int64
func (*BarRequest) ProtoMessage ¶
func (*BarRequest) ProtoMessage()
func (*BarRequest) Reset ¶
func (m *BarRequest) Reset()
func (*BarRequest) String ¶
func (m *BarRequest) String() string
func (*BarRequest) XXX_DiscardUnknown ¶
func (m *BarRequest) XXX_DiscardUnknown()
func (*BarRequest) XXX_Marshal ¶
func (m *BarRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BarRequest) XXX_Merge ¶
func (m *BarRequest) XXX_Merge(src proto.Message)
func (*BarRequest) XXX_Size ¶
func (m *BarRequest) XXX_Size() int
func (*BarRequest) XXX_Unmarshal ¶
func (m *BarRequest) XXX_Unmarshal(b []byte) error
type BarResponse ¶
type BarResponse struct { Qux string `protobuf:"bytes,1,opt,name=qux,proto3" json:"qux,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BarResponse) Descriptor ¶
func (*BarResponse) Descriptor() ([]byte, []int)
func (*BarResponse) GetQux ¶
func (m *BarResponse) GetQux() string
func (*BarResponse) ProtoMessage ¶
func (*BarResponse) ProtoMessage()
func (*BarResponse) Reset ¶
func (m *BarResponse) Reset()
func (*BarResponse) String ¶
func (m *BarResponse) String() string
func (*BarResponse) XXX_DiscardUnknown ¶
func (m *BarResponse) XXX_DiscardUnknown()
func (*BarResponse) XXX_Marshal ¶
func (m *BarResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BarResponse) XXX_Merge ¶
func (m *BarResponse) XXX_Merge(src proto.Message)
func (*BarResponse) XXX_Size ¶
func (m *BarResponse) XXX_Size() int
func (*BarResponse) XXX_Unmarshal ¶
func (m *BarResponse) XXX_Unmarshal(b []byte) error
type FooClient ¶
type FooClient interface {
Bar(ctx context.Context, in *BarRequest, opts ...grpc.CallOption) (*BarResponse, error)
}
FooClient is the client API for Foo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFooClient ¶
func NewFooClient(cc *grpc.ClientConn) FooClient
type FooServer ¶
type FooServer interface {
Bar(context.Context, *BarRequest) (*BarResponse, error)
}
FooServer is the server API for Foo service.
Click to show internal directories.
Click to hide internal directories.