protocol

package
v0.0.0-...-514e0f0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_party_proto protoreflect.FileDescriptor
View Source
var Partyservice_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Partyservice",
	HandlerType: (*PartyserviceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "NewWatchParty",
			Handler:    _Partyservice_NewWatchParty_Handler,
		},
		{
			MethodName: "BecomeLeader",
			Handler:    _Partyservice_BecomeLeader_Handler,
		},
		{
			MethodName: "JoinParty",
			Handler:    _Partyservice_JoinParty_Handler,
		},
		{
			MethodName: "HeartBeat",
			Handler:    _Partyservice_HeartBeat_Handler,
		},
		{
			MethodName: "GetPartyState",
			Handler:    _Partyservice_GetPartyState_Handler,
		},
		{
			MethodName: "AddVideo",
			Handler:    _Partyservice_AddVideo_Handler,
		},
		{
			MethodName: "NextVideo",
			Handler:    _Partyservice_NextVideo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "party.proto",
}

Partyservice_ServiceDesc is the grpc.ServiceDesc for Partyservice service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPartyserviceServer

func RegisterPartyserviceServer(s grpc.ServiceRegistrar, srv PartyserviceServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

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

func (m *Empty) ValidateAll() error

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

type EmptyMultiError

type EmptyMultiError []error

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

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

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

type EmptyValidationError

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

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type LeaderResponse

type LeaderResponse struct {
	IsLeader bool `protobuf:"varint,1,opt,name=IsLeader,proto3" json:"IsLeader,omitempty"`
	// contains filtered or unexported fields
}

func (*LeaderResponse) Descriptor deprecated

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

Deprecated: Use LeaderResponse.ProtoReflect.Descriptor instead.

func (*LeaderResponse) GetIsLeader

func (x *LeaderResponse) GetIsLeader() bool

func (*LeaderResponse) ProtoMessage

func (*LeaderResponse) ProtoMessage()

func (*LeaderResponse) ProtoReflect

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

func (*LeaderResponse) Reset

func (x *LeaderResponse) Reset()

func (*LeaderResponse) String

func (x *LeaderResponse) String() string

func (*LeaderResponse) Validate

func (m *LeaderResponse) Validate() error

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

func (m *LeaderResponse) ValidateAll() error

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

type LeaderResponseMultiError

type LeaderResponseMultiError []error

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

func (LeaderResponseMultiError) AllErrors

func (m LeaderResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LeaderResponseMultiError) Error

func (m LeaderResponseMultiError) Error() string

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

type LeaderResponseValidationError

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

LeaderResponseValidationError is the validation error returned by LeaderResponse.Validate if the designated constraints aren't met.

func (LeaderResponseValidationError) Cause

Cause function returns cause value.

func (LeaderResponseValidationError) Error

Error satisfies the builtin error interface

func (LeaderResponseValidationError) ErrorName

func (e LeaderResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LeaderResponseValidationError) Field

Field function returns field value.

func (LeaderResponseValidationError) Key

Key function returns key value.

func (LeaderResponseValidationError) Reason

Reason function returns reason value.

type NewPartyRequest

type NewPartyRequest struct {
	UserID    int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	ChannelID int64 `protobuf:"varint,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
	// contains filtered or unexported fields
}

func (*NewPartyRequest) Descriptor deprecated

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

Deprecated: Use NewPartyRequest.ProtoReflect.Descriptor instead.

func (*NewPartyRequest) GetChannelID

func (x *NewPartyRequest) GetChannelID() int64

func (*NewPartyRequest) GetUserID

func (x *NewPartyRequest) GetUserID() int64

func (*NewPartyRequest) ProtoMessage

func (*NewPartyRequest) ProtoMessage()

func (*NewPartyRequest) ProtoReflect

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

func (*NewPartyRequest) Reset

func (x *NewPartyRequest) Reset()

func (*NewPartyRequest) String

func (x *NewPartyRequest) String() string

func (*NewPartyRequest) Validate

func (m *NewPartyRequest) Validate() error

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

func (m *NewPartyRequest) ValidateAll() error

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

type NewPartyRequestMultiError

type NewPartyRequestMultiError []error

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

func (NewPartyRequestMultiError) AllErrors

func (m NewPartyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NewPartyRequestMultiError) Error

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

type NewPartyRequestValidationError

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

NewPartyRequestValidationError is the validation error returned by NewPartyRequest.Validate if the designated constraints aren't met.

func (NewPartyRequestValidationError) Cause

Cause function returns cause value.

func (NewPartyRequestValidationError) Error

Error satisfies the builtin error interface

func (NewPartyRequestValidationError) ErrorName

func (e NewPartyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (NewPartyRequestValidationError) Field

Field function returns field value.

func (NewPartyRequestValidationError) Key

Key function returns key value.

func (NewPartyRequestValidationError) Reason

Reason function returns reason value.

type NewPartyResponse

type NewPartyResponse struct {
	PartyID int64 `protobuf:"varint,1,opt,name=PartyID,proto3" json:"PartyID,omitempty"`
	// contains filtered or unexported fields
}

func (*NewPartyResponse) Descriptor deprecated

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

Deprecated: Use NewPartyResponse.ProtoReflect.Descriptor instead.

func (*NewPartyResponse) GetPartyID

func (x *NewPartyResponse) GetPartyID() int64

func (*NewPartyResponse) ProtoMessage

func (*NewPartyResponse) ProtoMessage()

func (*NewPartyResponse) ProtoReflect

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

func (*NewPartyResponse) Reset

func (x *NewPartyResponse) Reset()

func (*NewPartyResponse) String

func (x *NewPartyResponse) String() string

func (*NewPartyResponse) Validate

func (m *NewPartyResponse) Validate() error

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

func (m *NewPartyResponse) ValidateAll() error

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

type NewPartyResponseMultiError

type NewPartyResponseMultiError []error

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

func (NewPartyResponseMultiError) AllErrors

func (m NewPartyResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NewPartyResponseMultiError) Error

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

type NewPartyResponseValidationError

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

NewPartyResponseValidationError is the validation error returned by NewPartyResponse.Validate if the designated constraints aren't met.

func (NewPartyResponseValidationError) Cause

Cause function returns cause value.

func (NewPartyResponseValidationError) Error

Error satisfies the builtin error interface

func (NewPartyResponseValidationError) ErrorName

ErrorName returns error name.

func (NewPartyResponseValidationError) Field

Field function returns field value.

func (NewPartyResponseValidationError) Key

Key function returns key value.

func (NewPartyResponseValidationError) Reason

Reason function returns reason value.

type PartyRequest

type PartyRequest struct {
	UserID  int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	PartyID int64 `protobuf:"varint,2,opt,name=PartyID,proto3" json:"PartyID,omitempty"`
	// contains filtered or unexported fields
}

func (*PartyRequest) Descriptor deprecated

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

Deprecated: Use PartyRequest.ProtoReflect.Descriptor instead.

func (*PartyRequest) GetPartyID

func (x *PartyRequest) GetPartyID() int64

func (*PartyRequest) GetUserID

func (x *PartyRequest) GetUserID() int64

func (*PartyRequest) ProtoMessage

func (*PartyRequest) ProtoMessage()

func (*PartyRequest) ProtoReflect

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

func (*PartyRequest) Reset

func (x *PartyRequest) Reset()

func (*PartyRequest) String

func (x *PartyRequest) String() string

func (*PartyRequest) Validate

func (m *PartyRequest) Validate() error

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

func (m *PartyRequest) ValidateAll() error

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

type PartyRequestMultiError

type PartyRequestMultiError []error

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

func (PartyRequestMultiError) AllErrors

func (m PartyRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PartyRequestMultiError) Error

func (m PartyRequestMultiError) Error() string

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

type PartyRequestValidationError

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

PartyRequestValidationError is the validation error returned by PartyRequest.Validate if the designated constraints aren't met.

func (PartyRequestValidationError) Cause

Cause function returns cause value.

func (PartyRequestValidationError) Error

Error satisfies the builtin error interface

func (PartyRequestValidationError) ErrorName

func (e PartyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PartyRequestValidationError) Field

Field function returns field value.

func (PartyRequestValidationError) Key

Key function returns key value.

func (PartyRequestValidationError) Reason

Reason function returns reason value.

type PartyState

type PartyState struct {
	Users  []*User  `protobuf:"bytes,1,rep,name=Users,proto3" json:"Users,omitempty"`
	Videos []*Video `protobuf:"bytes,2,rep,name=Videos,proto3" json:"Videos,omitempty"`
	// contains filtered or unexported fields
}

func (*PartyState) Descriptor deprecated

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

Deprecated: Use PartyState.ProtoReflect.Descriptor instead.

func (*PartyState) GetUsers

func (x *PartyState) GetUsers() []*User

func (*PartyState) GetVideos

func (x *PartyState) GetVideos() []*Video

func (*PartyState) ProtoMessage

func (*PartyState) ProtoMessage()

func (*PartyState) ProtoReflect

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

func (*PartyState) Reset

func (x *PartyState) Reset()

func (*PartyState) String

func (x *PartyState) String() string

func (*PartyState) Validate

func (m *PartyState) Validate() error

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

func (m *PartyState) ValidateAll() error

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

type PartyStateMultiError

type PartyStateMultiError []error

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

func (PartyStateMultiError) AllErrors

func (m PartyStateMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PartyStateMultiError) Error

func (m PartyStateMultiError) Error() string

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

type PartyStateValidationError

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

PartyStateValidationError is the validation error returned by PartyState.Validate if the designated constraints aren't met.

func (PartyStateValidationError) Cause

func (e PartyStateValidationError) Cause() error

Cause function returns cause value.

func (PartyStateValidationError) Error

Error satisfies the builtin error interface

func (PartyStateValidationError) ErrorName

func (e PartyStateValidationError) ErrorName() string

ErrorName returns error name.

func (PartyStateValidationError) Field

Field function returns field value.

func (PartyStateValidationError) Key

Key function returns key value.

func (PartyStateValidationError) Reason

func (e PartyStateValidationError) Reason() string

Reason function returns reason value.

type PartyserviceClient

type PartyserviceClient interface {
	NewWatchParty(ctx context.Context, in *NewPartyRequest, opts ...grpc.CallOption) (*Empty, error)
	BecomeLeader(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*LeaderResponse, error)
	JoinParty(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Empty, error)
	HeartBeat(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Empty, error)
	GetPartyState(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*PartyState, error)
	AddVideo(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (*Empty, error)
	NextVideo(ctx context.Context, in *PartyRequest, opts ...grpc.CallOption) (*Empty, error)
}

PartyserviceClient is the client API for Partyservice service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PartyserviceServer

type PartyserviceServer interface {
	NewWatchParty(context.Context, *NewPartyRequest) (*Empty, error)
	BecomeLeader(context.Context, *PartyRequest) (*LeaderResponse, error)
	JoinParty(context.Context, *PartyRequest) (*Empty, error)
	HeartBeat(context.Context, *PartyRequest) (*Empty, error)
	GetPartyState(context.Context, *PartyRequest) (*PartyState, error)
	AddVideo(context.Context, *VideoRequest) (*Empty, error)
	NextVideo(context.Context, *PartyRequest) (*Empty, error)
	// contains filtered or unexported methods
}

PartyserviceServer is the server API for Partyservice service. All implementations must embed UnimplementedPartyserviceServer for forward compatibility

type UnimplementedPartyserviceServer

type UnimplementedPartyserviceServer struct {
}

UnimplementedPartyserviceServer must be embedded to have forward compatible implementations.

func (UnimplementedPartyserviceServer) AddVideo

func (UnimplementedPartyserviceServer) BecomeLeader

func (UnimplementedPartyserviceServer) GetPartyState

func (UnimplementedPartyserviceServer) HeartBeat

func (UnimplementedPartyserviceServer) JoinParty

func (UnimplementedPartyserviceServer) NewWatchParty

func (UnimplementedPartyserviceServer) NextVideo

type UnsafePartyserviceServer

type UnsafePartyserviceServer interface {
	// contains filtered or unexported methods
}

UnsafePartyserviceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PartyserviceServer will result in compilation errors.

type User

type User struct {
	UserID   int64  `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	IsLeader bool   `protobuf:"varint,2,opt,name=IsLeader,proto3" json:"IsLeader,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=Username,proto3" json:"Username,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetIsLeader

func (x *User) GetIsLeader() bool

func (*User) GetUserID

func (x *User) GetUserID() int64

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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 {
	Title    string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	ID       int64  `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	Location string `protobuf:"bytes,3,opt,name=Location,proto3" json:"Location,omitempty"`
	// contains filtered or unexported fields
}

func (*Video) Descriptor deprecated

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

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetID

func (x *Video) GetID() int64

func (*Video) GetLocation

func (x *Video) GetLocation() string

func (*Video) GetTitle

func (x *Video) GetTitle() string

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

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

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

func (*Video) Validate

func (m *Video) Validate() error

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

func (m *Video) ValidateAll() error

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 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 VideoRequest

type VideoRequest struct {
	PartyID int64  `protobuf:"varint,1,opt,name=PartyID,proto3" json:"PartyID,omitempty"`
	Video   *Video `protobuf:"bytes,2,opt,name=video,proto3" json:"video,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoRequest) Descriptor deprecated

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

Deprecated: Use VideoRequest.ProtoReflect.Descriptor instead.

func (*VideoRequest) GetPartyID

func (x *VideoRequest) GetPartyID() int64

func (*VideoRequest) GetVideo

func (x *VideoRequest) GetVideo() *Video

func (*VideoRequest) ProtoMessage

func (*VideoRequest) ProtoMessage()

func (*VideoRequest) ProtoReflect

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

func (*VideoRequest) Reset

func (x *VideoRequest) Reset()

func (*VideoRequest) String

func (x *VideoRequest) String() string

func (*VideoRequest) Validate

func (m *VideoRequest) Validate() error

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

func (m *VideoRequest) ValidateAll() error

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

type VideoRequestMultiError

type VideoRequestMultiError []error

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

func (VideoRequestMultiError) AllErrors

func (m VideoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VideoRequestMultiError) Error

func (m VideoRequestMultiError) Error() string

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

type VideoRequestValidationError

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

VideoRequestValidationError is the validation error returned by VideoRequest.Validate if the designated constraints aren't met.

func (VideoRequestValidationError) Cause

Cause function returns cause value.

func (VideoRequestValidationError) Error

Error satisfies the builtin error interface

func (VideoRequestValidationError) ErrorName

func (e VideoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (VideoRequestValidationError) Field

Field function returns field value.

func (VideoRequestValidationError) Key

Key function returns key value.

func (VideoRequestValidationError) Reason

Reason function returns reason value.

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.

Jump to

Keyboard shortcuts

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