Documentation
¶
Index ¶
- func RegisterFoosvcServer(s *grpc.Server, srv FoosvcServer)
- type FooReply
- func (*FooReply) Descriptor() ([]byte, []int)
- func (m *FooReply) GetErr() string
- func (m *FooReply) GetRes() string
- func (*FooReply) ProtoMessage()
- func (m *FooReply) Reset()
- func (m *FooReply) String() string
- func (m *FooReply) XXX_DiscardUnknown()
- func (m *FooReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FooReply) XXX_Merge(src proto.Message)
- func (m *FooReply) XXX_Size() int
- func (m *FooReply) XXX_Unmarshal(b []byte) error
- type FooRequest
- func (*FooRequest) Descriptor() ([]byte, []int)
- func (m *FooRequest) GetS() string
- func (*FooRequest) ProtoMessage()
- func (m *FooRequest) Reset()
- func (m *FooRequest) String() string
- func (m *FooRequest) XXX_DiscardUnknown()
- func (m *FooRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FooRequest) XXX_Merge(src proto.Message)
- func (m *FooRequest) XXX_Size() int
- func (m *FooRequest) XXX_Unmarshal(b []byte) error
- type FoosvcClient
- type FoosvcServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFoosvcServer ¶
func RegisterFoosvcServer(s *grpc.Server, srv FoosvcServer)
Types ¶
type FooReply ¶
type FooReply struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FooReply) Descriptor ¶
func (*FooReply) ProtoMessage ¶
func (*FooReply) ProtoMessage()
func (*FooReply) XXX_DiscardUnknown ¶
func (m *FooReply) XXX_DiscardUnknown()
func (*FooReply) XXX_Marshal ¶
func (*FooReply) XXX_Unmarshal ¶
type FooRequest ¶
type FooRequest struct { S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FooRequest) Descriptor ¶
func (*FooRequest) Descriptor() ([]byte, []int)
func (*FooRequest) GetS ¶
func (m *FooRequest) GetS() string
func (*FooRequest) ProtoMessage ¶
func (*FooRequest) ProtoMessage()
func (*FooRequest) Reset ¶
func (m *FooRequest) Reset()
func (*FooRequest) String ¶
func (m *FooRequest) String() string
func (*FooRequest) XXX_DiscardUnknown ¶
func (m *FooRequest) XXX_DiscardUnknown()
func (*FooRequest) XXX_Marshal ¶
func (m *FooRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FooRequest) XXX_Merge ¶
func (m *FooRequest) XXX_Merge(src proto.Message)
func (*FooRequest) XXX_Size ¶
func (m *FooRequest) XXX_Size() int
func (*FooRequest) XXX_Unmarshal ¶
func (m *FooRequest) XXX_Unmarshal(b []byte) error
type FoosvcClient ¶
type FoosvcClient interface {
Foo(ctx context.Context, in *FooRequest, opts ...grpc.CallOption) (*FooReply, error)
}
FoosvcClient is the client API for Foosvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFoosvcClient ¶
func NewFoosvcClient(cc *grpc.ClientConn) FoosvcClient
type FoosvcServer ¶
type FoosvcServer interface {
Foo(context.Context, *FooRequest) (*FooReply, error)
}
FoosvcServer is the server API for Foosvc service.
Click to show internal directories.
Click to hide internal directories.