protoc_gen_gogofast

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*MetaData) Marshal

func (m *MetaData) Marshal() (dAtA []byte, err error)

func (*MetaData) MarshalTo

func (m *MetaData) MarshalTo(dAtA []byte) (int, error)

func (*MetaData) MarshalToSizedBuffer

func (m *MetaData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetaData) ProtoMessage

func (*MetaData) ProtoMessage()

func (*MetaData) Reset

func (m *MetaData) Reset()

func (*MetaData) Size

func (m *MetaData) Size() (n int)

func (*MetaData) String

func (m *MetaData) String() string

func (*MetaData) Unmarshal

func (m *MetaData) Unmarshal(dAtA []byte) error

func (*MetaData) XXX_DiscardUnknown

func (m *MetaData) XXX_DiscardUnknown()

func (*MetaData) XXX_Marshal

func (m *MetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetaData) XXX_Merge

func (m *MetaData) XXX_Merge(src proto.Message)

func (*MetaData) XXX_Size

func (m *MetaData) XXX_Size() int

func (*MetaData) XXX_Unmarshal

func (m *MetaData) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*SearchReq) Marshal

func (m *SearchReq) Marshal() (dAtA []byte, err error)

func (*SearchReq) MarshalTo

func (m *SearchReq) MarshalTo(dAtA []byte) (int, error)

func (*SearchReq) MarshalToSizedBuffer

func (m *SearchReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SearchReq) ProtoMessage

func (*SearchReq) ProtoMessage()

func (*SearchReq) Reset

func (m *SearchReq) Reset()

func (*SearchReq) Size

func (m *SearchReq) Size() (n int)

func (*SearchReq) String

func (m *SearchReq) String() string

func (*SearchReq) Unmarshal

func (m *SearchReq) Unmarshal(dAtA []byte) error

func (*SearchReq) XXX_DiscardUnknown

func (m *SearchReq) XXX_DiscardUnknown()

func (*SearchReq) XXX_Marshal

func (m *SearchReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SearchReq) XXX_Merge

func (m *SearchReq) XXX_Merge(src proto.Message)

func (*SearchReq) XXX_Size

func (m *SearchReq) XXX_Size() int

func (*SearchReq) XXX_Unmarshal

func (m *SearchReq) XXX_Unmarshal(b []byte) error

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

func (m *SearchResp) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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