Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPublishServiceHTTPServer(s *http.Server, srv PublishServiceHTTPServer)
- func RegisterPublishServiceServer(s grpc.ServiceRegistrar, srv PublishServiceServer)
- type ListFeedReply
- func (*ListFeedReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListFeedReply) GetNextTime() int64
- func (x *ListFeedReply) GetStatusCode() int32
- func (x *ListFeedReply) GetStatusMsg() string
- func (x *ListFeedReply) GetVideoList() []*Video
- func (*ListFeedReply) ProtoMessage()
- func (x *ListFeedReply) ProtoReflect() protoreflect.Message
- func (x *ListFeedReply) Reset()
- func (x *ListFeedReply) String() string
- func (m *ListFeedReply) Validate() error
- func (m *ListFeedReply) ValidateAll() error
- type ListFeedReplyMultiError
- type ListFeedReplyValidationError
- func (e ListFeedReplyValidationError) Cause() error
- func (e ListFeedReplyValidationError) Error() string
- func (e ListFeedReplyValidationError) ErrorName() string
- func (e ListFeedReplyValidationError) Field() string
- func (e ListFeedReplyValidationError) Key() bool
- func (e ListFeedReplyValidationError) Reason() string
- type ListFeedRequest
- func (*ListFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListFeedRequest) GetLatestTime() string
- func (x *ListFeedRequest) GetToken() string
- func (*ListFeedRequest) ProtoMessage()
- func (x *ListFeedRequest) ProtoReflect() protoreflect.Message
- func (x *ListFeedRequest) Reset()
- func (x *ListFeedRequest) String() string
- func (m *ListFeedRequest) Validate() error
- func (m *ListFeedRequest) ValidateAll() error
- type ListFeedRequestMultiError
- type ListFeedRequestValidationError
- func (e ListFeedRequestValidationError) Cause() error
- func (e ListFeedRequestValidationError) Error() string
- func (e ListFeedRequestValidationError) ErrorName() string
- func (e ListFeedRequestValidationError) Field() string
- func (e ListFeedRequestValidationError) Key() bool
- func (e ListFeedRequestValidationError) Reason() string
- type PublishActionReply
- func (*PublishActionReply) Descriptor() ([]byte, []int)deprecated
- func (x *PublishActionReply) GetStatusCode() int32
- func (x *PublishActionReply) GetStatusMsg() string
- func (*PublishActionReply) ProtoMessage()
- func (x *PublishActionReply) ProtoReflect() protoreflect.Message
- func (x *PublishActionReply) Reset()
- func (x *PublishActionReply) String() string
- func (m *PublishActionReply) Validate() error
- func (m *PublishActionReply) ValidateAll() error
- type PublishActionReplyMultiError
- type PublishActionReplyValidationError
- func (e PublishActionReplyValidationError) Cause() error
- func (e PublishActionReplyValidationError) Error() string
- func (e PublishActionReplyValidationError) ErrorName() string
- func (e PublishActionReplyValidationError) Field() string
- func (e PublishActionReplyValidationError) Key() bool
- func (e PublishActionReplyValidationError) Reason() string
- type PublishActionRequest
- func (*PublishActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishActionRequest) GetData() []byte
- func (x *PublishActionRequest) GetTitle() string
- func (x *PublishActionRequest) GetToken() string
- func (*PublishActionRequest) ProtoMessage()
- func (x *PublishActionRequest) ProtoReflect() protoreflect.Message
- func (x *PublishActionRequest) Reset()
- func (x *PublishActionRequest) String() string
- func (m *PublishActionRequest) Validate() error
- func (m *PublishActionRequest) ValidateAll() error
- type PublishActionRequestMultiError
- type PublishActionRequestValidationError
- func (e PublishActionRequestValidationError) Cause() error
- func (e PublishActionRequestValidationError) Error() string
- func (e PublishActionRequestValidationError) ErrorName() string
- func (e PublishActionRequestValidationError) Field() string
- func (e PublishActionRequestValidationError) Key() bool
- func (e PublishActionRequestValidationError) Reason() string
- type PublishListReply
- func (*PublishListReply) Descriptor() ([]byte, []int)deprecated
- func (x *PublishListReply) GetStatusCode() int32
- func (x *PublishListReply) GetStatusMsg() string
- func (x *PublishListReply) GetVideoList() []*Video
- func (*PublishListReply) ProtoMessage()
- func (x *PublishListReply) ProtoReflect() protoreflect.Message
- func (x *PublishListReply) Reset()
- func (x *PublishListReply) String() string
- func (m *PublishListReply) Validate() error
- func (m *PublishListReply) ValidateAll() error
- type PublishListReplyMultiError
- type PublishListReplyValidationError
- func (e PublishListReplyValidationError) Cause() error
- func (e PublishListReplyValidationError) Error() string
- func (e PublishListReplyValidationError) ErrorName() string
- func (e PublishListReplyValidationError) Field() string
- func (e PublishListReplyValidationError) Key() bool
- func (e PublishListReplyValidationError) Reason() string
- type PublishListRequest
- func (*PublishListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishListRequest) GetToken() string
- func (x *PublishListRequest) GetUserId() uint32
- func (*PublishListRequest) ProtoMessage()
- func (x *PublishListRequest) ProtoReflect() protoreflect.Message
- func (x *PublishListRequest) Reset()
- func (x *PublishListRequest) String() string
- func (m *PublishListRequest) Validate() error
- func (m *PublishListRequest) ValidateAll() error
- type PublishListRequestMultiError
- type PublishListRequestValidationError
- func (e PublishListRequestValidationError) Cause() error
- func (e PublishListRequestValidationError) Error() string
- func (e PublishListRequestValidationError) ErrorName() string
- func (e PublishListRequestValidationError) Field() string
- func (e PublishListRequestValidationError) Key() bool
- func (e PublishListRequestValidationError) Reason() string
- type PublishServiceClient
- type PublishServiceHTTPClient
- type PublishServiceHTTPClientImpl
- func (c *PublishServiceHTTPClientImpl) FeedList(ctx context.Context, in *ListFeedRequest, opts ...http.CallOption) (*ListFeedReply, error)
- func (c *PublishServiceHTTPClientImpl) GetPublishList(ctx context.Context, in *PublishListRequest, opts ...http.CallOption) (*PublishListReply, error)
- func (c *PublishServiceHTTPClientImpl) PublishAction(ctx context.Context, in *PublishActionRequest, opts ...http.CallOption) (*PublishActionReply, error)
- type PublishServiceHTTPServer
- type PublishServiceServer
- type UnimplementedPublishServiceServer
- func (UnimplementedPublishServiceServer) FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error)
- func (UnimplementedPublishServiceServer) GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error)
- func (UnimplementedPublishServiceServer) GetVideoListByVideoIds(context.Context, *VideoListByVideoIdsRequest) (*VideoListReply, error)
- func (UnimplementedPublishServiceServer) PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error)
- type UnsafePublishServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBackgroundImage() string
- func (x *User) GetFavoriteCount() uint32
- func (x *User) GetFollowCount() uint32
- func (x *User) GetFollowerCount() uint32
- func (x *User) GetId() uint32
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (x *User) GetSignature() string
- func (x *User) GetTotalFavorited() uint32
- func (x *User) GetWorkCount() uint32
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserValidationError
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() uint32
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() uint32
- func (x *Video) GetId() uint32
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
- func (m *Video) Validate() error
- func (m *Video) ValidateAll() error
- type VideoListByVideoIdsRequest
- func (*VideoListByVideoIdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VideoListByVideoIdsRequest) GetUserId() uint32
- func (x *VideoListByVideoIdsRequest) GetVideoIds() []uint32
- func (*VideoListByVideoIdsRequest) ProtoMessage()
- func (x *VideoListByVideoIdsRequest) ProtoReflect() protoreflect.Message
- func (x *VideoListByVideoIdsRequest) Reset()
- func (x *VideoListByVideoIdsRequest) String() string
- func (m *VideoListByVideoIdsRequest) Validate() error
- func (m *VideoListByVideoIdsRequest) ValidateAll() error
- type VideoListByVideoIdsRequestMultiError
- type VideoListByVideoIdsRequestValidationError
- func (e VideoListByVideoIdsRequestValidationError) Cause() error
- func (e VideoListByVideoIdsRequestValidationError) Error() string
- func (e VideoListByVideoIdsRequestValidationError) ErrorName() string
- func (e VideoListByVideoIdsRequestValidationError) Field() string
- func (e VideoListByVideoIdsRequestValidationError) Key() bool
- func (e VideoListByVideoIdsRequestValidationError) Reason() string
- type VideoListReply
- func (*VideoListReply) Descriptor() ([]byte, []int)deprecated
- func (x *VideoListReply) GetVideoList() []*Video
- func (*VideoListReply) ProtoMessage()
- func (x *VideoListReply) ProtoReflect() protoreflect.Message
- func (x *VideoListReply) Reset()
- func (x *VideoListReply) String() string
- func (m *VideoListReply) Validate() error
- func (m *VideoListReply) ValidateAll() error
- type VideoListReplyMultiError
- type VideoListReplyValidationError
- func (e VideoListReplyValidationError) Cause() error
- func (e VideoListReplyValidationError) Error() string
- func (e VideoListReplyValidationError) ErrorName() string
- func (e VideoListReplyValidationError) Field() string
- func (e VideoListReplyValidationError) Key() bool
- func (e VideoListReplyValidationError) Reason() string
- type VideoMultiError
- type VideoValidationError
Constants ¶
const ( PublishService_GetPublishList_FullMethodName = "/publish.service.v1.PublishService/GetPublishList" PublishService_PublishAction_FullMethodName = "/publish.service.v1.PublishService/PublishAction" PublishService_FeedList_FullMethodName = "/publish.service.v1.PublishService/FeedList" PublishService_GetVideoListByVideoIds_FullMethodName = "/publish.service.v1.PublishService/GetVideoListByVideoIds" )
const OperationPublishServiceFeedList = "/publish.service.v1.PublishService/FeedList"
const OperationPublishServiceGetPublishList = "/publish.service.v1.PublishService/GetPublishList"
const OperationPublishServicePublishAction = "/publish.service.v1.PublishService/PublishAction"
Variables ¶
var File_publish_service_v1_publish_proto protoreflect.FileDescriptor
var PublishService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "publish.service.v1.PublishService", HandlerType: (*PublishServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPublishList", Handler: _PublishService_GetPublishList_Handler, }, { MethodName: "PublishAction", Handler: _PublishService_PublishAction_Handler, }, { MethodName: "FeedList", Handler: _PublishService_FeedList_Handler, }, { MethodName: "GetVideoListByVideoIds", Handler: _PublishService_GetVideoListByVideoIds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "publish/service/v1/publish.proto", }
PublishService_ServiceDesc is the grpc.ServiceDesc for PublishService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPublishServiceHTTPServer ¶
func RegisterPublishServiceHTTPServer(s *http.Server, srv PublishServiceHTTPServer)
func RegisterPublishServiceServer ¶
func RegisterPublishServiceServer(s grpc.ServiceRegistrar, srv PublishServiceServer)
Types ¶
type ListFeedReply ¶
type ListFeedReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 视频列表 VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,proto3" json:"video_list,omitempty"` // 本次返回的视频中,发布最早的时间,作为下次请求时的latest_time NextTime int64 `protobuf:"varint,4,opt,name=next_time,proto3" json:"next_time,omitempty"` // contains filtered or unexported fields }
func (*ListFeedReply) Descriptor
deprecated
func (*ListFeedReply) Descriptor() ([]byte, []int)
Deprecated: Use ListFeedReply.ProtoReflect.Descriptor instead.
func (*ListFeedReply) GetNextTime ¶
func (x *ListFeedReply) GetNextTime() int64
func (*ListFeedReply) GetStatusCode ¶
func (x *ListFeedReply) GetStatusCode() int32
func (*ListFeedReply) GetStatusMsg ¶
func (x *ListFeedReply) GetStatusMsg() string
func (*ListFeedReply) GetVideoList ¶
func (x *ListFeedReply) GetVideoList() []*Video
func (*ListFeedReply) ProtoMessage ¶
func (*ListFeedReply) ProtoMessage()
func (*ListFeedReply) ProtoReflect ¶
func (x *ListFeedReply) ProtoReflect() protoreflect.Message
func (*ListFeedReply) Reset ¶
func (x *ListFeedReply) Reset()
func (*ListFeedReply) String ¶
func (x *ListFeedReply) String() string
func (*ListFeedReply) Validate ¶
func (m *ListFeedReply) Validate() error
Validate checks the field values on ListFeedReply 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 (*ListFeedReply) ValidateAll ¶
func (m *ListFeedReply) ValidateAll() error
ValidateAll checks the field values on ListFeedReply 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 ListFeedReplyMultiError, or nil if none found.
type ListFeedReplyMultiError ¶
type ListFeedReplyMultiError []error
ListFeedReplyMultiError is an error wrapping multiple validation errors returned by ListFeedReply.ValidateAll() if the designated constraints aren't met.
func (ListFeedReplyMultiError) AllErrors ¶
func (m ListFeedReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFeedReplyMultiError) Error ¶
func (m ListFeedReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFeedReplyValidationError ¶
type ListFeedReplyValidationError struct {
// contains filtered or unexported fields
}
ListFeedReplyValidationError is the validation error returned by ListFeedReply.Validate if the designated constraints aren't met.
func (ListFeedReplyValidationError) Cause ¶
func (e ListFeedReplyValidationError) Cause() error
Cause function returns cause value.
func (ListFeedReplyValidationError) Error ¶
func (e ListFeedReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListFeedReplyValidationError) ErrorName ¶
func (e ListFeedReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListFeedReplyValidationError) Field ¶
func (e ListFeedReplyValidationError) Field() string
Field function returns field value.
func (ListFeedReplyValidationError) Key ¶
func (e ListFeedReplyValidationError) Key() bool
Key function returns key value.
func (ListFeedReplyValidationError) Reason ¶
func (e ListFeedReplyValidationError) Reason() string
Reason function returns reason value.
type ListFeedRequest ¶
type ListFeedRequest struct { // 返回视频的最新投稿时间戳,精确到秒,不填表示当前时间 LatestTime string `protobuf:"bytes,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 用户鉴权token Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ListFeedRequest) Descriptor
deprecated
func (*ListFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFeedRequest.ProtoReflect.Descriptor instead.
func (*ListFeedRequest) GetLatestTime ¶
func (x *ListFeedRequest) GetLatestTime() string
func (*ListFeedRequest) GetToken ¶
func (x *ListFeedRequest) GetToken() string
func (*ListFeedRequest) ProtoMessage ¶
func (*ListFeedRequest) ProtoMessage()
func (*ListFeedRequest) ProtoReflect ¶
func (x *ListFeedRequest) ProtoReflect() protoreflect.Message
func (*ListFeedRequest) Reset ¶
func (x *ListFeedRequest) Reset()
func (*ListFeedRequest) String ¶
func (x *ListFeedRequest) String() string
func (*ListFeedRequest) Validate ¶
func (m *ListFeedRequest) Validate() error
Validate checks the field values on ListFeedRequest 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 (*ListFeedRequest) ValidateAll ¶
func (m *ListFeedRequest) ValidateAll() error
ValidateAll checks the field values on ListFeedRequest 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 ListFeedRequestMultiError, or nil if none found.
type ListFeedRequestMultiError ¶
type ListFeedRequestMultiError []error
ListFeedRequestMultiError is an error wrapping multiple validation errors returned by ListFeedRequest.ValidateAll() if the designated constraints aren't met.
func (ListFeedRequestMultiError) AllErrors ¶
func (m ListFeedRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListFeedRequestMultiError) Error ¶
func (m ListFeedRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListFeedRequestValidationError ¶
type ListFeedRequestValidationError struct {
// contains filtered or unexported fields
}
ListFeedRequestValidationError is the validation error returned by ListFeedRequest.Validate if the designated constraints aren't met.
func (ListFeedRequestValidationError) Cause ¶
func (e ListFeedRequestValidationError) Cause() error
Cause function returns cause value.
func (ListFeedRequestValidationError) Error ¶
func (e ListFeedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListFeedRequestValidationError) ErrorName ¶
func (e ListFeedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListFeedRequestValidationError) Field ¶
func (e ListFeedRequestValidationError) Field() string
Field function returns field value.
func (ListFeedRequestValidationError) Key ¶
func (e ListFeedRequestValidationError) Key() bool
Key function returns key value.
func (ListFeedRequestValidationError) Reason ¶
func (e ListFeedRequestValidationError) Reason() string
Reason function returns reason value.
type PublishActionReply ¶
type PublishActionReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // contains filtered or unexported fields }
func (*PublishActionReply) Descriptor
deprecated
func (*PublishActionReply) Descriptor() ([]byte, []int)
Deprecated: Use PublishActionReply.ProtoReflect.Descriptor instead.
func (*PublishActionReply) GetStatusCode ¶
func (x *PublishActionReply) GetStatusCode() int32
func (*PublishActionReply) GetStatusMsg ¶
func (x *PublishActionReply) GetStatusMsg() string
func (*PublishActionReply) ProtoMessage ¶
func (*PublishActionReply) ProtoMessage()
func (*PublishActionReply) ProtoReflect ¶
func (x *PublishActionReply) ProtoReflect() protoreflect.Message
func (*PublishActionReply) Reset ¶
func (x *PublishActionReply) Reset()
func (*PublishActionReply) String ¶
func (x *PublishActionReply) String() string
func (*PublishActionReply) Validate ¶
func (m *PublishActionReply) Validate() error
Validate checks the field values on PublishActionReply 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 (*PublishActionReply) ValidateAll ¶
func (m *PublishActionReply) ValidateAll() error
ValidateAll checks the field values on PublishActionReply 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 PublishActionReplyMultiError, or nil if none found.
type PublishActionReplyMultiError ¶
type PublishActionReplyMultiError []error
PublishActionReplyMultiError is an error wrapping multiple validation errors returned by PublishActionReply.ValidateAll() if the designated constraints aren't met.
func (PublishActionReplyMultiError) AllErrors ¶
func (m PublishActionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublishActionReplyMultiError) Error ¶
func (m PublishActionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublishActionReplyValidationError ¶
type PublishActionReplyValidationError struct {
// contains filtered or unexported fields
}
PublishActionReplyValidationError is the validation error returned by PublishActionReply.Validate if the designated constraints aren't met.
func (PublishActionReplyValidationError) Cause ¶
func (e PublishActionReplyValidationError) Cause() error
Cause function returns cause value.
func (PublishActionReplyValidationError) Error ¶
func (e PublishActionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PublishActionReplyValidationError) ErrorName ¶
func (e PublishActionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PublishActionReplyValidationError) Field ¶
func (e PublishActionReplyValidationError) Field() string
Field function returns field value.
func (PublishActionReplyValidationError) Key ¶
func (e PublishActionReplyValidationError) Key() bool
Key function returns key value.
func (PublishActionReplyValidationError) Reason ¶
func (e PublishActionReplyValidationError) Reason() string
Reason function returns reason value.
type PublishActionRequest ¶
type PublishActionRequest struct { // 用户鉴权token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 视频数据 Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // 视频标题 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*PublishActionRequest) Descriptor
deprecated
func (*PublishActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishActionRequest.ProtoReflect.Descriptor instead.
func (*PublishActionRequest) GetData ¶
func (x *PublishActionRequest) GetData() []byte
func (*PublishActionRequest) GetTitle ¶
func (x *PublishActionRequest) GetTitle() string
func (*PublishActionRequest) GetToken ¶
func (x *PublishActionRequest) GetToken() string
func (*PublishActionRequest) ProtoMessage ¶
func (*PublishActionRequest) ProtoMessage()
func (*PublishActionRequest) ProtoReflect ¶
func (x *PublishActionRequest) ProtoReflect() protoreflect.Message
func (*PublishActionRequest) Reset ¶
func (x *PublishActionRequest) Reset()
func (*PublishActionRequest) String ¶
func (x *PublishActionRequest) String() string
func (*PublishActionRequest) Validate ¶
func (m *PublishActionRequest) Validate() error
Validate checks the field values on PublishActionRequest 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 (*PublishActionRequest) ValidateAll ¶
func (m *PublishActionRequest) ValidateAll() error
ValidateAll checks the field values on PublishActionRequest 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 PublishActionRequestMultiError, or nil if none found.
type PublishActionRequestMultiError ¶
type PublishActionRequestMultiError []error
PublishActionRequestMultiError is an error wrapping multiple validation errors returned by PublishActionRequest.ValidateAll() if the designated constraints aren't met.
func (PublishActionRequestMultiError) AllErrors ¶
func (m PublishActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublishActionRequestMultiError) Error ¶
func (m PublishActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublishActionRequestValidationError ¶
type PublishActionRequestValidationError struct {
// contains filtered or unexported fields
}
PublishActionRequestValidationError is the validation error returned by PublishActionRequest.Validate if the designated constraints aren't met.
func (PublishActionRequestValidationError) Cause ¶
func (e PublishActionRequestValidationError) Cause() error
Cause function returns cause value.
func (PublishActionRequestValidationError) Error ¶
func (e PublishActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PublishActionRequestValidationError) ErrorName ¶
func (e PublishActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PublishActionRequestValidationError) Field ¶
func (e PublishActionRequestValidationError) Field() string
Field function returns field value.
func (PublishActionRequestValidationError) Key ¶
func (e PublishActionRequestValidationError) Key() bool
Key function returns key value.
func (PublishActionRequestValidationError) Reason ¶
func (e PublishActionRequestValidationError) Reason() string
Reason function returns reason value.
type PublishListReply ¶
type PublishListReply struct { // 状态码,0-成功,其他值-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,proto3" json:"status_code,omitempty"` // 返回状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,proto3" json:"status_msg,omitempty"` // 用户发布视频列表 VideoList []*Video `protobuf:"bytes,3,rep,name=video_list,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*PublishListReply) Descriptor
deprecated
func (*PublishListReply) Descriptor() ([]byte, []int)
Deprecated: Use PublishListReply.ProtoReflect.Descriptor instead.
func (*PublishListReply) GetStatusCode ¶
func (x *PublishListReply) GetStatusCode() int32
func (*PublishListReply) GetStatusMsg ¶
func (x *PublishListReply) GetStatusMsg() string
func (*PublishListReply) GetVideoList ¶
func (x *PublishListReply) GetVideoList() []*Video
func (*PublishListReply) ProtoMessage ¶
func (*PublishListReply) ProtoMessage()
func (*PublishListReply) ProtoReflect ¶
func (x *PublishListReply) ProtoReflect() protoreflect.Message
func (*PublishListReply) Reset ¶
func (x *PublishListReply) Reset()
func (*PublishListReply) String ¶
func (x *PublishListReply) String() string
func (*PublishListReply) Validate ¶
func (m *PublishListReply) Validate() error
Validate checks the field values on PublishListReply 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 (*PublishListReply) ValidateAll ¶
func (m *PublishListReply) ValidateAll() error
ValidateAll checks the field values on PublishListReply 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 PublishListReplyMultiError, or nil if none found.
type PublishListReplyMultiError ¶
type PublishListReplyMultiError []error
PublishListReplyMultiError is an error wrapping multiple validation errors returned by PublishListReply.ValidateAll() if the designated constraints aren't met.
func (PublishListReplyMultiError) AllErrors ¶
func (m PublishListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublishListReplyMultiError) Error ¶
func (m PublishListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublishListReplyValidationError ¶
type PublishListReplyValidationError struct {
// contains filtered or unexported fields
}
PublishListReplyValidationError is the validation error returned by PublishListReply.Validate if the designated constraints aren't met.
func (PublishListReplyValidationError) Cause ¶
func (e PublishListReplyValidationError) Cause() error
Cause function returns cause value.
func (PublishListReplyValidationError) Error ¶
func (e PublishListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PublishListReplyValidationError) ErrorName ¶
func (e PublishListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PublishListReplyValidationError) Field ¶
func (e PublishListReplyValidationError) Field() string
Field function returns field value.
func (PublishListReplyValidationError) Key ¶
func (e PublishListReplyValidationError) Key() bool
Key function returns key value.
func (PublishListReplyValidationError) Reason ¶
func (e PublishListReplyValidationError) Reason() string
Reason function returns reason value.
type PublishListRequest ¶
type PublishListRequest struct { // 用户id UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户鉴权token Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*PublishListRequest) Descriptor
deprecated
func (*PublishListRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishListRequest.ProtoReflect.Descriptor instead.
func (*PublishListRequest) GetToken ¶
func (x *PublishListRequest) GetToken() string
func (*PublishListRequest) GetUserId ¶
func (x *PublishListRequest) GetUserId() uint32
func (*PublishListRequest) ProtoMessage ¶
func (*PublishListRequest) ProtoMessage()
func (*PublishListRequest) ProtoReflect ¶
func (x *PublishListRequest) ProtoReflect() protoreflect.Message
func (*PublishListRequest) Reset ¶
func (x *PublishListRequest) Reset()
func (*PublishListRequest) String ¶
func (x *PublishListRequest) String() string
func (*PublishListRequest) Validate ¶
func (m *PublishListRequest) Validate() error
Validate checks the field values on PublishListRequest 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 (*PublishListRequest) ValidateAll ¶
func (m *PublishListRequest) ValidateAll() error
ValidateAll checks the field values on PublishListRequest 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 PublishListRequestMultiError, or nil if none found.
type PublishListRequestMultiError ¶
type PublishListRequestMultiError []error
PublishListRequestMultiError is an error wrapping multiple validation errors returned by PublishListRequest.ValidateAll() if the designated constraints aren't met.
func (PublishListRequestMultiError) AllErrors ¶
func (m PublishListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PublishListRequestMultiError) Error ¶
func (m PublishListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PublishListRequestValidationError ¶
type PublishListRequestValidationError struct {
// contains filtered or unexported fields
}
PublishListRequestValidationError is the validation error returned by PublishListRequest.Validate if the designated constraints aren't met.
func (PublishListRequestValidationError) Cause ¶
func (e PublishListRequestValidationError) Cause() error
Cause function returns cause value.
func (PublishListRequestValidationError) Error ¶
func (e PublishListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PublishListRequestValidationError) ErrorName ¶
func (e PublishListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PublishListRequestValidationError) Field ¶
func (e PublishListRequestValidationError) Field() string
Field function returns field value.
func (PublishListRequestValidationError) Key ¶
func (e PublishListRequestValidationError) Key() bool
Key function returns key value.
func (PublishListRequestValidationError) Reason ¶
func (e PublishListRequestValidationError) Reason() string
Reason function returns reason value.
type PublishServiceClient ¶
type PublishServiceClient interface { // 获取用户投稿视频列表 GetPublishList(ctx context.Context, in *PublishListRequest, opts ...grpc.CallOption) (*PublishListReply, error) // 用户上传视频 PublishAction(ctx context.Context, in *PublishActionRequest, opts ...grpc.CallOption) (*PublishActionReply, error) // 请求 Feed List FeedList(ctx context.Context, in *ListFeedRequest, opts ...grpc.CallOption) (*ListFeedReply, error) // favorite相关服务请求根据视频id列表获取视频列表 GetVideoListByVideoIds(ctx context.Context, in *VideoListByVideoIdsRequest, opts ...grpc.CallOption) (*VideoListReply, error) }
PublishServiceClient is the client API for PublishService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkgo.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPublishServiceClient ¶
func NewPublishServiceClient(cc grpc.ClientConnInterface) PublishServiceClient
type PublishServiceHTTPClient ¶
type PublishServiceHTTPClient interface { FeedList(ctx context.Context, req *ListFeedRequest, opts ...http.CallOption) (rsp *ListFeedReply, err error) GetPublishList(ctx context.Context, req *PublishListRequest, opts ...http.CallOption) (rsp *PublishListReply, err error) PublishAction(ctx context.Context, req *PublishActionRequest, opts ...http.CallOption) (rsp *PublishActionReply, err error) }
func NewPublishServiceHTTPClient ¶
func NewPublishServiceHTTPClient(client *http.Client) PublishServiceHTTPClient
type PublishServiceHTTPClientImpl ¶
type PublishServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*PublishServiceHTTPClientImpl) FeedList ¶
func (c *PublishServiceHTTPClientImpl) FeedList(ctx context.Context, in *ListFeedRequest, opts ...http.CallOption) (*ListFeedReply, error)
func (*PublishServiceHTTPClientImpl) GetPublishList ¶
func (c *PublishServiceHTTPClientImpl) GetPublishList(ctx context.Context, in *PublishListRequest, opts ...http.CallOption) (*PublishListReply, error)
func (*PublishServiceHTTPClientImpl) PublishAction ¶
func (c *PublishServiceHTTPClientImpl) PublishAction(ctx context.Context, in *PublishActionRequest, opts ...http.CallOption) (*PublishActionReply, error)
type PublishServiceHTTPServer ¶
type PublishServiceHTTPServer interface { // FeedList 请求 Feed List FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error) // GetPublishList 获取用户投稿视频列表 GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error) // PublishAction 用户上传视频 PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error) }
type PublishServiceServer ¶
type PublishServiceServer interface { // 获取用户投稿视频列表 GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error) // 用户上传视频 PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error) // 请求 Feed List FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error) // favorite相关服务请求根据视频id列表获取视频列表 GetVideoListByVideoIds(context.Context, *VideoListByVideoIdsRequest) (*VideoListReply, error) // contains filtered or unexported methods }
PublishServiceServer is the server API for PublishService service. All implementations must embed UnimplementedPublishServiceServer for forward compatibility
type UnimplementedPublishServiceServer ¶
type UnimplementedPublishServiceServer struct { }
UnimplementedPublishServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPublishServiceServer) FeedList ¶
func (UnimplementedPublishServiceServer) FeedList(context.Context, *ListFeedRequest) (*ListFeedReply, error)
func (UnimplementedPublishServiceServer) GetPublishList ¶
func (UnimplementedPublishServiceServer) GetPublishList(context.Context, *PublishListRequest) (*PublishListReply, error)
func (UnimplementedPublishServiceServer) GetVideoListByVideoIds ¶
func (UnimplementedPublishServiceServer) GetVideoListByVideoIds(context.Context, *VideoListByVideoIdsRequest) (*VideoListReply, error)
func (UnimplementedPublishServiceServer) PublishAction ¶
func (UnimplementedPublishServiceServer) PublishAction(context.Context, *PublishActionRequest) (*PublishActionReply, error)
type UnsafePublishServiceServer ¶
type UnsafePublishServiceServer interface {
// contains filtered or unexported methods
}
UnsafePublishServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublishServiceServer will result in compilation errors.
type User ¶
type User struct { // 用户id Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 关注总数 FollowCount uint32 `protobuf:"varint,3,opt,name=follow_count,proto3" json:"follow_count,omitempty"` // 粉丝总数 FollowerCount uint32 `protobuf:"varint,4,opt,name=follower_count,proto3" json:"follower_count,omitempty"` // 是否关注 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,proto3" json:"is_follow,omitempty"` // 用户头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 用户页面背景图 BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,proto3" json:"background_image,omitempty"` // 个人简介 Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` // 获赞数量 TotalFavorited uint32 `protobuf:"varint,9,opt,name=total_favorited,proto3" json:"total_favorited,omitempty"` // 作品数量 WorkCount uint32 `protobuf:"varint,10,opt,name=work_count,proto3" json:"work_count,omitempty"` // 点赞数量 FavoriteCount uint32 `protobuf:"varint,11,opt,name=favorite_count,proto3" json:"favorite_count,omitempty"` // contains filtered or unexported fields }
用户信息
func (*User) Descriptor
deprecated
func (*User) GetBackgroundImage ¶
func (*User) GetFavoriteCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User 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 (*User) ValidateAll ¶
ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.
type Video ¶
type Video struct { // 视频唯一标识 Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 视频作者信息 Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // 视频播放地址 PlayUrl string `protobuf:"bytes,3,opt,name=play_url,proto3" json:"play_url,omitempty"` // 视频封面地址 CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,proto3" json:"cover_url,omitempty"` // 视频的点赞总数 FavoriteCount uint32 `protobuf:"varint,5,opt,name=favorite_count,proto3" json:"favorite_count,omitempty"` // 视频的评论总数 CommentCount uint32 `protobuf:"varint,6,opt,name=comment_count,proto3" json:"comment_count,omitempty"` // true-已点赞,false-未点赞 IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,proto3" json:"is_favorite,omitempty"` // 视频标题 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
视频信息
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
func (*Video) Validate ¶
Validate checks the field values on Video 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 (*Video) ValidateAll ¶
ValidateAll checks the field values on Video 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 VideoMultiError, or nil if none found.
type VideoListByVideoIdsRequest ¶
type VideoListByVideoIdsRequest struct { // 登陆用户id UserId uint32 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 视频id列表 VideoIds []uint32 `protobuf:"varint,1,rep,packed,name=video_ids,json=videoIds,proto3" json:"video_ids,omitempty"` // contains filtered or unexported fields }
func (*VideoListByVideoIdsRequest) Descriptor
deprecated
func (*VideoListByVideoIdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use VideoListByVideoIdsRequest.ProtoReflect.Descriptor instead.
func (*VideoListByVideoIdsRequest) GetUserId ¶
func (x *VideoListByVideoIdsRequest) GetUserId() uint32
func (*VideoListByVideoIdsRequest) GetVideoIds ¶
func (x *VideoListByVideoIdsRequest) GetVideoIds() []uint32
func (*VideoListByVideoIdsRequest) ProtoMessage ¶
func (*VideoListByVideoIdsRequest) ProtoMessage()
func (*VideoListByVideoIdsRequest) ProtoReflect ¶
func (x *VideoListByVideoIdsRequest) ProtoReflect() protoreflect.Message
func (*VideoListByVideoIdsRequest) Reset ¶
func (x *VideoListByVideoIdsRequest) Reset()
func (*VideoListByVideoIdsRequest) String ¶
func (x *VideoListByVideoIdsRequest) String() string
func (*VideoListByVideoIdsRequest) Validate ¶
func (m *VideoListByVideoIdsRequest) Validate() error
Validate checks the field values on VideoListByVideoIdsRequest 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 (*VideoListByVideoIdsRequest) ValidateAll ¶
func (m *VideoListByVideoIdsRequest) ValidateAll() error
ValidateAll checks the field values on VideoListByVideoIdsRequest 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 VideoListByVideoIdsRequestMultiError, or nil if none found.
type VideoListByVideoIdsRequestMultiError ¶
type VideoListByVideoIdsRequestMultiError []error
VideoListByVideoIdsRequestMultiError is an error wrapping multiple validation errors returned by VideoListByVideoIdsRequest.ValidateAll() if the designated constraints aren't met.
func (VideoListByVideoIdsRequestMultiError) AllErrors ¶
func (m VideoListByVideoIdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoListByVideoIdsRequestMultiError) Error ¶
func (m VideoListByVideoIdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoListByVideoIdsRequestValidationError ¶
type VideoListByVideoIdsRequestValidationError struct {
// contains filtered or unexported fields
}
VideoListByVideoIdsRequestValidationError is the validation error returned by VideoListByVideoIdsRequest.Validate if the designated constraints aren't met.
func (VideoListByVideoIdsRequestValidationError) Cause ¶
func (e VideoListByVideoIdsRequestValidationError) Cause() error
Cause function returns cause value.
func (VideoListByVideoIdsRequestValidationError) Error ¶
func (e VideoListByVideoIdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VideoListByVideoIdsRequestValidationError) ErrorName ¶
func (e VideoListByVideoIdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VideoListByVideoIdsRequestValidationError) Field ¶
func (e VideoListByVideoIdsRequestValidationError) Field() string
Field function returns field value.
func (VideoListByVideoIdsRequestValidationError) Key ¶
func (e VideoListByVideoIdsRequestValidationError) Key() bool
Key function returns key value.
func (VideoListByVideoIdsRequestValidationError) Reason ¶
func (e VideoListByVideoIdsRequestValidationError) Reason() string
Reason function returns reason value.
type VideoListReply ¶
type VideoListReply struct { // 视频列表 VideoList []*Video `protobuf:"bytes,1,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // contains filtered or unexported fields }
func (*VideoListReply) Descriptor
deprecated
func (*VideoListReply) Descriptor() ([]byte, []int)
Deprecated: Use VideoListReply.ProtoReflect.Descriptor instead.
func (*VideoListReply) GetVideoList ¶
func (x *VideoListReply) GetVideoList() []*Video
func (*VideoListReply) ProtoMessage ¶
func (*VideoListReply) ProtoMessage()
func (*VideoListReply) ProtoReflect ¶
func (x *VideoListReply) ProtoReflect() protoreflect.Message
func (*VideoListReply) Reset ¶
func (x *VideoListReply) Reset()
func (*VideoListReply) String ¶
func (x *VideoListReply) String() string
func (*VideoListReply) Validate ¶
func (m *VideoListReply) Validate() error
Validate checks the field values on VideoListReply 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 (*VideoListReply) ValidateAll ¶
func (m *VideoListReply) ValidateAll() error
ValidateAll checks the field values on VideoListReply 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 VideoListReplyMultiError, or nil if none found.
type VideoListReplyMultiError ¶
type VideoListReplyMultiError []error
VideoListReplyMultiError is an error wrapping multiple validation errors returned by VideoListReply.ValidateAll() if the designated constraints aren't met.
func (VideoListReplyMultiError) AllErrors ¶
func (m VideoListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoListReplyMultiError) Error ¶
func (m VideoListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoListReplyValidationError ¶
type VideoListReplyValidationError struct {
// contains filtered or unexported fields
}
VideoListReplyValidationError is the validation error returned by VideoListReply.Validate if the designated constraints aren't met.
func (VideoListReplyValidationError) Cause ¶
func (e VideoListReplyValidationError) Cause() error
Cause function returns cause value.
func (VideoListReplyValidationError) Error ¶
func (e VideoListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (VideoListReplyValidationError) ErrorName ¶
func (e VideoListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (VideoListReplyValidationError) Field ¶
func (e VideoListReplyValidationError) Field() string
Field function returns field value.
func (VideoListReplyValidationError) Key ¶
func (e VideoListReplyValidationError) Key() bool
Key function returns key value.
func (VideoListReplyValidationError) Reason ¶
func (e VideoListReplyValidationError) Reason() string
Reason function returns reason value.
type VideoMultiError ¶
type VideoMultiError []error
VideoMultiError is an error wrapping multiple validation errors returned by Video.ValidateAll() if the designated constraints aren't met.
func (VideoMultiError) AllErrors ¶
func (m VideoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoMultiError) Error ¶
func (m VideoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoValidationError ¶
type VideoValidationError struct {
// contains filtered or unexported fields
}
VideoValidationError is the validation error returned by Video.Validate if the designated constraints aren't met.
func (VideoValidationError) Cause ¶
func (e VideoValidationError) Cause() error
Cause function returns cause value.
func (VideoValidationError) Error ¶
func (e VideoValidationError) Error() string
Error satisfies the builtin error interface
func (VideoValidationError) ErrorName ¶
func (e VideoValidationError) ErrorName() string
ErrorName returns error name.
func (VideoValidationError) Field ¶
func (e VideoValidationError) Field() string
Field function returns field value.
func (VideoValidationError) Key ¶
func (e VideoValidationError) Key() bool
Key function returns key value.
func (VideoValidationError) Reason ¶
func (e VideoValidationError) Reason() string
Reason function returns reason value.