Documentation
¶
Overview ¶
Package topic is a generated protocol buffer package.
It is generated from these files:
topic.proto
It has these top-level messages:
GetTopicRequest GetTopicResponse
Index ¶
- func RegisterTopicServer(s *grpc.Server, srv TopicServer)
- type GetTopicRequest
- type GetTopicResponse
- func (*GetTopicResponse) Descriptor() ([]byte, []int)
- func (m *GetTopicResponse) GetContent() string
- func (m *GetTopicResponse) GetSubject() string
- func (m *GetTopicResponse) GetTopicId() int64
- func (*GetTopicResponse) ProtoMessage()
- func (m *GetTopicResponse) Reset()
- func (m *GetTopicResponse) String() string
- type TopicClient
- type TopicServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTopicServer ¶
func RegisterTopicServer(s *grpc.Server, srv TopicServer)
Types ¶
type GetTopicRequest ¶
type GetTopicRequest struct {
TopicId int64 `protobuf:"varint,1,opt,name=topic_id,json=topicId" json:"topic_id,omitempty"`
}
func (*GetTopicRequest) Descriptor ¶
func (*GetTopicRequest) Descriptor() ([]byte, []int)
func (*GetTopicRequest) GetTopicId ¶
func (m *GetTopicRequest) GetTopicId() int64
func (*GetTopicRequest) ProtoMessage ¶
func (*GetTopicRequest) ProtoMessage()
func (*GetTopicRequest) Reset ¶
func (m *GetTopicRequest) Reset()
func (*GetTopicRequest) String ¶
func (m *GetTopicRequest) String() string
type GetTopicResponse ¶
type GetTopicResponse struct { TopicId int64 `protobuf:"varint,1,opt,name=topic_id,json=topicId" json:"topic_id,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"` Content string `protobuf:"bytes,3,opt,name=content" json:"content,omitempty"` }
func (*GetTopicResponse) Descriptor ¶
func (*GetTopicResponse) Descriptor() ([]byte, []int)
func (*GetTopicResponse) GetContent ¶
func (m *GetTopicResponse) GetContent() string
func (*GetTopicResponse) GetSubject ¶
func (m *GetTopicResponse) GetSubject() string
func (*GetTopicResponse) GetTopicId ¶
func (m *GetTopicResponse) GetTopicId() int64
func (*GetTopicResponse) ProtoMessage ¶
func (*GetTopicResponse) ProtoMessage()
func (*GetTopicResponse) Reset ¶
func (m *GetTopicResponse) Reset()
func (*GetTopicResponse) String ¶
func (m *GetTopicResponse) String() string
type TopicClient ¶
type TopicClient interface { // Sums two integers. GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*GetTopicResponse, error) }
func NewTopicClient ¶
func NewTopicClient(cc *grpc.ClientConn) TopicClient
type TopicServer ¶
type TopicServer interface { // Sums two integers. GetTopic(context.Context, *GetTopicRequest) (*GetTopicResponse, error) }
Click to show internal directories.
Click to hide internal directories.