share

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: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopicLiveShareAddName = "event.live.share" // 直播分享
)

Variables

View Source
var File_proto_share_share_proto protoreflect.FileDescriptor

Functions

func NewLiveShareSrvEndpoints

func NewLiveShareSrvEndpoints() []*api.Endpoint

func RegisterLiveShareSrvHandler

func RegisterLiveShareSrvHandler(s server.Server, hdlr LiveShareSrvHandler, opts ...server.HandlerOption) error

Types

type AddLiveShareRequest

type AddLiveShareRequest struct {
	LiveShare *LiveShare `protobuf:"bytes,1,opt,name=live_share,json=liveShare,proto3" json:"live_share"`
	// contains filtered or unexported fields
}

func (*AddLiveShareRequest) Descriptor deprecated

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

Deprecated: Use AddLiveShareRequest.ProtoReflect.Descriptor instead.

func (*AddLiveShareRequest) GetLiveShare

func (x *AddLiveShareRequest) GetLiveShare() *LiveShare

func (*AddLiveShareRequest) ProtoMessage

func (*AddLiveShareRequest) ProtoMessage()

func (*AddLiveShareRequest) ProtoReflect

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

func (*AddLiveShareRequest) Reset

func (x *AddLiveShareRequest) Reset()

func (*AddLiveShareRequest) String

func (x *AddLiveShareRequest) String() string

func (*AddLiveShareRequest) Validate

func (m *AddLiveShareRequest) Validate() error

Validate checks the field values on AddLiveShareRequest 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 (*AddLiveShareRequest) ValidateAll

func (m *AddLiveShareRequest) ValidateAll() error

ValidateAll checks the field values on AddLiveShareRequest 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 AddLiveShareRequestMultiError, or nil if none found.

type AddLiveShareRequestMultiError

type AddLiveShareRequestMultiError []error

AddLiveShareRequestMultiError is an error wrapping multiple validation errors returned by AddLiveShareRequest.ValidateAll() if the designated constraints aren't met.

func (AddLiveShareRequestMultiError) AllErrors

func (m AddLiveShareRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddLiveShareRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddLiveShareRequestValidationError

type AddLiveShareRequestValidationError struct {
	// contains filtered or unexported fields
}

AddLiveShareRequestValidationError is the validation error returned by AddLiveShareRequest.Validate if the designated constraints aren't met.

func (AddLiveShareRequestValidationError) Cause

Cause function returns cause value.

func (AddLiveShareRequestValidationError) Error

Error satisfies the builtin error interface

func (AddLiveShareRequestValidationError) ErrorName

ErrorName returns error name.

func (AddLiveShareRequestValidationError) Field

Field function returns field value.

func (AddLiveShareRequestValidationError) Key

Key function returns key value.

func (AddLiveShareRequestValidationError) Reason

Reason function returns reason value.

type AddLiveShareResponse

type AddLiveShareResponse struct {
	LiveShare *LiveShare `protobuf:"bytes,1,opt,name=Live_share,json=LiveShare,proto3" json:"Live_share"`
	// contains filtered or unexported fields
}

func (*AddLiveShareResponse) Descriptor deprecated

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

Deprecated: Use AddLiveShareResponse.ProtoReflect.Descriptor instead.

func (*AddLiveShareResponse) GetLiveShare

func (x *AddLiveShareResponse) GetLiveShare() *LiveShare

func (*AddLiveShareResponse) ProtoMessage

func (*AddLiveShareResponse) ProtoMessage()

func (*AddLiveShareResponse) ProtoReflect

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

func (*AddLiveShareResponse) Reset

func (x *AddLiveShareResponse) Reset()

func (*AddLiveShareResponse) String

func (x *AddLiveShareResponse) String() string

func (*AddLiveShareResponse) Validate

func (m *AddLiveShareResponse) Validate() error

Validate checks the field values on AddLiveShareResponse 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 (*AddLiveShareResponse) ValidateAll

func (m *AddLiveShareResponse) ValidateAll() error

ValidateAll checks the field values on AddLiveShareResponse 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 AddLiveShareResponseMultiError, or nil if none found.

type AddLiveShareResponseMultiError

type AddLiveShareResponseMultiError []error

AddLiveShareResponseMultiError is an error wrapping multiple validation errors returned by AddLiveShareResponse.ValidateAll() if the designated constraints aren't met.

func (AddLiveShareResponseMultiError) AllErrors

func (m AddLiveShareResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddLiveShareResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type AddLiveShareResponseValidationError

type AddLiveShareResponseValidationError struct {
	// contains filtered or unexported fields
}

AddLiveShareResponseValidationError is the validation error returned by AddLiveShareResponse.Validate if the designated constraints aren't met.

func (AddLiveShareResponseValidationError) Cause

Cause function returns cause value.

func (AddLiveShareResponseValidationError) Error

Error satisfies the builtin error interface

func (AddLiveShareResponseValidationError) ErrorName

ErrorName returns error name.

func (AddLiveShareResponseValidationError) Field

Field function returns field value.

func (AddLiveShareResponseValidationError) Key

Key function returns key value.

func (AddLiveShareResponseValidationError) Reason

Reason function returns reason value.

type EventShare

type EventShare struct {
	LiveShare *LiveShare `protobuf:"bytes,1,opt,name=Live_share,json=LiveShare,proto3" json:"Live_share"`
	// contains filtered or unexported fields
}

func (*EventShare) Descriptor deprecated

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

Deprecated: Use EventShare.ProtoReflect.Descriptor instead.

func (*EventShare) GetLiveShare

func (x *EventShare) GetLiveShare() *LiveShare

func (*EventShare) ProtoMessage

func (*EventShare) ProtoMessage()

func (*EventShare) ProtoReflect

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

func (*EventShare) Reset

func (x *EventShare) Reset()

func (*EventShare) String

func (x *EventShare) String() string

func (*EventShare) Validate

func (m *EventShare) Validate() error

Validate checks the field values on EventShare 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 (*EventShare) ValidateAll

func (m *EventShare) ValidateAll() error

ValidateAll checks the field values on EventShare 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 EventShareMultiError, or nil if none found.

type EventShareMultiError

type EventShareMultiError []error

EventShareMultiError is an error wrapping multiple validation errors returned by EventShare.ValidateAll() if the designated constraints aren't met.

func (EventShareMultiError) AllErrors

func (m EventShareMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EventShareMultiError) Error

func (m EventShareMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EventShareValidationError

type EventShareValidationError struct {
	// contains filtered or unexported fields
}

EventShareValidationError is the validation error returned by EventShare.Validate if the designated constraints aren't met.

func (EventShareValidationError) Cause

func (e EventShareValidationError) Cause() error

Cause function returns cause value.

func (EventShareValidationError) Error

Error satisfies the builtin error interface

func (EventShareValidationError) ErrorName

func (e EventShareValidationError) ErrorName() string

ErrorName returns error name.

func (EventShareValidationError) Field

Field function returns field value.

func (EventShareValidationError) Key

Key function returns key value.

func (EventShareValidationError) Reason

func (e EventShareValidationError) Reason() string

Reason function returns reason value.

type LiveShare

type LiveShare 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"`
	AudienceId int64  `protobuf:"varint,3,opt,name=audience_id,json=audienceId,proto3" json:"audience_id"`
	Platform   string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform"`
	Content    string `protobuf:"bytes,5,opt,name=content,proto3" json:"content"`
	CreatedAt  string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
	// contains filtered or unexported fields
}

func (*LiveShare) Descriptor deprecated

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

Deprecated: Use LiveShare.ProtoReflect.Descriptor instead.

func (*LiveShare) GetAnchorId

func (x *LiveShare) GetAnchorId() int64

func (*LiveShare) GetAudienceId

func (x *LiveShare) GetAudienceId() int64

func (*LiveShare) GetContent

func (x *LiveShare) GetContent() string

func (*LiveShare) GetCreatedAt

func (x *LiveShare) GetCreatedAt() string

func (*LiveShare) GetLiveId

func (x *LiveShare) GetLiveId() uint64

func (*LiveShare) GetPlatform

func (x *LiveShare) GetPlatform() string

func (*LiveShare) ProtoMessage

func (*LiveShare) ProtoMessage()

func (*LiveShare) ProtoReflect

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

func (*LiveShare) Reset

func (x *LiveShare) Reset()

func (*LiveShare) String

func (x *LiveShare) String() string

func (*LiveShare) Validate

func (m *LiveShare) Validate() error

Validate checks the field values on LiveShare 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 (*LiveShare) ValidateAll

func (m *LiveShare) ValidateAll() error

ValidateAll checks the field values on LiveShare 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 LiveShareMultiError, or nil if none found.

type LiveShareMultiError

type LiveShareMultiError []error

LiveShareMultiError is an error wrapping multiple validation errors returned by LiveShare.ValidateAll() if the designated constraints aren't met.

func (LiveShareMultiError) AllErrors

func (m LiveShareMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LiveShareMultiError) Error

func (m LiveShareMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LiveShareSrvHandler

type LiveShareSrvHandler interface {
	// 直播分享接口
	AddLiveShare(context.Context, *AddLiveShareRequest, *AddLiveShareResponse) error
}

type LiveShareSrvService

type LiveShareSrvService interface {
	// 直播分享接口
	AddLiveShare(ctx context.Context, in *AddLiveShareRequest, opts ...client.CallOption) (*AddLiveShareResponse, error)
}

func NewLiveShareSrvService

func NewLiveShareSrvService(name string, c client.Client) LiveShareSrvService

type LiveShareValidationError

type LiveShareValidationError struct {
	// contains filtered or unexported fields
}

LiveShareValidationError is the validation error returned by LiveShare.Validate if the designated constraints aren't met.

func (LiveShareValidationError) Cause

func (e LiveShareValidationError) Cause() error

Cause function returns cause value.

func (LiveShareValidationError) Error

func (e LiveShareValidationError) Error() string

Error satisfies the builtin error interface

func (LiveShareValidationError) ErrorName

func (e LiveShareValidationError) ErrorName() string

ErrorName returns error name.

func (LiveShareValidationError) Field

func (e LiveShareValidationError) Field() string

Field function returns field value.

func (LiveShareValidationError) Key

Key function returns key value.

func (LiveShareValidationError) Reason

func (e LiveShareValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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