liveLink

package
v0.0.0-...-b08fcc5 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_proto_liveLink_liveLink_proto protoreflect.FileDescriptor

Functions

func NewLiveLinkSrvEndpoints

func NewLiveLinkSrvEndpoints() []*api.Endpoint

func RegisterLiveLinkSrvHandler

func RegisterLiveLinkSrvHandler(s server.Server, hdlr LiveLinkSrvHandler, opts ...server.HandlerOption) error

Types

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) Descriptor() ([]byte, []int)

Deprecated: Use LiveLink.ProtoReflect.Descriptor instead.

func (*LiveLink) GetAdminId

func (x *LiveLink) GetAdminId() uint32

func (*LiveLink) GetAnchorId

func (x *LiveLink) GetAnchorId() int64

func (*LiveLink) GetAudienceId

func (x *LiveLink) GetAudienceId() int64

func (*LiveLink) GetCdnType

func (x *LiveLink) GetCdnType() string

func (*LiveLink) GetCreatedAt

func (x *LiveLink) GetCreatedAt() string

func (*LiveLink) GetEndAt

func (x *LiveLink) GetEndAt() string

func (*LiveLink) GetId

func (x *LiveLink) GetId() uint32

func (*LiveLink) GetLinkId

func (x *LiveLink) GetLinkId() uint64

func (*LiveLink) GetLiveId

func (x *LiveLink) GetLiveId() uint64

func (*LiveLink) GetOutType

func (x *LiveLink) GetOutType() uint32

func (*LiveLink) GetReason

func (x *LiveLink) GetReason() string

func (*LiveLink) GetServiceType

func (x *LiveLink) GetServiceType() string

func (*LiveLink) GetStartAt

func (x *LiveLink) GetStartAt() string

func (*LiveLink) GetStatus

func (x *LiveLink) GetStatus() string

func (*LiveLink) ProtoMessage

func (*LiveLink) ProtoMessage()

func (*LiveLink) ProtoReflect

func (x *LiveLink) ProtoReflect() protoreflect.Message

func (*LiveLink) Reset

func (x *LiveLink) Reset()

func (*LiveLink) String

func (x *LiveLink) String() string

func (*LiveLink) Validate

func (m *LiveLink) Validate() error

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

func (m *LiveLink) ValidateAll() error

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

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

Cause function returns cause value.

func (LiveLinksCloseReqValidationError) Error

Error satisfies the builtin error interface

func (LiveLinksCloseReqValidationError) ErrorName

ErrorName returns error name.

func (LiveLinksCloseReqValidationError) Field

Field function returns field value.

func (LiveLinksCloseReqValidationError) Key

Key function returns key value.

func (LiveLinksCloseReqValidationError) Reason

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

Cause function returns cause value.

func (StopLinkReqValidationError) Error

Error satisfies the builtin error interface

func (StopLinkReqValidationError) ErrorName

func (e StopLinkReqValidationError) ErrorName() string

ErrorName returns error name.

func (StopLinkReqValidationError) Field

Field function returns field value.

func (StopLinkReqValidationError) Key

Key function returns key value.

func (StopLinkReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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