topic

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 5 Imported by: 4

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

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL