Documentation ¶
Index ¶
- Variables
- func RegisterPartyserviceServer(s grpc.ServiceRegistrar, srv PartyserviceServer)
- type Empty
- type EmptyMultiError
- type EmptyValidationError
- type LeaderResponse
- func (*LeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LeaderResponse) GetIsLeader() bool
- func (*LeaderResponse) ProtoMessage()
- func (x *LeaderResponse) ProtoReflect() protoreflect.Message
- func (x *LeaderResponse) Reset()
- func (x *LeaderResponse) String() string
- func (m *LeaderResponse) Validate() error
- func (m *LeaderResponse) ValidateAll() error
- type LeaderResponseMultiError
- type LeaderResponseValidationError
- func (e LeaderResponseValidationError) Cause() error
- func (e LeaderResponseValidationError) Error() string
- func (e LeaderResponseValidationError) ErrorName() string
- func (e LeaderResponseValidationError) Field() string
- func (e LeaderResponseValidationError) Key() bool
- func (e LeaderResponseValidationError) Reason() string
- type NewPartyRequest
- func (*NewPartyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewPartyRequest) GetChannelID() int64
- func (x *NewPartyRequest) GetUserID() int64
- func (*NewPartyRequest) ProtoMessage()
- func (x *NewPartyRequest) ProtoReflect() protoreflect.Message
- func (x *NewPartyRequest) Reset()
- func (x *NewPartyRequest) String() string
- func (m *NewPartyRequest) Validate() error
- func (m *NewPartyRequest) ValidateAll() error
- type NewPartyRequestMultiError
- type NewPartyRequestValidationError
- func (e NewPartyRequestValidationError) Cause() error
- func (e NewPartyRequestValidationError) Error() string
- func (e NewPartyRequestValidationError) ErrorName() string
- func (e NewPartyRequestValidationError) Field() string
- func (e NewPartyRequestValidationError) Key() bool
- func (e NewPartyRequestValidationError) Reason() string
- type NewPartyResponse
- func (*NewPartyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NewPartyResponse) GetPartyID() int64
- func (*NewPartyResponse) ProtoMessage()
- func (x *NewPartyResponse) ProtoReflect() protoreflect.Message
- func (x *NewPartyResponse) Reset()
- func (x *NewPartyResponse) String() string
- func (m *NewPartyResponse) Validate() error
- func (m *NewPartyResponse) ValidateAll() error
- type NewPartyResponseMultiError
- type NewPartyResponseValidationError
- func (e NewPartyResponseValidationError) Cause() error
- func (e NewPartyResponseValidationError) Error() string
- func (e NewPartyResponseValidationError) ErrorName() string
- func (e NewPartyResponseValidationError) Field() string
- func (e NewPartyResponseValidationError) Key() bool
- func (e NewPartyResponseValidationError) Reason() string
- type PartyRequest
- func (*PartyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PartyRequest) GetPartyID() int64
- func (x *PartyRequest) GetUserID() int64
- func (*PartyRequest) ProtoMessage()
- func (x *PartyRequest) ProtoReflect() protoreflect.Message
- func (x *PartyRequest) Reset()
- func (x *PartyRequest) String() string
- func (m *PartyRequest) Validate() error
- func (m *PartyRequest) ValidateAll() error
- type PartyRequestMultiError
- type PartyRequestValidationError
- func (e PartyRequestValidationError) Cause() error
- func (e PartyRequestValidationError) Error() string
- func (e PartyRequestValidationError) ErrorName() string
- func (e PartyRequestValidationError) Field() string
- func (e PartyRequestValidationError) Key() bool
- func (e PartyRequestValidationError) Reason() string
- type PartyState
- func (*PartyState) Descriptor() ([]byte, []int)deprecated
- func (x *PartyState) GetUsers() []*User
- func (x *PartyState) GetVideos() []*Video
- func (*PartyState) ProtoMessage()
- func (x *PartyState) ProtoReflect() protoreflect.Message
- func (x *PartyState) Reset()
- func (x *PartyState) String() string
- func (m *PartyState) Validate() error
- func (m *PartyState) ValidateAll() error
- type PartyStateMultiError
- type PartyStateValidationError
- type PartyserviceClient
- type PartyserviceServer
- type UnimplementedPartyserviceServer
- func (UnimplementedPartyserviceServer) AddVideo(context.Context, *VideoRequest) (*Empty, error)
- func (UnimplementedPartyserviceServer) BecomeLeader(context.Context, *PartyRequest) (*LeaderResponse, error)
- func (UnimplementedPartyserviceServer) GetPartyState(context.Context, *PartyRequest) (*PartyState, error)
- func (UnimplementedPartyserviceServer) HeartBeat(context.Context, *PartyRequest) (*Empty, error)
- func (UnimplementedPartyserviceServer) JoinParty(context.Context, *PartyRequest) (*Empty, error)
- func (UnimplementedPartyserviceServer) NewWatchParty(context.Context, *NewPartyRequest) (*Empty, error)
- func (UnimplementedPartyserviceServer) NextVideo(context.Context, *PartyRequest) (*Empty, error)
- type UnsafePartyserviceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetIsLeader() bool
- func (x *User) GetUserID() int64
- func (x *User) GetUsername() string
- 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) GetID() int64
- func (x *Video) GetLocation() 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 VideoMultiError
- type VideoRequest
- func (*VideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VideoRequest) GetPartyID() int64
- func (x *VideoRequest) GetVideo() *Video
- func (*VideoRequest) ProtoMessage()
- func (x *VideoRequest) ProtoReflect() protoreflect.Message
- func (x *VideoRequest) Reset()
- func (x *VideoRequest) String() string
- func (m *VideoRequest) Validate() error
- func (m *VideoRequest) ValidateAll() error
- type VideoRequestMultiError
- type VideoRequestValidationError
- func (e VideoRequestValidationError) Cause() error
- func (e VideoRequestValidationError) Error() string
- func (e VideoRequestValidationError) ErrorName() string
- func (e VideoRequestValidationError) Field() string
- func (e VideoRequestValidationError) Key() bool
- func (e VideoRequestValidationError) Reason() string
- type VideoValidationError
Constants ¶
This section is empty.
Variables ¶
var File_party_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
func (*Empty) Validate ¶
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 ¶
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 ¶
func (e LeaderResponseValidationError) Cause() error
Cause function returns cause value.
func (LeaderResponseValidationError) Error ¶
func (e LeaderResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LeaderResponseValidationError) ErrorName ¶
func (e LeaderResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LeaderResponseValidationError) Field ¶
func (e LeaderResponseValidationError) Field() string
Field function returns field value.
func (LeaderResponseValidationError) Key ¶
func (e LeaderResponseValidationError) Key() bool
Key function returns key value.
func (LeaderResponseValidationError) Reason ¶
func (e LeaderResponseValidationError) Reason() string
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 ¶
func (m NewPartyRequestMultiError) Error() string
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 ¶
func (e NewPartyRequestValidationError) Cause() error
Cause function returns cause value.
func (NewPartyRequestValidationError) Error ¶
func (e NewPartyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (NewPartyRequestValidationError) ErrorName ¶
func (e NewPartyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (NewPartyRequestValidationError) Field ¶
func (e NewPartyRequestValidationError) Field() string
Field function returns field value.
func (NewPartyRequestValidationError) Key ¶
func (e NewPartyRequestValidationError) Key() bool
Key function returns key value.
func (NewPartyRequestValidationError) Reason ¶
func (e NewPartyRequestValidationError) Reason() string
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 ¶
func (m NewPartyResponseMultiError) Error() string
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 ¶
func (e NewPartyResponseValidationError) Cause() error
Cause function returns cause value.
func (NewPartyResponseValidationError) Error ¶
func (e NewPartyResponseValidationError) Error() string
Error satisfies the builtin error interface
func (NewPartyResponseValidationError) ErrorName ¶
func (e NewPartyResponseValidationError) ErrorName() string
ErrorName returns error name.
func (NewPartyResponseValidationError) Field ¶
func (e NewPartyResponseValidationError) Field() string
Field function returns field value.
func (NewPartyResponseValidationError) Key ¶
func (e NewPartyResponseValidationError) Key() bool
Key function returns key value.
func (NewPartyResponseValidationError) Reason ¶
func (e NewPartyResponseValidationError) Reason() string
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 ¶
func (e PartyRequestValidationError) Cause() error
Cause function returns cause value.
func (PartyRequestValidationError) Error ¶
func (e PartyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PartyRequestValidationError) ErrorName ¶
func (e PartyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PartyRequestValidationError) Field ¶
func (e PartyRequestValidationError) Field() string
Field function returns field value.
func (PartyRequestValidationError) Key ¶
func (e PartyRequestValidationError) Key() bool
Key function returns key value.
func (PartyRequestValidationError) Reason ¶
func (e PartyRequestValidationError) Reason() string
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 ¶
func (e PartyStateValidationError) Error() string
Error satisfies the builtin error interface
func (PartyStateValidationError) ErrorName ¶
func (e PartyStateValidationError) ErrorName() string
ErrorName returns error name.
func (PartyStateValidationError) Field ¶
func (e PartyStateValidationError) Field() string
Field function returns field value.
func (PartyStateValidationError) Key ¶
func (e PartyStateValidationError) Key() bool
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.
func NewPartyserviceClient ¶
func NewPartyserviceClient(cc grpc.ClientConnInterface) PartyserviceClient
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) AddVideo(context.Context, *VideoRequest) (*Empty, error)
func (UnimplementedPartyserviceServer) BecomeLeader ¶
func (UnimplementedPartyserviceServer) BecomeLeader(context.Context, *PartyRequest) (*LeaderResponse, error)
func (UnimplementedPartyserviceServer) GetPartyState ¶
func (UnimplementedPartyserviceServer) GetPartyState(context.Context, *PartyRequest) (*PartyState, error)
func (UnimplementedPartyserviceServer) HeartBeat ¶
func (UnimplementedPartyserviceServer) HeartBeat(context.Context, *PartyRequest) (*Empty, error)
func (UnimplementedPartyserviceServer) JoinParty ¶
func (UnimplementedPartyserviceServer) JoinParty(context.Context, *PartyRequest) (*Empty, error)
func (UnimplementedPartyserviceServer) NewWatchParty ¶
func (UnimplementedPartyserviceServer) NewWatchParty(context.Context, *NewPartyRequest) (*Empty, error)
func (UnimplementedPartyserviceServer) NextVideo ¶
func (UnimplementedPartyserviceServer) NextVideo(context.Context, *PartyRequest) (*Empty, error)
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) GetIsLeader ¶
func (*User) GetUsername ¶
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 { 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) GetLocation ¶
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 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 ¶
func (e VideoRequestValidationError) Cause() error
Cause function returns cause value.
func (VideoRequestValidationError) Error ¶
func (e VideoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VideoRequestValidationError) ErrorName ¶
func (e VideoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VideoRequestValidationError) Field ¶
func (e VideoRequestValidationError) Field() string
Field function returns field value.
func (VideoRequestValidationError) Key ¶
func (e VideoRequestValidationError) Key() bool
Key function returns key value.
func (VideoRequestValidationError) Reason ¶
func (e VideoRequestValidationError) Reason() string
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.