Documentation ¶
Overview ¶
Package api is a generated blademaster stub package. This code was generated with go-common/app/tool/bmgen/protoc-gen-bm v0.1.
It is generated from these files:
api.proto
Index ¶
- Constants
- Variables
- func RegisterRecPoolBMServer(e *bm.Engine, server RecPoolBMServer)
- func RegisterRecPoolServer(s *grpc.Server, srv RecPoolServer)
- type Client
- type RecPoolBMServer
- type RecPoolClient
- type RecPoolReq
- func (*RecPoolReq) Descriptor() ([]byte, []int)
- func (m *RecPoolReq) Marshal() (dAtA []byte, err error)
- func (m *RecPoolReq) MarshalTo(dAtA []byte) (int, error)
- func (*RecPoolReq) ProtoMessage()
- func (m *RecPoolReq) Reset()
- func (m *RecPoolReq) Size() (n int)
- func (m *RecPoolReq) String() string
- func (m *RecPoolReq) Unmarshal(dAtA []byte) error
- func (m *RecPoolReq) XXX_DiscardUnknown()
- func (m *RecPoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RecPoolReq) XXX_Merge(src proto.Message)
- func (m *RecPoolReq) XXX_Size() int
- func (m *RecPoolReq) XXX_Unmarshal(b []byte) error
- type RecPoolResp
- func (*RecPoolResp) Descriptor() ([]byte, []int)
- func (m *RecPoolResp) Marshal() (dAtA []byte, err error)
- func (m *RecPoolResp) MarshalTo(dAtA []byte) (int, error)
- func (*RecPoolResp) ProtoMessage()
- func (m *RecPoolResp) Reset()
- func (m *RecPoolResp) Size() (n int)
- func (m *RecPoolResp) String() string
- func (m *RecPoolResp) Unmarshal(dAtA []byte) error
- func (m *RecPoolResp) XXX_DiscardUnknown()
- func (m *RecPoolResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RecPoolResp) XXX_Merge(src proto.Message)
- func (m *RecPoolResp) XXX_Size() int
- func (m *RecPoolResp) XXX_Unmarshal(b []byte) error
- type RecPoolServer
- type RoomItem
- func (*RoomItem) Descriptor() ([]byte, []int)
- func (m *RoomItem) Marshal() (dAtA []byte, err error)
- func (m *RoomItem) MarshalTo(dAtA []byte) (int, error)
- func (*RoomItem) ProtoMessage()
- func (m *RoomItem) Reset()
- func (m *RoomItem) Size() (n int)
- func (m *RoomItem) String() string
- func (m *RoomItem) Unmarshal(dAtA []byte) error
- func (m *RoomItem) XXX_DiscardUnknown()
- func (m *RoomItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RoomItem) XXX_Merge(src proto.Message)
- func (m *RoomItem) XXX_Size() int
- func (m *RoomItem) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const AppID = "live.xroomfeed"
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
View Source
var PathRecPoolGetList = "/live.xroomfeed.v1.RecPool/GetList"
Functions ¶
func RegisterRecPoolBMServer ¶
func RegisterRecPoolBMServer(e *bm.Engine, server RecPoolBMServer)
RegisterRecPoolBMServer Register the blademaster route
func RegisterRecPoolServer ¶
func RegisterRecPoolServer(s *grpc.Server, srv RecPoolServer)
Types ¶
type Client ¶
type Client struct {
RecPoolClient RecPoolClient
}
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (*Client, error)
NewClient xroom-feed grpc client
type RecPoolBMServer ¶
type RecPoolBMServer interface { // 根据模块位置获取投放列表 position=>RoomItem GetList(ctx context.Context, req *RecPoolReq) (resp *RecPoolResp, err error) }
var RecPoolSvc RecPoolBMServer
type RecPoolClient ¶
type RecPoolClient interface { // 根据模块位置获取投放列表 position=>RoomItem GetList(ctx context.Context, in *RecPoolReq, opts ...grpc.CallOption) (*RecPoolResp, error) }
RecPoolClient is the client API for RecPool service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRecPoolClient ¶
func NewRecPoolClient(cc *grpc.ClientConn) RecPoolClient
type RecPoolReq ¶
type RecPoolReq struct { // 投放模块 ModuleType int64 `` /* 131-byte string literal not displayed */ // 投放模块位置数 PositionNum int64 `` /* 135-byte string literal not displayed */ // 投放模块页数 不传或传0、1都按一页算(暂时没用) PageNum int64 `protobuf:"varint,3,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty" form:"page_num"` // 当前模块已存在的位置房间(逗号分隔、有序),1~position*N(内部去重,保证同一个房间优先出现在好位置) ModuleExistRooms string `` /* 137-byte string literal not displayed */ // 其它模块已存在的位置房间(逗号分隔、有序),1~position*N(内部去重,保证同一个房间优先出现在好位置) OtherExistRooms string `` /* 133-byte string literal not displayed */ // 请求来源 From string `protobuf:"bytes,6,opt,name=from,proto3" json:"from,omitempty" form:"from"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecPoolReq) Descriptor ¶
func (*RecPoolReq) Descriptor() ([]byte, []int)
func (*RecPoolReq) Marshal ¶
func (m *RecPoolReq) Marshal() (dAtA []byte, err error)
func (*RecPoolReq) ProtoMessage ¶
func (*RecPoolReq) ProtoMessage()
func (*RecPoolReq) Reset ¶
func (m *RecPoolReq) Reset()
func (*RecPoolReq) Size ¶
func (m *RecPoolReq) Size() (n int)
func (*RecPoolReq) String ¶
func (m *RecPoolReq) String() string
func (*RecPoolReq) Unmarshal ¶
func (m *RecPoolReq) Unmarshal(dAtA []byte) error
func (*RecPoolReq) XXX_DiscardUnknown ¶
func (m *RecPoolReq) XXX_DiscardUnknown()
func (*RecPoolReq) XXX_Marshal ¶
func (m *RecPoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecPoolReq) XXX_Merge ¶
func (dst *RecPoolReq) XXX_Merge(src proto.Message)
func (*RecPoolReq) XXX_Size ¶
func (m *RecPoolReq) XXX_Size() int
func (*RecPoolReq) XXX_Unmarshal ¶
func (m *RecPoolReq) XXX_Unmarshal(b []byte) error
type RecPoolResp ¶
type RecPoolResp struct { // 主播position => 房间信息(依赖计算的) List map[int64]*RoomItem `` /* 126-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RecPoolResp) Descriptor ¶
func (*RecPoolResp) Descriptor() ([]byte, []int)
func (*RecPoolResp) Marshal ¶
func (m *RecPoolResp) Marshal() (dAtA []byte, err error)
func (*RecPoolResp) ProtoMessage ¶
func (*RecPoolResp) ProtoMessage()
func (*RecPoolResp) Reset ¶
func (m *RecPoolResp) Reset()
func (*RecPoolResp) Size ¶
func (m *RecPoolResp) Size() (n int)
func (*RecPoolResp) String ¶
func (m *RecPoolResp) String() string
func (*RecPoolResp) Unmarshal ¶
func (m *RecPoolResp) Unmarshal(dAtA []byte) error
func (*RecPoolResp) XXX_DiscardUnknown ¶
func (m *RecPoolResp) XXX_DiscardUnknown()
func (*RecPoolResp) XXX_Marshal ¶
func (m *RecPoolResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecPoolResp) XXX_Merge ¶
func (dst *RecPoolResp) XXX_Merge(src proto.Message)
func (*RecPoolResp) XXX_Size ¶
func (m *RecPoolResp) XXX_Size() int
func (*RecPoolResp) XXX_Unmarshal ¶
func (m *RecPoolResp) XXX_Unmarshal(b []byte) error
type RecPoolServer ¶
type RecPoolServer interface { // 根据模块位置获取投放列表 position=>RoomItem GetList(context.Context, *RecPoolReq) (*RecPoolResp, error) }
RecPoolServer is the server API for RecPool service.
type RoomItem ¶
type RoomItem struct { // 房间id RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id"` // 主播uid Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"` // 房间标题 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title"` // 人气 PopularityCount int64 `protobuf:"varint,4,opt,name=popularity_count,json=popularityCount,proto3" json:"popularity_count"` // 关键帧 Keyframe string `protobuf:"bytes,5,opt,name=keyframe,proto3" json:"keyframe"` // 封面 Cover string `protobuf:"bytes,6,opt,name=cover,proto3" json:"cover"` // 二级分区id AreaId int64 `protobuf:"varint,7,opt,name=area_id,json=areaId,proto3" json:"area_id"` // 一级分区id ParentAreaId int64 `protobuf:"varint,8,opt,name=parent_area_id,json=parentAreaId,proto3" json:"parent_area_id"` // 二级分区名称 AreaName string `protobuf:"bytes,9,opt,name=area_name,json=areaName,proto3" json:"area_name"` // 一级分区名称 ParentAreaName string `protobuf:"bytes,10,opt,name=parent_area_name,json=parentAreaName,proto3" json:"parent_area_name"` // 推荐规则 10000+rule_id RecType int64 `protobuf:"varint,11,opt,name=rec_type,json=recType,proto3" json:"rec_type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoomItem) Descriptor ¶
func (*RoomItem) ProtoMessage ¶
func (*RoomItem) ProtoMessage()
func (*RoomItem) XXX_DiscardUnknown ¶
func (m *RoomItem) XXX_DiscardUnknown()
func (*RoomItem) XXX_Marshal ¶
func (*RoomItem) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.