Documentation
¶
Index ¶
- func RegisterCatServer(s *grpc.Server, srv CatServer)
- type CatClient
- type CatServer
- type CuteCatResponse
- func (*CuteCatResponse) Descriptor() ([]byte, []int)
- func (m *CuteCatResponse) GetKind() string
- func (m *CuteCatResponse) GetName() string
- func (*CuteCatResponse) ProtoMessage()
- func (m *CuteCatResponse) Reset()
- func (m *CuteCatResponse) String() string
- func (m *CuteCatResponse) XXX_DiscardUnknown()
- func (m *CuteCatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CuteCatResponse) XXX_Merge(src proto.Message)
- func (m *CuteCatResponse) XXX_Size() int
- func (m *CuteCatResponse) XXX_Unmarshal(b []byte) error
- type FindCuteCatMessage
- func (*FindCuteCatMessage) Descriptor() ([]byte, []int)
- func (m *FindCuteCatMessage) GetCatId() string
- func (*FindCuteCatMessage) ProtoMessage()
- func (m *FindCuteCatMessage) Reset()
- func (m *FindCuteCatMessage) String() string
- func (m *FindCuteCatMessage) XXX_DiscardUnknown()
- func (m *FindCuteCatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindCuteCatMessage) XXX_Merge(src proto.Message)
- func (m *FindCuteCatMessage) XXX_Size() int
- func (m *FindCuteCatMessage) XXX_Unmarshal(b []byte) error
- type UnimplementedCatServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCatServer ¶
Types ¶
type CatClient ¶
type CatClient interface {
FindCuteCat(ctx context.Context, in *FindCuteCatMessage, opts ...grpc.CallOption) (*CuteCatResponse, error)
}
CatClient is the client API for Cat service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCatClient ¶
func NewCatClient(cc *grpc.ClientConn) CatClient
type CatServer ¶
type CatServer interface {
FindCuteCat(context.Context, *FindCuteCatMessage) (*CuteCatResponse, error)
}
CatServer is the server API for Cat service.
type CuteCatResponse ¶
type CuteCatResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CuteCatResponse) Descriptor ¶
func (*CuteCatResponse) Descriptor() ([]byte, []int)
func (*CuteCatResponse) GetKind ¶
func (m *CuteCatResponse) GetKind() string
func (*CuteCatResponse) GetName ¶
func (m *CuteCatResponse) GetName() string
func (*CuteCatResponse) ProtoMessage ¶
func (*CuteCatResponse) ProtoMessage()
func (*CuteCatResponse) Reset ¶
func (m *CuteCatResponse) Reset()
func (*CuteCatResponse) String ¶
func (m *CuteCatResponse) String() string
func (*CuteCatResponse) XXX_DiscardUnknown ¶
func (m *CuteCatResponse) XXX_DiscardUnknown()
func (*CuteCatResponse) XXX_Marshal ¶
func (m *CuteCatResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CuteCatResponse) XXX_Merge ¶
func (m *CuteCatResponse) XXX_Merge(src proto.Message)
func (*CuteCatResponse) XXX_Size ¶
func (m *CuteCatResponse) XXX_Size() int
func (*CuteCatResponse) XXX_Unmarshal ¶
func (m *CuteCatResponse) XXX_Unmarshal(b []byte) error
type FindCuteCatMessage ¶
type FindCuteCatMessage struct { CatId string `protobuf:"bytes,1,opt,name=catId,proto3" json:"catId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindCuteCatMessage) Descriptor ¶
func (*FindCuteCatMessage) Descriptor() ([]byte, []int)
func (*FindCuteCatMessage) GetCatId ¶
func (m *FindCuteCatMessage) GetCatId() string
func (*FindCuteCatMessage) ProtoMessage ¶
func (*FindCuteCatMessage) ProtoMessage()
func (*FindCuteCatMessage) Reset ¶
func (m *FindCuteCatMessage) Reset()
func (*FindCuteCatMessage) String ¶
func (m *FindCuteCatMessage) String() string
func (*FindCuteCatMessage) XXX_DiscardUnknown ¶
func (m *FindCuteCatMessage) XXX_DiscardUnknown()
func (*FindCuteCatMessage) XXX_Marshal ¶
func (m *FindCuteCatMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindCuteCatMessage) XXX_Merge ¶
func (m *FindCuteCatMessage) XXX_Merge(src proto.Message)
func (*FindCuteCatMessage) XXX_Size ¶
func (m *FindCuteCatMessage) XXX_Size() int
func (*FindCuteCatMessage) XXX_Unmarshal ¶
func (m *FindCuteCatMessage) XXX_Unmarshal(b []byte) error
type UnimplementedCatServer ¶
type UnimplementedCatServer struct { }
UnimplementedCatServer can be embedded to have forward compatible implementations.
func (*UnimplementedCatServer) FindCuteCat ¶
func (*UnimplementedCatServer) FindCuteCat(ctx context.Context, req *FindCuteCatMessage) (*CuteCatResponse, error)
Click to show internal directories.
Click to hide internal directories.