v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

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:

dm.proto

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDm = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDm   = fmt.Errorf("proto: integer overflow")
)
View Source
var PathDmGetConf = "/xlive/open-interface/v1/dm/getConf"
View Source
var PathDmSendmsg = "/xlive/open-interface/v1/dm/sendmsg"

Functions

func RegisterDmBMServer

func RegisterDmBMServer(e *bm.Engine, server DmBMServer)

RegisterDmBMServer Register the blademaster route

func RegisterV1DmService

func RegisterV1DmService(e *bm.Engine, svc DmBMServer, midMap map[string]bm.HandlerFunc)

RegisterV1DmService Register the blademaster route with middleware map midMap is the middleware map, the key is defined in proto

Types

type DmBMServer

type DmBMServer interface {
	// `method:"POST"`
	Sendmsg(ctx context.Context, req *SendMsgReq) (resp *SendMsgResp, err error)

	GetConf(ctx context.Context, req *GetConfReq) (resp *GetConfResp, err error)
}

type GetConfReq

type GetConfReq struct {
	Ts                   string   `protobuf:"bytes,1,opt,name=Ts,proto3" json:"Ts,omitempty" form:"ts"  validate:"required"`
	Sign                 string   `protobuf:"bytes,2,opt,name=Sign,proto3" json:"Sign,omitempty" form:"sign" validate:"required"`
	Group                string   `protobuf:"bytes,3,opt,name=Group,proto3" json:"Group,omitempty" form:"group" validate:"required"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetConfReq) Descriptor

func (*GetConfReq) Descriptor() ([]byte, []int)

func (*GetConfReq) GetGroup

func (m *GetConfReq) GetGroup() string

func (*GetConfReq) GetSign

func (m *GetConfReq) GetSign() string

func (*GetConfReq) GetTs

func (m *GetConfReq) GetTs() string

func (*GetConfReq) Marshal

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

func (*GetConfReq) MarshalTo

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

func (*GetConfReq) ProtoMessage

func (*GetConfReq) ProtoMessage()

func (*GetConfReq) Reset

func (m *GetConfReq) Reset()

func (*GetConfReq) Size

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

func (*GetConfReq) String

func (m *GetConfReq) String() string

func (*GetConfReq) Unmarshal

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

func (*GetConfReq) XXX_DiscardUnknown

func (m *GetConfReq) XXX_DiscardUnknown()

func (*GetConfReq) XXX_Marshal

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

func (*GetConfReq) XXX_Merge

func (dst *GetConfReq) XXX_Merge(src proto.Message)

func (*GetConfReq) XXX_Size

func (m *GetConfReq) XXX_Size() int

func (*GetConfReq) XXX_Unmarshal

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

type GetConfResp

type GetConfResp struct {
	WSPort               []int64  `protobuf:"varint,1,rep,packed,name=WSPort" json:"ws_port"`
	WSSPort              []int64  `protobuf:"varint,2,rep,packed,name=WSSPort" json:"wss_port"`
	TCPPort              []int64  `protobuf:"varint,3,rep,packed,name=TCPPort" json:"tcp_port"`
	IPList               []string `protobuf:"bytes,4,rep,name=IPList" json:"ip_list"`
	DomianList           []string `protobuf:"bytes,5,rep,name=DomianList" json:"domain_list"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetConfResp) Descriptor

func (*GetConfResp) Descriptor() ([]byte, []int)

func (*GetConfResp) GetDomianList

func (m *GetConfResp) GetDomianList() []string

func (*GetConfResp) GetIPList

func (m *GetConfResp) GetIPList() []string

func (*GetConfResp) GetTCPPort

func (m *GetConfResp) GetTCPPort() []int64

func (*GetConfResp) GetWSPort

func (m *GetConfResp) GetWSPort() []int64

func (*GetConfResp) GetWSSPort

func (m *GetConfResp) GetWSSPort() []int64

func (*GetConfResp) Marshal

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

func (*GetConfResp) MarshalTo

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

func (*GetConfResp) ProtoMessage

func (*GetConfResp) ProtoMessage()

func (*GetConfResp) Reset

func (m *GetConfResp) Reset()

func (*GetConfResp) Size

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

func (*GetConfResp) String

func (m *GetConfResp) String() string

func (*GetConfResp) Unmarshal

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

func (*GetConfResp) XXX_DiscardUnknown

func (m *GetConfResp) XXX_DiscardUnknown()

func (*GetConfResp) XXX_Marshal

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

func (*GetConfResp) XXX_Merge

func (dst *GetConfResp) XXX_Merge(src proto.Message)

func (*GetConfResp) XXX_Size

func (m *GetConfResp) XXX_Size() int

func (*GetConfResp) XXX_Unmarshal

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

type SendMsgReq

type SendMsgReq struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=Msg,proto3" json:"Msg,omitempty" form:"msg" validate:"required"`
	Ts                   string   `protobuf:"bytes,2,opt,name=Ts,proto3" json:"Ts,omitempty" form:"ts"  validate:"required"`
	RoomID               int64    `protobuf:"varint,3,opt,name=RoomID,proto3" json:"RoomID,omitempty" form:"room_id" validate:"required"`
	Group                string   `protobuf:"bytes,4,opt,name=Group,proto3" json:"Group,omitempty" form:"group" validate:"required"`
	Sign                 string   `protobuf:"bytes,5,opt,name=Sign,proto3" json:"Sign,omitempty" form:"sign" validate:"required"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMsgReq) Descriptor

func (*SendMsgReq) Descriptor() ([]byte, []int)

func (*SendMsgReq) GetGroup

func (m *SendMsgReq) GetGroup() string

func (*SendMsgReq) GetMsg

func (m *SendMsgReq) GetMsg() string

func (*SendMsgReq) GetRoomID

func (m *SendMsgReq) GetRoomID() int64

func (*SendMsgReq) GetSign

func (m *SendMsgReq) GetSign() string

func (*SendMsgReq) GetTs

func (m *SendMsgReq) GetTs() string

func (*SendMsgReq) Marshal

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

func (*SendMsgReq) MarshalTo

func (m *SendMsgReq) MarshalTo(dAtA []byte) (int, 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 {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendMsgResp) Descriptor

func (*SendMsgResp) Descriptor() ([]byte, []int)

func (*SendMsgResp) Marshal

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

func (*SendMsgResp) MarshalTo

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

Jump to

Keyboard shortcuts

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