Documentation ¶
Overview ¶
Package v1 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/grpc/v1/api.proto
Index ¶
- Constants
- Variables
- func RegisterDMServer(s *grpc.Server, srv DMServer)
- func RegisterV1DMService(e *bm.Engine, svc DM, midMap map[string]bm.HandlerFunc)
- type DM
- type DMClient
- type DMServer
- type ErrMsg
- func (*ErrMsg) Descriptor() ([]byte, []int)
- func (m *ErrMsg) GetMessage() string
- func (m *ErrMsg) Marshal() (dAtA []byte, err error)
- func (m *ErrMsg) MarshalTo(dAtA []byte) (int, error)
- func (*ErrMsg) ProtoMessage()
- func (m *ErrMsg) Reset()
- func (m *ErrMsg) Size() (n int)
- func (m *ErrMsg) String() string
- func (m *ErrMsg) Unmarshal(dAtA []byte) error
- func (m *ErrMsg) XXX_DiscardUnknown()
- func (m *ErrMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ErrMsg) XXX_Merge(src proto.Message)
- func (m *ErrMsg) XXX_Size() int
- func (m *ErrMsg) XXX_Unmarshal(b []byte) error
- type HistoryReq
- func (*HistoryReq) Descriptor() ([]byte, []int)
- func (m *HistoryReq) GetRoomid() int64
- func (m *HistoryReq) Marshal() (dAtA []byte, err error)
- func (m *HistoryReq) MarshalTo(dAtA []byte) (int, error)
- func (*HistoryReq) ProtoMessage()
- func (m *HistoryReq) Reset()
- func (m *HistoryReq) Size() (n int)
- func (m *HistoryReq) String() string
- func (m *HistoryReq) Unmarshal(dAtA []byte) error
- func (m *HistoryReq) XXX_DiscardUnknown()
- func (m *HistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HistoryReq) XXX_Merge(src proto.Message)
- func (m *HistoryReq) XXX_Size() int
- func (m *HistoryReq) XXX_Unmarshal(b []byte) error
- type HistoryResp
- func (*HistoryResp) Descriptor() ([]byte, []int)
- func (m *HistoryResp) GetAdmin() []string
- func (m *HistoryResp) GetRoom() []string
- func (m *HistoryResp) Marshal() (dAtA []byte, err error)
- func (m *HistoryResp) MarshalTo(dAtA []byte) (int, error)
- func (*HistoryResp) ProtoMessage()
- func (m *HistoryResp) Reset()
- func (m *HistoryResp) Size() (n int)
- func (m *HistoryResp) String() string
- func (m *HistoryResp) Unmarshal(dAtA []byte) error
- func (m *HistoryResp) XXX_DiscardUnknown()
- func (m *HistoryResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HistoryResp) XXX_Merge(src proto.Message)
- func (m *HistoryResp) XXX_Size() int
- func (m *HistoryResp) XXX_Unmarshal(b []byte) error
- type Lancer
- func (*Lancer) Descriptor() ([]byte, []int)
- func (m *Lancer) GetBuild() int64
- func (m *Lancer) GetBuvid() string
- func (m *Lancer) GetCookie() string
- func (m *Lancer) GetRefer() string
- func (m *Lancer) GetUserAgent() string
- func (m *Lancer) Marshal() (dAtA []byte, err error)
- func (m *Lancer) MarshalTo(dAtA []byte) (int, error)
- func (*Lancer) ProtoMessage()
- func (m *Lancer) Reset()
- func (m *Lancer) Size() (n int)
- func (m *Lancer) String() string
- func (m *Lancer) Unmarshal(dAtA []byte) error
- func (m *Lancer) XXX_DiscardUnknown()
- func (m *Lancer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Lancer) XXX_Merge(src proto.Message)
- func (m *Lancer) XXX_Size() int
- func (m *Lancer) XXX_Unmarshal(b []byte) error
- type SendMsgReq
- func (*SendMsgReq) Descriptor() ([]byte, []int)
- func (m *SendMsgReq) GetBubble() int64
- func (m *SendMsgReq) GetFontsize() int64
- func (m *SendMsgReq) GetIp() string
- func (m *SendMsgReq) GetLancer() *Lancer
- func (m *SendMsgReq) GetMode() int64
- func (m *SendMsgReq) GetMsg() string
- func (m *SendMsgReq) GetMsgtype() int64
- func (m *SendMsgReq) GetPlatform() string
- func (m *SendMsgReq) GetRnd() string
- func (m *SendMsgReq) GetRoomid() int64
- func (m *SendMsgReq) GetUid() int64
- func (m *SendMsgReq) Marshal() (dAtA []byte, err error)
- func (m *SendMsgReq) MarshalTo(dAtA []byte) (int, error)
- func (*SendMsgReq) ProtoMessage()
- func (m *SendMsgReq) Reset()
- func (m *SendMsgReq) Size() (n int)
- func (m *SendMsgReq) String() string
- func (m *SendMsgReq) Unmarshal(dAtA []byte) error
- func (m *SendMsgReq) XXX_DiscardUnknown()
- func (m *SendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendMsgReq) XXX_Merge(src proto.Message)
- func (m *SendMsgReq) XXX_Size() int
- func (m *SendMsgReq) XXX_Unmarshal(b []byte) error
- type SendMsgResp
- func (*SendMsgResp) Descriptor() ([]byte, []int)
- func (m *SendMsgResp) GetCode() int32
- func (m *SendMsgResp) GetIsLimit() bool
- func (m *SendMsgResp) GetLimitMsg() string
- func (m *SendMsgResp) Marshal() (dAtA []byte, err error)
- func (m *SendMsgResp) MarshalTo(dAtA []byte) (int, error)
- func (*SendMsgResp) ProtoMessage()
- func (m *SendMsgResp) Reset()
- func (m *SendMsgResp) Size() (n int)
- func (m *SendMsgResp) String() string
- func (m *SendMsgResp) Unmarshal(dAtA []byte) error
- func (m *SendMsgResp) XXX_DiscardUnknown()
- func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendMsgResp) XXX_Merge(src proto.Message)
- func (m *SendMsgResp) XXX_Size() int
- func (m *SendMsgResp) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const AppID = "live.livedm"
AppID 弹幕服务discoverID
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterDMServer ¶
func RegisterV1DMService ¶
RegisterV1DMService Register the blademaster route with middleware map midMap is the middleware map, the key is defined in proto
Types ¶
type DM ¶
type DM interface { SendMsg(ctx context.Context, req *SendMsgReq) (resp *SendMsgResp, err error) GetHistory(ctx context.Context, req *HistoryReq) (resp *HistoryResp, err error) }
type DMClient ¶
type DMClient interface { SendMsg(ctx context.Context, in *SendMsgReq, opts ...grpc.CallOption) (*SendMsgResp, error) GetHistory(ctx context.Context, in *HistoryReq, opts ...grpc.CallOption) (*HistoryResp, error) }
DMClient is the client API for DM service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (DMClient, error)
NewClient 弹幕服务client创建
func NewDMClient ¶
func NewDMClient(cc *grpc.ClientConn) DMClient
type DMServer ¶
type DMServer interface { SendMsg(context.Context, *SendMsgReq) (*SendMsgResp, error) GetHistory(context.Context, *HistoryReq) (*HistoryResp, error) }
DMServer is the server API for DM service.
type ErrMsg ¶
type ErrMsg struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ErrMsg) Descriptor ¶
func (*ErrMsg) GetMessage ¶
func (*ErrMsg) ProtoMessage ¶
func (*ErrMsg) ProtoMessage()
func (*ErrMsg) XXX_DiscardUnknown ¶
func (m *ErrMsg) XXX_DiscardUnknown()
func (*ErrMsg) XXX_Marshal ¶
func (*ErrMsg) XXX_Unmarshal ¶
type HistoryReq ¶
type HistoryReq struct { Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HistoryReq) Descriptor ¶
func (*HistoryReq) Descriptor() ([]byte, []int)
func (*HistoryReq) GetRoomid ¶
func (m *HistoryReq) GetRoomid() int64
func (*HistoryReq) Marshal ¶
func (m *HistoryReq) Marshal() (dAtA []byte, err error)
func (*HistoryReq) ProtoMessage ¶
func (*HistoryReq) ProtoMessage()
func (*HistoryReq) Reset ¶
func (m *HistoryReq) Reset()
func (*HistoryReq) Size ¶
func (m *HistoryReq) Size() (n int)
func (*HistoryReq) String ¶
func (m *HistoryReq) String() string
func (*HistoryReq) Unmarshal ¶
func (m *HistoryReq) Unmarshal(dAtA []byte) error
func (*HistoryReq) XXX_DiscardUnknown ¶
func (m *HistoryReq) XXX_DiscardUnknown()
func (*HistoryReq) XXX_Marshal ¶
func (m *HistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoryReq) XXX_Merge ¶
func (dst *HistoryReq) XXX_Merge(src proto.Message)
func (*HistoryReq) XXX_Size ¶
func (m *HistoryReq) XXX_Size() int
func (*HistoryReq) XXX_Unmarshal ¶
func (m *HistoryReq) XXX_Unmarshal(b []byte) error
type HistoryResp ¶
type HistoryResp struct { Room []string `protobuf:"bytes,1,rep,name=room" json:"room"` Admin []string `protobuf:"bytes,2,rep,name=admin" json:"admin"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HistoryResp) Descriptor ¶
func (*HistoryResp) Descriptor() ([]byte, []int)
func (*HistoryResp) GetAdmin ¶
func (m *HistoryResp) GetAdmin() []string
func (*HistoryResp) GetRoom ¶
func (m *HistoryResp) GetRoom() []string
func (*HistoryResp) Marshal ¶
func (m *HistoryResp) Marshal() (dAtA []byte, err error)
func (*HistoryResp) ProtoMessage ¶
func (*HistoryResp) ProtoMessage()
func (*HistoryResp) Reset ¶
func (m *HistoryResp) Reset()
func (*HistoryResp) Size ¶
func (m *HistoryResp) Size() (n int)
func (*HistoryResp) String ¶
func (m *HistoryResp) String() string
func (*HistoryResp) Unmarshal ¶
func (m *HistoryResp) Unmarshal(dAtA []byte) error
func (*HistoryResp) XXX_DiscardUnknown ¶
func (m *HistoryResp) XXX_DiscardUnknown()
func (*HistoryResp) XXX_Marshal ¶
func (m *HistoryResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HistoryResp) XXX_Merge ¶
func (dst *HistoryResp) XXX_Merge(src proto.Message)
func (*HistoryResp) XXX_Size ¶
func (m *HistoryResp) XXX_Size() int
func (*HistoryResp) XXX_Unmarshal ¶
func (m *HistoryResp) XXX_Unmarshal(b []byte) error
type Lancer ¶
type Lancer struct { Buvid string `protobuf:"bytes,1,opt,name=buvid,proto3" json:"buvid,omitempty" form:"buvid"` UserAgent string `protobuf:"bytes,2,opt,name=userAgent,proto3" json:"userAgent,omitempty" form:"userAgent"` Refer string `protobuf:"bytes,3,opt,name=refer,proto3" json:"refer,omitempty" form:"refer"` Cookie string `protobuf:"bytes,4,opt,name=cookie,proto3" json:"cookie,omitempty" form:"cookie"` Build int64 `protobuf:"varint,5,opt,name=build,proto3" json:"build,omitempty" form:"build"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Lancer) Descriptor ¶
func (*Lancer) GetUserAgent ¶
func (*Lancer) ProtoMessage ¶
func (*Lancer) ProtoMessage()
func (*Lancer) XXX_DiscardUnknown ¶
func (m *Lancer) XXX_DiscardUnknown()
func (*Lancer) XXX_Marshal ¶
func (*Lancer) XXX_Unmarshal ¶
type SendMsgReq ¶
type SendMsgReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"` Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty" form:"msg" validate:"required"` Rnd string `protobuf:"bytes,4,opt,name=rnd,proto3" json:"rnd,omitempty" form:"rnd"` Ip string `protobuf:"bytes,5,opt,name=ip,proto3" json:"ip,omitempty" form:"ip"` Fontsize int64 `protobuf:"varint,7,opt,name=fontsize,proto3" json:"fontsize,omitempty" form:"fontsize" validate:"gte=0"` Mode int64 `protobuf:"varint,8,opt,name=mode,proto3" json:"mode,omitempty" form:"mode" validate:"gte=0"` Platform string `protobuf:"bytes,9,opt,name=platform,proto3" json:"platform,omitempty" form:"platform"` Msgtype int64 `protobuf:"varint,10,opt,name=msgtype,proto3" json:"msgtype,omitempty" form:"msgtype" validate:"gte=0"` Bubble int64 `protobuf:"varint,11,opt,name=bubble,proto3" json:"bubble,omitempty" form:"bubble"` Lancer *Lancer `protobuf:"bytes,12,opt,name=lancer" json:"lancer,omitempty" form:"lancer"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendMsgReq) Descriptor ¶
func (*SendMsgReq) Descriptor() ([]byte, []int)
func (*SendMsgReq) GetBubble ¶
func (m *SendMsgReq) GetBubble() int64
func (*SendMsgReq) GetFontsize ¶
func (m *SendMsgReq) GetFontsize() int64
func (*SendMsgReq) GetIp ¶
func (m *SendMsgReq) GetIp() string
func (*SendMsgReq) GetLancer ¶
func (m *SendMsgReq) GetLancer() *Lancer
func (*SendMsgReq) GetMode ¶
func (m *SendMsgReq) GetMode() int64
func (*SendMsgReq) GetMsg ¶
func (m *SendMsgReq) GetMsg() string
func (*SendMsgReq) GetMsgtype ¶
func (m *SendMsgReq) GetMsgtype() int64
func (*SendMsgReq) GetPlatform ¶
func (m *SendMsgReq) GetPlatform() string
func (*SendMsgReq) GetRnd ¶
func (m *SendMsgReq) GetRnd() string
func (*SendMsgReq) GetRoomid ¶
func (m *SendMsgReq) GetRoomid() int64
func (*SendMsgReq) GetUid ¶
func (m *SendMsgReq) GetUid() int64
func (*SendMsgReq) Marshal ¶
func (m *SendMsgReq) Marshal() (dAtA []byte, err error)
func (*SendMsgReq) ProtoMessage ¶
func (*SendMsgReq) ProtoMessage()
func (*SendMsgReq) Reset ¶
func (m *SendMsgReq) Reset()
func (*SendMsgReq) Size ¶
func (m *SendMsgReq) Size() (n int)
func (*SendMsgReq) String ¶
func (m *SendMsgReq) String() string
func (*SendMsgReq) Unmarshal ¶
func (m *SendMsgReq) Unmarshal(dAtA []byte) error
func (*SendMsgReq) XXX_DiscardUnknown ¶
func (m *SendMsgReq) XXX_DiscardUnknown()
func (*SendMsgReq) XXX_Marshal ¶
func (m *SendMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMsgReq) XXX_Merge ¶
func (dst *SendMsgReq) XXX_Merge(src proto.Message)
func (*SendMsgReq) XXX_Size ¶
func (m *SendMsgReq) XXX_Size() int
func (*SendMsgReq) XXX_Unmarshal ¶
func (m *SendMsgReq) XXX_Unmarshal(b []byte) error
type SendMsgResp ¶
type SendMsgResp struct { IsLimit bool `protobuf:"varint,1,opt,name=isLimit,proto3" json:"islimit"` LimitMsg string `protobuf:"bytes,2,opt,name=limitMsg,proto3" json:"limitmsg"` Code int32 `protobuf:"varint,3,opt,name=code,proto3" json:"code"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendMsgResp) Descriptor ¶
func (*SendMsgResp) Descriptor() ([]byte, []int)
func (*SendMsgResp) GetCode ¶
func (m *SendMsgResp) GetCode() int32
func (*SendMsgResp) GetIsLimit ¶
func (m *SendMsgResp) GetIsLimit() bool
func (*SendMsgResp) GetLimitMsg ¶
func (m *SendMsgResp) GetLimitMsg() string
func (*SendMsgResp) Marshal ¶
func (m *SendMsgResp) Marshal() (dAtA []byte, err error)
func (*SendMsgResp) ProtoMessage ¶
func (*SendMsgResp) ProtoMessage()
func (*SendMsgResp) Reset ¶
func (m *SendMsgResp) Reset()
func (*SendMsgResp) Size ¶
func (m *SendMsgResp) Size() (n int)
func (*SendMsgResp) String ¶
func (m *SendMsgResp) String() string
func (*SendMsgResp) Unmarshal ¶
func (m *SendMsgResp) Unmarshal(dAtA []byte) error
func (*SendMsgResp) XXX_DiscardUnknown ¶
func (m *SendMsgResp) XXX_DiscardUnknown()
func (*SendMsgResp) XXX_Marshal ¶
func (m *SendMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendMsgResp) XXX_Merge ¶
func (dst *SendMsgResp) XXX_Merge(src proto.Message)
func (*SendMsgResp) XXX_Size ¶
func (m *SendMsgResp) XXX_Size() int
func (*SendMsgResp) XXX_Unmarshal ¶
func (m *SendMsgResp) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.