Documentation
¶
Index ¶
- func RegisterCommentcentreServer(s *grpc.Server, srv CommentcentreServer)
- type CommentcentreClient
- type CommentcentreServer
- type ListCommentsRequest
- func (*ListCommentsRequest) Descriptor() ([]byte, []int)
- func (*ListCommentsRequest) ProtoMessage()
- func (m *ListCommentsRequest) Reset()
- func (m *ListCommentsRequest) String() string
- func (m *ListCommentsRequest) XXX_DiscardUnknown()
- func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
- func (m *ListCommentsRequest) XXX_Size() int
- func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
- type ListCommentsResponse
- func (*ListCommentsResponse) Descriptor() ([]byte, []int)
- func (m *ListCommentsResponse) GetComments() []*v1.Comment
- func (*ListCommentsResponse) ProtoMessage()
- func (m *ListCommentsResponse) Reset()
- func (m *ListCommentsResponse) String() string
- func (m *ListCommentsResponse) XXX_DiscardUnknown()
- func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
- func (m *ListCommentsResponse) XXX_Size() int
- func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCommentcentreServer ¶
func RegisterCommentcentreServer(s *grpc.Server, srv CommentcentreServer)
Types ¶
type CommentcentreClient ¶
type CommentcentreClient interface { // Returns a classification for a comment CreateComment(ctx context.Context, in *v1.Comment, opts ...grpc.CallOption) (*v1.Comment, error) // Returns all comments // TODO: add paging or deprecate ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) }
CommentcentreClient is the client API for Commentcentre service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommentcentreClient ¶
func NewCommentcentreClient(cc *grpc.ClientConn) CommentcentreClient
type CommentcentreServer ¶
type CommentcentreServer interface { // Returns a classification for a comment CreateComment(context.Context, *v1.Comment) (*v1.Comment, error) // Returns all comments // TODO: add paging or deprecate ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) }
CommentcentreServer is the server API for Commentcentre service.
type ListCommentsRequest ¶
type ListCommentsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCommentsRequest) Descriptor ¶
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
func (*ListCommentsRequest) ProtoMessage ¶
func (*ListCommentsRequest) ProtoMessage()
func (*ListCommentsRequest) Reset ¶
func (m *ListCommentsRequest) Reset()
func (*ListCommentsRequest) String ¶
func (m *ListCommentsRequest) String() string
func (*ListCommentsRequest) XXX_DiscardUnknown ¶
func (m *ListCommentsRequest) XXX_DiscardUnknown()
func (*ListCommentsRequest) XXX_Marshal ¶
func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsRequest) XXX_Merge ¶
func (m *ListCommentsRequest) XXX_Merge(src proto.Message)
func (*ListCommentsRequest) XXX_Size ¶
func (m *ListCommentsRequest) XXX_Size() int
func (*ListCommentsRequest) XXX_Unmarshal ¶
func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error
type ListCommentsResponse ¶
type ListCommentsResponse struct { Comments []*v1.Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCommentsResponse) Descriptor ¶
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
func (*ListCommentsResponse) GetComments ¶
func (m *ListCommentsResponse) GetComments() []*v1.Comment
func (*ListCommentsResponse) ProtoMessage ¶
func (*ListCommentsResponse) ProtoMessage()
func (*ListCommentsResponse) Reset ¶
func (m *ListCommentsResponse) Reset()
func (*ListCommentsResponse) String ¶
func (m *ListCommentsResponse) String() string
func (*ListCommentsResponse) XXX_DiscardUnknown ¶
func (m *ListCommentsResponse) XXX_DiscardUnknown()
func (*ListCommentsResponse) XXX_Marshal ¶
func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCommentsResponse) XXX_Merge ¶
func (m *ListCommentsResponse) XXX_Merge(src proto.Message)
func (*ListCommentsResponse) XXX_Size ¶
func (m *ListCommentsResponse) XXX_Size() int
func (*ListCommentsResponse) XXX_Unmarshal ¶
func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.