Documentation
¶
Index ¶
- Constants
- Variables
- func NewLiveLinkSrvEndpoints() []*api.Endpoint
- func RegisterLiveLinkSrvHandler(s server.Server, hdlr LiveLinkSrvHandler, opts ...server.HandlerOption) error
- type LiveLink
- func (*LiveLink) Descriptor() ([]byte, []int)deprecated
- func (x *LiveLink) GetAdminId() uint32
- func (x *LiveLink) GetAnchorId() int64
- func (x *LiveLink) GetAudienceId() int64
- func (x *LiveLink) GetCdnType() string
- func (x *LiveLink) GetCreatedAt() string
- func (x *LiveLink) GetEndAt() string
- func (x *LiveLink) GetId() uint32
- func (x *LiveLink) GetLinkId() uint64
- func (x *LiveLink) GetLiveId() uint64
- func (x *LiveLink) GetOutType() uint32
- func (x *LiveLink) GetReason() string
- func (x *LiveLink) GetServiceType() string
- func (x *LiveLink) GetStartAt() string
- func (x *LiveLink) GetStatus() string
- func (*LiveLink) ProtoMessage()
- func (x *LiveLink) ProtoReflect() protoreflect.Message
- func (x *LiveLink) Reset()
- func (x *LiveLink) String() string
- func (m *LiveLink) Validate() error
- func (m *LiveLink) ValidateAll() error
- type LiveLinkMultiError
- type LiveLinkSrvHandler
- type LiveLinkSrvService
- type LiveLinkValidationError
- type LiveLinksCloseReq
- func (*LiveLinksCloseReq) Descriptor() ([]byte, []int)deprecated
- func (x *LiveLinksCloseReq) GetAnchorId() int64
- func (x *LiveLinksCloseReq) GetEndAt() string
- func (x *LiveLinksCloseReq) GetLiveId() uint64
- func (x *LiveLinksCloseReq) GetOutType() uint32
- func (x *LiveLinksCloseReq) GetReason() string
- func (*LiveLinksCloseReq) ProtoMessage()
- func (x *LiveLinksCloseReq) ProtoReflect() protoreflect.Message
- func (x *LiveLinksCloseReq) Reset()
- func (x *LiveLinksCloseReq) String() string
- func (m *LiveLinksCloseReq) Validate() error
- func (m *LiveLinksCloseReq) ValidateAll() error
- type LiveLinksCloseReqMultiError
- type LiveLinksCloseReqValidationError
- func (e LiveLinksCloseReqValidationError) Cause() error
- func (e LiveLinksCloseReqValidationError) Error() string
- func (e LiveLinksCloseReqValidationError) ErrorName() string
- func (e LiveLinksCloseReqValidationError) Field() string
- func (e LiveLinksCloseReqValidationError) Key() bool
- func (e LiveLinksCloseReqValidationError) Reason() string
- type StopLinkReq
- func (*StopLinkReq) Descriptor() ([]byte, []int)deprecated
- func (x *StopLinkReq) GetAnchorId() int64
- func (x *StopLinkReq) GetAudienceId() int64
- func (x *StopLinkReq) GetEndAt() string
- func (x *StopLinkReq) GetLinkId() uint64
- func (x *StopLinkReq) GetLiveId() uint64
- func (x *StopLinkReq) GetOutType() uint32
- func (x *StopLinkReq) GetReason() string
- func (*StopLinkReq) ProtoMessage()
- func (x *StopLinkReq) ProtoReflect() protoreflect.Message
- func (x *StopLinkReq) Reset()
- func (x *StopLinkReq) String() string
- func (m *StopLinkReq) Validate() error
- func (m *StopLinkReq) ValidateAll() error
- type StopLinkReqMultiError
- type StopLinkReqValidationError
- func (e StopLinkReqValidationError) Cause() error
- func (e StopLinkReqValidationError) Error() string
- func (e StopLinkReqValidationError) ErrorName() string
- func (e StopLinkReqValidationError) Field() string
- func (e StopLinkReqValidationError) Key() bool
- func (e StopLinkReqValidationError) Reason() string
Constants ¶
const ( // 连线中 LiveLinkStatusCreate = "create" // 连线中 LiveLinkStatusIng = "linking" // 已结束 LiveLinkStatusEnd = "end" // 连线停止方式 AudienceEnd = 1 // 观众关闭 AnchorEnd = 2 // 主播关闭 AudiencePushError = 3 // 观众推流失败 AnchorMixError = 4 // 主播合流失败 AudienceExitLive = 5 // 观众退出直播间 AnchorEndLive = 6 // 主播关播 AnchorPullErr = 7 // 主播拉流失败 Background = 8 // 后台 AnchorCreateLive = 9 // 主播开播关闭连麦 LiveLinkCamera = "camera" //摄像头 LiveLinkMic = "mic" //麦克风 LiveLinkMixStreamIncrOptType = 1 // 增加麦位混流 LiveLinkMixStreamDecrOptType = 2 // 减少麦位混流 LiveLinkPullStreamIncrOptType = 1 // 拉流成功增加麦位 LiveLinkPullStreamDecrOptType = 2 // 减少麦位 )
Variables ¶
var File_proto_liveLink_liveLink_proto protoreflect.FileDescriptor
Functions ¶
func NewLiveLinkSrvEndpoints ¶
func RegisterLiveLinkSrvHandler ¶
func RegisterLiveLinkSrvHandler(s server.Server, hdlr LiveLinkSrvHandler, opts ...server.HandlerOption) error
Types ¶
type LiveLink ¶
type LiveLink struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` LiveId uint64 `protobuf:"varint,2,opt,name=live_id,json=liveId,proto3" json:"live_id"` LinkId uint64 `protobuf:"varint,3,opt,name=link_id,json=linkId,proto3" json:"link_id"` AnchorId int64 `protobuf:"varint,4,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id"` AudienceId int64 `protobuf:"varint,5,opt,name=audience_id,json=audienceId,proto3" json:"audience_id"` Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status"` OutType uint32 `protobuf:"varint,7,opt,name=out_type,json=outType,proto3" json:"out_type"` AdminId uint32 `protobuf:"varint,8,opt,name=admin_id,json=adminId,proto3" json:"admin_id"` CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at"` StartAt string `protobuf:"bytes,10,opt,name=start_at,json=startAt,proto3" json:"start_at"` EndAt string `protobuf:"bytes,11,opt,name=end_at,json=endAt,proto3" json:"end_at"` ServiceType string `protobuf:"bytes,12,opt,name=service_type,json=serviceType,proto3" json:"service_type"` CdnType string `protobuf:"bytes,13,opt,name=cdn_type,json=cdnType,proto3" json:"cdn_type"` Reason string `protobuf:"bytes,14,opt,name=reason,proto3" json:"reason"` // contains filtered or unexported fields }
func (*LiveLink) Descriptor
deprecated
func (*LiveLink) GetAdminId ¶
func (*LiveLink) GetAnchorId ¶
func (*LiveLink) GetAudienceId ¶
func (*LiveLink) GetCdnType ¶
func (*LiveLink) GetCreatedAt ¶
func (*LiveLink) GetOutType ¶
func (*LiveLink) GetServiceType ¶
func (*LiveLink) GetStartAt ¶
func (*LiveLink) ProtoMessage ¶
func (*LiveLink) ProtoMessage()
func (*LiveLink) ProtoReflect ¶
func (x *LiveLink) ProtoReflect() protoreflect.Message
func (*LiveLink) Validate ¶
Validate checks the field values on LiveLink with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LiveLink) ValidateAll ¶
ValidateAll checks the field values on LiveLink with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LiveLinkMultiError, or nil if none found.
type LiveLinkMultiError ¶
type LiveLinkMultiError []error
LiveLinkMultiError is an error wrapping multiple validation errors returned by LiveLink.ValidateAll() if the designated constraints aren't met.
func (LiveLinkMultiError) AllErrors ¶
func (m LiveLinkMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LiveLinkMultiError) Error ¶
func (m LiveLinkMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LiveLinkSrvHandler ¶
type LiveLinkSrvHandler interface { }
type LiveLinkSrvService ¶
type LiveLinkSrvService interface { }
func NewLiveLinkSrvService ¶
func NewLiveLinkSrvService(name string, c client.Client) LiveLinkSrvService
type LiveLinkValidationError ¶
type LiveLinkValidationError struct {
// contains filtered or unexported fields
}
LiveLinkValidationError is the validation error returned by LiveLink.Validate if the designated constraints aren't met.
func (LiveLinkValidationError) Cause ¶
func (e LiveLinkValidationError) Cause() error
Cause function returns cause value.
func (LiveLinkValidationError) Error ¶
func (e LiveLinkValidationError) Error() string
Error satisfies the builtin error interface
func (LiveLinkValidationError) ErrorName ¶
func (e LiveLinkValidationError) ErrorName() string
ErrorName returns error name.
func (LiveLinkValidationError) Field ¶
func (e LiveLinkValidationError) Field() string
Field function returns field value.
func (LiveLinkValidationError) Key ¶
func (e LiveLinkValidationError) Key() bool
Key function returns key value.
func (LiveLinkValidationError) Reason ¶
func (e LiveLinkValidationError) Reason() string
Reason function returns reason value.
type LiveLinksCloseReq ¶
type LiveLinksCloseReq struct { LiveId uint64 `protobuf:"varint,1,opt,name=live_id,json=liveId,proto3" json:"live_id"` AnchorId int64 `protobuf:"varint,2,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id"` OutType uint32 `protobuf:"varint,3,opt,name=out_type,json=outType,proto3" json:"out_type"` EndAt string `protobuf:"bytes,4,opt,name=end_at,json=endAt,proto3" json:"end_at"` Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason"` // contains filtered or unexported fields }
func (*LiveLinksCloseReq) Descriptor
deprecated
func (*LiveLinksCloseReq) Descriptor() ([]byte, []int)
Deprecated: Use LiveLinksCloseReq.ProtoReflect.Descriptor instead.
func (*LiveLinksCloseReq) GetAnchorId ¶
func (x *LiveLinksCloseReq) GetAnchorId() int64
func (*LiveLinksCloseReq) GetEndAt ¶
func (x *LiveLinksCloseReq) GetEndAt() string
func (*LiveLinksCloseReq) GetLiveId ¶
func (x *LiveLinksCloseReq) GetLiveId() uint64
func (*LiveLinksCloseReq) GetOutType ¶
func (x *LiveLinksCloseReq) GetOutType() uint32
func (*LiveLinksCloseReq) GetReason ¶
func (x *LiveLinksCloseReq) GetReason() string
func (*LiveLinksCloseReq) ProtoMessage ¶
func (*LiveLinksCloseReq) ProtoMessage()
func (*LiveLinksCloseReq) ProtoReflect ¶
func (x *LiveLinksCloseReq) ProtoReflect() protoreflect.Message
func (*LiveLinksCloseReq) Reset ¶
func (x *LiveLinksCloseReq) Reset()
func (*LiveLinksCloseReq) String ¶
func (x *LiveLinksCloseReq) String() string
func (*LiveLinksCloseReq) Validate ¶
func (m *LiveLinksCloseReq) Validate() error
Validate checks the field values on LiveLinksCloseReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LiveLinksCloseReq) ValidateAll ¶
func (m *LiveLinksCloseReq) ValidateAll() error
ValidateAll checks the field values on LiveLinksCloseReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LiveLinksCloseReqMultiError, or nil if none found.
type LiveLinksCloseReqMultiError ¶
type LiveLinksCloseReqMultiError []error
LiveLinksCloseReqMultiError is an error wrapping multiple validation errors returned by LiveLinksCloseReq.ValidateAll() if the designated constraints aren't met.
func (LiveLinksCloseReqMultiError) AllErrors ¶
func (m LiveLinksCloseReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LiveLinksCloseReqMultiError) Error ¶
func (m LiveLinksCloseReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LiveLinksCloseReqValidationError ¶
type LiveLinksCloseReqValidationError struct {
// contains filtered or unexported fields
}
LiveLinksCloseReqValidationError is the validation error returned by LiveLinksCloseReq.Validate if the designated constraints aren't met.
func (LiveLinksCloseReqValidationError) Cause ¶
func (e LiveLinksCloseReqValidationError) Cause() error
Cause function returns cause value.
func (LiveLinksCloseReqValidationError) Error ¶
func (e LiveLinksCloseReqValidationError) Error() string
Error satisfies the builtin error interface
func (LiveLinksCloseReqValidationError) ErrorName ¶
func (e LiveLinksCloseReqValidationError) ErrorName() string
ErrorName returns error name.
func (LiveLinksCloseReqValidationError) Field ¶
func (e LiveLinksCloseReqValidationError) Field() string
Field function returns field value.
func (LiveLinksCloseReqValidationError) Key ¶
func (e LiveLinksCloseReqValidationError) Key() bool
Key function returns key value.
func (LiveLinksCloseReqValidationError) Reason ¶
func (e LiveLinksCloseReqValidationError) Reason() string
Reason function returns reason value.
type StopLinkReq ¶
type StopLinkReq struct { LiveId uint64 `protobuf:"varint,1,opt,name=live_id,json=liveId,proto3" json:"live_id"` LinkId uint64 `protobuf:"varint,2,opt,name=link_id,json=linkId,proto3" json:"link_id"` AudienceId int64 `protobuf:"varint,3,opt,name=audience_id,json=audienceId,proto3" json:"audience_id"` AnchorId int64 `protobuf:"varint,4,opt,name=anchor_id,json=anchorId,proto3" json:"anchor_id"` OutType uint32 `protobuf:"varint,5,opt,name=out_type,json=outType,proto3" json:"out_type"` EndAt string `protobuf:"bytes,6,opt,name=end_at,json=endAt,proto3" json:"end_at"` Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason"` // contains filtered or unexported fields }
func (*StopLinkReq) Descriptor
deprecated
func (*StopLinkReq) Descriptor() ([]byte, []int)
Deprecated: Use StopLinkReq.ProtoReflect.Descriptor instead.
func (*StopLinkReq) GetAnchorId ¶
func (x *StopLinkReq) GetAnchorId() int64
func (*StopLinkReq) GetAudienceId ¶
func (x *StopLinkReq) GetAudienceId() int64
func (*StopLinkReq) GetEndAt ¶
func (x *StopLinkReq) GetEndAt() string
func (*StopLinkReq) GetLinkId ¶
func (x *StopLinkReq) GetLinkId() uint64
func (*StopLinkReq) GetLiveId ¶
func (x *StopLinkReq) GetLiveId() uint64
func (*StopLinkReq) GetOutType ¶
func (x *StopLinkReq) GetOutType() uint32
func (*StopLinkReq) GetReason ¶
func (x *StopLinkReq) GetReason() string
func (*StopLinkReq) ProtoMessage ¶
func (*StopLinkReq) ProtoMessage()
func (*StopLinkReq) ProtoReflect ¶
func (x *StopLinkReq) ProtoReflect() protoreflect.Message
func (*StopLinkReq) Reset ¶
func (x *StopLinkReq) Reset()
func (*StopLinkReq) String ¶
func (x *StopLinkReq) String() string
func (*StopLinkReq) Validate ¶
func (m *StopLinkReq) Validate() error
Validate checks the field values on StopLinkReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StopLinkReq) ValidateAll ¶
func (m *StopLinkReq) ValidateAll() error
ValidateAll checks the field values on StopLinkReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StopLinkReqMultiError, or nil if none found.
type StopLinkReqMultiError ¶
type StopLinkReqMultiError []error
StopLinkReqMultiError is an error wrapping multiple validation errors returned by StopLinkReq.ValidateAll() if the designated constraints aren't met.
func (StopLinkReqMultiError) AllErrors ¶
func (m StopLinkReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StopLinkReqMultiError) Error ¶
func (m StopLinkReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StopLinkReqValidationError ¶
type StopLinkReqValidationError struct {
// contains filtered or unexported fields
}
StopLinkReqValidationError is the validation error returned by StopLinkReq.Validate if the designated constraints aren't met.
func (StopLinkReqValidationError) Cause ¶
func (e StopLinkReqValidationError) Cause() error
Cause function returns cause value.
func (StopLinkReqValidationError) Error ¶
func (e StopLinkReqValidationError) Error() string
Error satisfies the builtin error interface
func (StopLinkReqValidationError) ErrorName ¶
func (e StopLinkReqValidationError) ErrorName() string
ErrorName returns error name.
func (StopLinkReqValidationError) Field ¶
func (e StopLinkReqValidationError) Field() string
Field function returns field value.
func (StopLinkReqValidationError) Key ¶
func (e StopLinkReqValidationError) Key() bool
Key function returns key value.
func (StopLinkReqValidationError) Reason ¶
func (e StopLinkReqValidationError) Reason() string
Reason function returns reason value.