Documentation ¶
Index ¶
- Variables
- func RegisterUDFProviderServer(s *grpc.Server, srv UDFProviderServer)
- type MetaData
- func (*MetaData) Descriptor() ([]byte, []int)
- func (m *MetaData) Marshal() (dAtA []byte, err error)
- func (m *MetaData) MarshalTo(dAtA []byte) (int, error)
- func (m *MetaData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MetaData) ProtoMessage()
- func (m *MetaData) Reset()
- func (m *MetaData) Size() (n int)
- func (m *MetaData) String() string
- func (m *MetaData) Unmarshal(dAtA []byte) error
- func (m *MetaData) XXX_DiscardUnknown()
- func (m *MetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetaData) XXX_Merge(src proto.Message)
- func (m *MetaData) XXX_Size() int
- func (m *MetaData) XXX_Unmarshal(b []byte) error
- type SearchReq
- func (*SearchReq) Descriptor() ([]byte, []int)
- func (m *SearchReq) Marshal() (dAtA []byte, err error)
- func (m *SearchReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SearchReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SearchReq) ProtoMessage()
- func (m *SearchReq) Reset()
- func (m *SearchReq) Size() (n int)
- func (m *SearchReq) String() string
- func (m *SearchReq) Unmarshal(dAtA []byte) error
- func (m *SearchReq) XXX_DiscardUnknown()
- func (m *SearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchReq) XXX_Merge(src proto.Message)
- func (m *SearchReq) XXX_Size() int
- func (m *SearchReq) XXX_Unmarshal(b []byte) error
- type SearchReq_Type
- type SearchResp
- func (*SearchResp) Descriptor() ([]byte, []int)
- func (m *SearchResp) Marshal() (dAtA []byte, err error)
- func (m *SearchResp) MarshalTo(dAtA []byte) (int, error)
- func (m *SearchResp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SearchResp) ProtoMessage()
- func (m *SearchResp) Reset()
- func (m *SearchResp) Size() (n int)
- func (m *SearchResp) String() string
- func (m *SearchResp) Unmarshal(dAtA []byte) error
- func (m *SearchResp) XXX_DiscardUnknown()
- func (m *SearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchResp) XXX_Merge(src proto.Message)
- func (m *SearchResp) XXX_Size() int
- func (m *SearchResp) XXX_Unmarshal(b []byte) error
- type UDFProviderClient
- type UDFProviderServer
- type UnimplementedUDFProviderServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMyproto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMyproto = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMyproto = fmt.Errorf("proto: unexpected end of group") )
View Source
var SearchReq_Type_name = map[int32]string{
0: "PC",
1: "Mobile",
}
View Source
var SearchReq_Type_value = map[string]int32{
"PC": 0,
"Mobile": 1,
}
Functions ¶
func RegisterUDFProviderServer ¶
func RegisterUDFProviderServer(s *grpc.Server, srv UDFProviderServer)
Types ¶
type MetaData ¶
type MetaData struct { Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Buvid string `protobuf:"bytes,3,opt,name=buvid,proto3" json:"buvid,omitempty"` Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` Referer string `protobuf:"bytes,9,opt,name=referer,proto3" json:"referer,omitempty"` UserAgent string `protobuf:"bytes,10,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"` Build string `protobuf:"bytes,11,opt,name=build,proto3" json:"build,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetaData) Descriptor ¶
func (*MetaData) MarshalToSizedBuffer ¶
func (*MetaData) ProtoMessage ¶
func (*MetaData) ProtoMessage()
func (*MetaData) XXX_DiscardUnknown ¶
func (m *MetaData) XXX_DiscardUnknown()
func (*MetaData) XXX_Marshal ¶
func (*MetaData) XXX_Unmarshal ¶
type SearchReq ¶
type SearchReq struct { QueryText string `protobuf:"bytes,1,opt,name=query_text,json=queryText,proto3" json:"query_text,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Type SearchReq_Type `protobuf:"varint,4,opt,name=type,proto3,enum=kit.test.protobuf_gogofast.v1.SearchReq_Type" json:"type,omitempty"` Metadata *MetaData `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` Extra map[string]string `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchReq) Descriptor ¶
func (*SearchReq) MarshalToSizedBuffer ¶
func (*SearchReq) ProtoMessage ¶
func (*SearchReq) ProtoMessage()
func (*SearchReq) XXX_DiscardUnknown ¶
func (m *SearchReq) XXX_DiscardUnknown()
func (*SearchReq) XXX_Marshal ¶
func (*SearchReq) XXX_Unmarshal ¶
type SearchReq_Type ¶
type SearchReq_Type int32
const ( SearchReq_PC SearchReq_Type = 0 SearchReq_Mobile SearchReq_Type = 1 )
func (SearchReq_Type) EnumDescriptor ¶
func (SearchReq_Type) EnumDescriptor() ([]byte, []int)
func (SearchReq_Type) String ¶
func (x SearchReq_Type) String() string
type SearchResp ¶
type SearchResp struct { Result []string `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` NumResults int32 `protobuf:"varint,2,opt,name=num_results,json=numResults,proto3" json:"num_results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchResp) Descriptor ¶
func (*SearchResp) Descriptor() ([]byte, []int)
func (*SearchResp) Marshal ¶
func (m *SearchResp) Marshal() (dAtA []byte, err error)
func (*SearchResp) MarshalToSizedBuffer ¶
func (m *SearchResp) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SearchResp) ProtoMessage ¶
func (*SearchResp) ProtoMessage()
func (*SearchResp) Reset ¶
func (m *SearchResp) Reset()
func (*SearchResp) Size ¶
func (m *SearchResp) Size() (n int)
func (*SearchResp) String ¶
func (m *SearchResp) String() string
func (*SearchResp) Unmarshal ¶
func (m *SearchResp) Unmarshal(dAtA []byte) error
func (*SearchResp) XXX_DiscardUnknown ¶
func (m *SearchResp) XXX_DiscardUnknown()
func (*SearchResp) XXX_Marshal ¶
func (m *SearchResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchResp) XXX_Merge ¶
func (m *SearchResp) XXX_Merge(src proto.Message)
func (*SearchResp) XXX_Size ¶
func (m *SearchResp) XXX_Size() int
func (*SearchResp) XXX_Unmarshal ¶
func (m *SearchResp) XXX_Unmarshal(b []byte) error
type UDFProviderClient ¶
type UDFProviderClient interface {
Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchResp, error)
}
UDFProviderClient is the client API for UDFProvider service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUDFProviderClient ¶
func NewUDFProviderClient(cc *grpc.ClientConn) UDFProviderClient
type UDFProviderServer ¶
type UDFProviderServer interface {
Search(context.Context, *SearchReq) (*SearchResp, error)
}
UDFProviderServer is the server API for UDFProvider service.
type UnimplementedUDFProviderServer ¶
type UnimplementedUDFProviderServer struct { }
UnimplementedUDFProviderServer can be embedded to have forward compatible implementations.
func (*UnimplementedUDFProviderServer) Search ¶
func (*UnimplementedUDFProviderServer) Search(ctx context.Context, req *SearchReq) (*SearchResp, error)
Click to show internal directories.
Click to hide internal directories.