Documentation ¶
Index ¶
- func RegisterClassyServer(s *grpc.Server, srv ClassyServer)
- type Classification
- func (*Classification) Descriptor() ([]byte, []int)
- func (m *Classification) GetCategory() string
- func (m *Classification) GetComment() string
- func (m *Classification) GetCreatedOn() int64
- func (m *Classification) GetName() string
- func (m *Classification) GetServiceVersion() string
- func (*Classification) ProtoMessage()
- func (m *Classification) Reset()
- func (m *Classification) String() string
- func (m *Classification) XXX_DiscardUnknown()
- func (m *Classification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Classification) XXX_Merge(src proto.Message)
- func (m *Classification) XXX_Size() int
- func (m *Classification) XXX_Unmarshal(b []byte) error
- type ClassyClient
- type ClassyServer
- type ListClassificationsRequest
- func (*ListClassificationsRequest) Descriptor() ([]byte, []int)
- func (*ListClassificationsRequest) ProtoMessage()
- func (m *ListClassificationsRequest) Reset()
- func (m *ListClassificationsRequest) String() string
- func (m *ListClassificationsRequest) XXX_DiscardUnknown()
- func (m *ListClassificationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListClassificationsRequest) XXX_Merge(src proto.Message)
- func (m *ListClassificationsRequest) XXX_Size() int
- func (m *ListClassificationsRequest) XXX_Unmarshal(b []byte) error
- type ListClassificationsResponse
- func (*ListClassificationsResponse) Descriptor() ([]byte, []int)
- func (m *ListClassificationsResponse) GetClassifications() []*Classification
- func (*ListClassificationsResponse) ProtoMessage()
- func (m *ListClassificationsResponse) Reset()
- func (m *ListClassificationsResponse) String() string
- func (m *ListClassificationsResponse) XXX_DiscardUnknown()
- func (m *ListClassificationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListClassificationsResponse) XXX_Merge(src proto.Message)
- func (m *ListClassificationsResponse) XXX_Size() int
- func (m *ListClassificationsResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClassyServer ¶
func RegisterClassyServer(s *grpc.Server, srv ClassyServer)
Types ¶
type Classification ¶
type Classification struct { // Unique resource name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Creation timestamp. CreatedOn int64 `protobuf:"varint,2,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"` // The version of the service that did the prediction ServiceVersion string `protobuf:"bytes,3,opt,name=service_version,json=serviceVersion,proto3" json:"service_version,omitempty"` // Comment ID. Comment string `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"` // The predicted category. Category string `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Classification) Descriptor ¶
func (*Classification) Descriptor() ([]byte, []int)
func (*Classification) GetCategory ¶
func (m *Classification) GetCategory() string
func (*Classification) GetComment ¶
func (m *Classification) GetComment() string
func (*Classification) GetCreatedOn ¶
func (m *Classification) GetCreatedOn() int64
func (*Classification) GetName ¶
func (m *Classification) GetName() string
func (*Classification) GetServiceVersion ¶
func (m *Classification) GetServiceVersion() string
func (*Classification) ProtoMessage ¶
func (*Classification) ProtoMessage()
func (*Classification) Reset ¶
func (m *Classification) Reset()
func (*Classification) String ¶
func (m *Classification) String() string
func (*Classification) XXX_DiscardUnknown ¶
func (m *Classification) XXX_DiscardUnknown()
func (*Classification) XXX_Marshal ¶
func (m *Classification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Classification) XXX_Merge ¶
func (m *Classification) XXX_Merge(src proto.Message)
func (*Classification) XXX_Size ¶
func (m *Classification) XXX_Size() int
func (*Classification) XXX_Unmarshal ¶
func (m *Classification) XXX_Unmarshal(b []byte) error
type ClassyClient ¶
type ClassyClient interface { // Returns a classification for a comment ClassifyComment(ctx context.Context, in *v1.Comment, opts ...grpc.CallOption) (*Classification, error) // Returns all classifications // TODO: debug, remove before go-live ListClassifications(ctx context.Context, in *ListClassificationsRequest, opts ...grpc.CallOption) (*ListClassificationsResponse, error) }
ClassyClient is the client API for Classy service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClassyClient ¶
func NewClassyClient(cc *grpc.ClientConn) ClassyClient
type ClassyServer ¶
type ClassyServer interface { // Returns a classification for a comment ClassifyComment(context.Context, *v1.Comment) (*Classification, error) // Returns all classifications // TODO: debug, remove before go-live ListClassifications(context.Context, *ListClassificationsRequest) (*ListClassificationsResponse, error) }
ClassyServer is the server API for Classy service.
type ListClassificationsRequest ¶
type ListClassificationsRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListClassificationsRequest) Descriptor ¶
func (*ListClassificationsRequest) Descriptor() ([]byte, []int)
func (*ListClassificationsRequest) ProtoMessage ¶
func (*ListClassificationsRequest) ProtoMessage()
func (*ListClassificationsRequest) Reset ¶
func (m *ListClassificationsRequest) Reset()
func (*ListClassificationsRequest) String ¶
func (m *ListClassificationsRequest) String() string
func (*ListClassificationsRequest) XXX_DiscardUnknown ¶
func (m *ListClassificationsRequest) XXX_DiscardUnknown()
func (*ListClassificationsRequest) XXX_Marshal ¶
func (m *ListClassificationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListClassificationsRequest) XXX_Merge ¶
func (m *ListClassificationsRequest) XXX_Merge(src proto.Message)
func (*ListClassificationsRequest) XXX_Size ¶
func (m *ListClassificationsRequest) XXX_Size() int
func (*ListClassificationsRequest) XXX_Unmarshal ¶
func (m *ListClassificationsRequest) XXX_Unmarshal(b []byte) error
type ListClassificationsResponse ¶
type ListClassificationsResponse struct { Classifications []*Classification `protobuf:"bytes,1,rep,name=classifications,proto3" json:"classifications,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListClassificationsResponse) Descriptor ¶
func (*ListClassificationsResponse) Descriptor() ([]byte, []int)
func (*ListClassificationsResponse) GetClassifications ¶
func (m *ListClassificationsResponse) GetClassifications() []*Classification
func (*ListClassificationsResponse) ProtoMessage ¶
func (*ListClassificationsResponse) ProtoMessage()
func (*ListClassificationsResponse) Reset ¶
func (m *ListClassificationsResponse) Reset()
func (*ListClassificationsResponse) String ¶
func (m *ListClassificationsResponse) String() string
func (*ListClassificationsResponse) XXX_DiscardUnknown ¶
func (m *ListClassificationsResponse) XXX_DiscardUnknown()
func (*ListClassificationsResponse) XXX_Marshal ¶
func (m *ListClassificationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListClassificationsResponse) XXX_Merge ¶
func (m *ListClassificationsResponse) XXX_Merge(src proto.Message)
func (*ListClassificationsResponse) XXX_Size ¶
func (m *ListClassificationsResponse) XXX_Size() int
func (*ListClassificationsResponse) XXX_Unmarshal ¶
func (m *ListClassificationsResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.