Documentation ¶
Overview ¶
Package v0 is a generated liverpc stub package. This code was generated with go-common/app/tool/liverpc/protoc-gen-liverpc v0.1.
It is generated from these files:
v0/Smalltv.proto
Index ¶
- Variables
- type Smalltv
- type SmalltvStartReq
- func (*SmalltvStartReq) Descriptor() ([]byte, []int)
- func (m *SmalltvStartReq) GetGiftId() int64
- func (m *SmalltvStartReq) GetNum() int64
- func (m *SmalltvStartReq) GetRoomid() int64
- func (m *SmalltvStartReq) GetStyleId() int64
- func (m *SmalltvStartReq) GetTid() int64
- func (m *SmalltvStartReq) GetUid() int64
- func (m *SmalltvStartReq) Marshal() (dAtA []byte, err error)
- func (m *SmalltvStartReq) MarshalTo(dAtA []byte) (int, error)
- func (*SmalltvStartReq) ProtoMessage()
- func (m *SmalltvStartReq) Reset()
- func (m *SmalltvStartReq) Size() (n int)
- func (m *SmalltvStartReq) String() string
- func (m *SmalltvStartReq) Unmarshal(dAtA []byte) error
- func (m *SmalltvStartReq) XXX_DiscardUnknown()
- func (m *SmalltvStartReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SmalltvStartReq) XXX_Merge(src proto.Message)
- func (m *SmalltvStartReq) XXX_Size() int
- func (m *SmalltvStartReq) XXX_Unmarshal(b []byte) error
- type SmalltvStartResp
- func (*SmalltvStartResp) Descriptor() ([]byte, []int)
- func (m *SmalltvStartResp) GetCode() int64
- func (m *SmalltvStartResp) GetData() []*SmalltvStartResp_MSG
- func (m *SmalltvStartResp) GetMsg() string
- func (m *SmalltvStartResp) Marshal() (dAtA []byte, err error)
- func (m *SmalltvStartResp) MarshalTo(dAtA []byte) (int, error)
- func (*SmalltvStartResp) ProtoMessage()
- func (m *SmalltvStartResp) Reset()
- func (m *SmalltvStartResp) Size() (n int)
- func (m *SmalltvStartResp) String() string
- func (m *SmalltvStartResp) Unmarshal(dAtA []byte) error
- func (m *SmalltvStartResp) XXX_DiscardUnknown()
- func (m *SmalltvStartResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SmalltvStartResp) XXX_Merge(src proto.Message)
- func (m *SmalltvStartResp) XXX_Size() int
- func (m *SmalltvStartResp) XXX_Unmarshal(b []byte) error
- type SmalltvStartResp_MSG
- func (*SmalltvStartResp_MSG) Descriptor() ([]byte, []int)
- func (m *SmalltvStartResp_MSG) GetBroadcastType() int64
- func (m *SmalltvStartResp_MSG) GetCmd() string
- func (m *SmalltvStartResp_MSG) GetMsg() string
- func (m *SmalltvStartResp_MSG) GetMsgCommon() string
- func (m *SmalltvStartResp_MSG) GetMsgSelf() string
- func (m *SmalltvStartResp_MSG) GetMsgText() string
- func (m *SmalltvStartResp_MSG) GetRealRoomid() int64
- func (m *SmalltvStartResp_MSG) GetRep() int64
- func (m *SmalltvStartResp_MSG) GetRnd() int64
- func (m *SmalltvStartResp_MSG) GetRoomid() int64
- func (m *SmalltvStartResp_MSG) GetStyleType() int64
- func (m *SmalltvStartResp_MSG) GetUrl() string
- func (m *SmalltvStartResp_MSG) Marshal() (dAtA []byte, err error)
- func (m *SmalltvStartResp_MSG) MarshalTo(dAtA []byte) (int, error)
- func (*SmalltvStartResp_MSG) ProtoMessage()
- func (m *SmalltvStartResp_MSG) Reset()
- func (m *SmalltvStartResp_MSG) Size() (n int)
- func (m *SmalltvStartResp_MSG) String() string
- func (m *SmalltvStartResp_MSG) Unmarshal(dAtA []byte) error
- func (m *SmalltvStartResp_MSG) XXX_DiscardUnknown()
- func (m *SmalltvStartResp_MSG) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SmalltvStartResp_MSG) XXX_Merge(src proto.Message)
- func (m *SmalltvStartResp_MSG) XXX_Size() int
- func (m *SmalltvStartResp_MSG) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthSmalltv = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSmalltv = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Smalltv ¶
type Smalltv interface { // * 开启抽奖的内部接口 // 返回的是广播的内容列表 Start(context.Context, *SmalltvStartReq) (*SmalltvStartResp, error) }
func NewSmalltvRpcClient ¶
NewSmalltvRpcClient creates a Rpc client that implements the Smalltv interface. It communicates using Rpc and can be configured with a custom HTTPClient.
type SmalltvStartReq ¶
type SmalltvStartReq struct { // 用户id Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"` // 房间号 Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"` // 道具id GiftId int64 `protobuf:"varint,3,opt,name=gift_id,json=giftId,proto3" json:"gift_id"` // 道具个数 Num int64 `protobuf:"varint,4,opt,name=num,proto3" json:"num"` // 业务id Tid int64 `protobuf:"varint,5,opt,name=tid,proto3" json:"tid"` // 公告样式id StyleId int64 `protobuf:"varint,6,opt,name=style_id,json=styleId,proto3" json:"style_id"` }
func (*SmalltvStartReq) Descriptor ¶
func (*SmalltvStartReq) Descriptor() ([]byte, []int)
func (*SmalltvStartReq) GetGiftId ¶
func (m *SmalltvStartReq) GetGiftId() int64
func (*SmalltvStartReq) GetNum ¶
func (m *SmalltvStartReq) GetNum() int64
func (*SmalltvStartReq) GetRoomid ¶
func (m *SmalltvStartReq) GetRoomid() int64
func (*SmalltvStartReq) GetStyleId ¶
func (m *SmalltvStartReq) GetStyleId() int64
func (*SmalltvStartReq) GetTid ¶
func (m *SmalltvStartReq) GetTid() int64
func (*SmalltvStartReq) GetUid ¶
func (m *SmalltvStartReq) GetUid() int64
func (*SmalltvStartReq) Marshal ¶
func (m *SmalltvStartReq) Marshal() (dAtA []byte, err error)
func (*SmalltvStartReq) ProtoMessage ¶
func (*SmalltvStartReq) ProtoMessage()
func (*SmalltvStartReq) Reset ¶
func (m *SmalltvStartReq) Reset()
func (*SmalltvStartReq) Size ¶
func (m *SmalltvStartReq) Size() (n int)
func (*SmalltvStartReq) String ¶
func (m *SmalltvStartReq) String() string
func (*SmalltvStartReq) Unmarshal ¶
func (m *SmalltvStartReq) Unmarshal(dAtA []byte) error
func (*SmalltvStartReq) XXX_DiscardUnknown ¶
func (m *SmalltvStartReq) XXX_DiscardUnknown()
func (*SmalltvStartReq) XXX_Marshal ¶
func (m *SmalltvStartReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SmalltvStartReq) XXX_Merge ¶
func (dst *SmalltvStartReq) XXX_Merge(src proto.Message)
func (*SmalltvStartReq) XXX_Size ¶
func (m *SmalltvStartReq) XXX_Size() int
func (*SmalltvStartReq) XXX_Unmarshal ¶
func (m *SmalltvStartReq) XXX_Unmarshal(b []byte) error
type SmalltvStartResp ¶
type SmalltvStartResp struct { // Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"` // Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` // Data []*SmalltvStartResp_MSG `protobuf:"bytes,3,rep,name=data" json:"data"` }
func (*SmalltvStartResp) Descriptor ¶
func (*SmalltvStartResp) Descriptor() ([]byte, []int)
func (*SmalltvStartResp) GetCode ¶
func (m *SmalltvStartResp) GetCode() int64
func (*SmalltvStartResp) GetData ¶
func (m *SmalltvStartResp) GetData() []*SmalltvStartResp_MSG
func (*SmalltvStartResp) GetMsg ¶
func (m *SmalltvStartResp) GetMsg() string
func (*SmalltvStartResp) Marshal ¶
func (m *SmalltvStartResp) Marshal() (dAtA []byte, err error)
func (*SmalltvStartResp) ProtoMessage ¶
func (*SmalltvStartResp) ProtoMessage()
func (*SmalltvStartResp) Reset ¶
func (m *SmalltvStartResp) Reset()
func (*SmalltvStartResp) Size ¶
func (m *SmalltvStartResp) Size() (n int)
func (*SmalltvStartResp) String ¶
func (m *SmalltvStartResp) String() string
func (*SmalltvStartResp) Unmarshal ¶
func (m *SmalltvStartResp) Unmarshal(dAtA []byte) error
func (*SmalltvStartResp) XXX_DiscardUnknown ¶
func (m *SmalltvStartResp) XXX_DiscardUnknown()
func (*SmalltvStartResp) XXX_Marshal ¶
func (m *SmalltvStartResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SmalltvStartResp) XXX_Merge ¶
func (dst *SmalltvStartResp) XXX_Merge(src proto.Message)
func (*SmalltvStartResp) XXX_Size ¶
func (m *SmalltvStartResp) XXX_Size() int
func (*SmalltvStartResp) XXX_Unmarshal ¶
func (m *SmalltvStartResp) XXX_Unmarshal(b []byte) error
type SmalltvStartResp_MSG ¶
type SmalltvStartResp_MSG struct { // Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd"` // Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` // MsgText string `protobuf:"bytes,3,opt,name=msg_text,json=msgText,proto3" json:"msg_text"` // MsgCommon string `protobuf:"bytes,4,opt,name=msg_common,json=msgCommon,proto3" json:"msg_common"` // MsgSelf string `protobuf:"bytes,5,opt,name=msg_self,json=msgSelf,proto3" json:"msg_self"` // Rep int64 `protobuf:"varint,6,opt,name=rep,proto3" json:"rep"` // StyleType int64 `protobuf:"varint,7,opt,name=styleType,proto3" json:"styleType"` // Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url"` // Roomid int64 `protobuf:"varint,9,opt,name=roomid,proto3" json:"roomid"` // RealRoomid int64 `protobuf:"varint,10,opt,name=real_roomid,json=realRoomid,proto3" json:"real_roomid"` // Rnd int64 `protobuf:"varint,11,opt,name=rnd,proto3" json:"rnd"` // BroadcastType int64 `protobuf:"varint,12,opt,name=broadcast_type,json=broadcastType,proto3" json:"broadcast_type"` }
func (*SmalltvStartResp_MSG) Descriptor ¶
func (*SmalltvStartResp_MSG) Descriptor() ([]byte, []int)
func (*SmalltvStartResp_MSG) GetBroadcastType ¶
func (m *SmalltvStartResp_MSG) GetBroadcastType() int64
func (*SmalltvStartResp_MSG) GetCmd ¶
func (m *SmalltvStartResp_MSG) GetCmd() string
func (*SmalltvStartResp_MSG) GetMsg ¶
func (m *SmalltvStartResp_MSG) GetMsg() string
func (*SmalltvStartResp_MSG) GetMsgCommon ¶
func (m *SmalltvStartResp_MSG) GetMsgCommon() string
func (*SmalltvStartResp_MSG) GetMsgSelf ¶
func (m *SmalltvStartResp_MSG) GetMsgSelf() string
func (*SmalltvStartResp_MSG) GetMsgText ¶
func (m *SmalltvStartResp_MSG) GetMsgText() string
func (*SmalltvStartResp_MSG) GetRealRoomid ¶
func (m *SmalltvStartResp_MSG) GetRealRoomid() int64
func (*SmalltvStartResp_MSG) GetRep ¶
func (m *SmalltvStartResp_MSG) GetRep() int64
func (*SmalltvStartResp_MSG) GetRnd ¶
func (m *SmalltvStartResp_MSG) GetRnd() int64
func (*SmalltvStartResp_MSG) GetRoomid ¶
func (m *SmalltvStartResp_MSG) GetRoomid() int64
func (*SmalltvStartResp_MSG) GetStyleType ¶
func (m *SmalltvStartResp_MSG) GetStyleType() int64
func (*SmalltvStartResp_MSG) GetUrl ¶
func (m *SmalltvStartResp_MSG) GetUrl() string
func (*SmalltvStartResp_MSG) Marshal ¶
func (m *SmalltvStartResp_MSG) Marshal() (dAtA []byte, err error)
func (*SmalltvStartResp_MSG) MarshalTo ¶
func (m *SmalltvStartResp_MSG) MarshalTo(dAtA []byte) (int, error)
func (*SmalltvStartResp_MSG) ProtoMessage ¶
func (*SmalltvStartResp_MSG) ProtoMessage()
func (*SmalltvStartResp_MSG) Reset ¶
func (m *SmalltvStartResp_MSG) Reset()
func (*SmalltvStartResp_MSG) Size ¶
func (m *SmalltvStartResp_MSG) Size() (n int)
func (*SmalltvStartResp_MSG) String ¶
func (m *SmalltvStartResp_MSG) String() string
func (*SmalltvStartResp_MSG) Unmarshal ¶
func (m *SmalltvStartResp_MSG) Unmarshal(dAtA []byte) error
func (*SmalltvStartResp_MSG) XXX_DiscardUnknown ¶
func (m *SmalltvStartResp_MSG) XXX_DiscardUnknown()
func (*SmalltvStartResp_MSG) XXX_Marshal ¶
func (m *SmalltvStartResp_MSG) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SmalltvStartResp_MSG) XXX_Merge ¶
func (dst *SmalltvStartResp_MSG) XXX_Merge(src proto.Message)
func (*SmalltvStartResp_MSG) XXX_Size ¶
func (m *SmalltvStartResp_MSG) XXX_Size() int
func (*SmalltvStartResp_MSG) XXX_Unmarshal ¶
func (m *SmalltvStartResp_MSG) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.