Documentation ¶
Index ¶
- Variables
- type ChatResp
- type ElementMessage
- func (*ElementMessage) Descriptor() ([]byte, []int)deprecated
- func (em *ElementMessage) Encode(w io.Writer) error
- func (x *ElementMessage) GetChangeMovieStatusReq() *MovieStatus
- func (x *ElementMessage) GetChangeSeekReq() float64
- func (x *ElementMessage) GetChatReq() string
- func (x *ElementMessage) GetChatResp() *ChatResp
- func (x *ElementMessage) GetCheckStatusReq() *MovieStatus
- func (x *ElementMessage) GetCurrentChanged() *Sender
- func (x *ElementMessage) GetError() string
- func (x *ElementMessage) GetExpireId() uint64
- func (x *ElementMessage) GetMovieStatusChanged() *MovieStatusChanged
- func (x *ElementMessage) GetMoviesChanged() *Sender
- func (x *ElementMessage) GetPeopleChanged() int64
- func (x *ElementMessage) GetTime() int64
- func (x *ElementMessage) GetType() ElementMessageType
- func (em *ElementMessage) MessageType() int
- func (*ElementMessage) ProtoMessage()
- func (x *ElementMessage) ProtoReflect() protoreflect.Message
- func (x *ElementMessage) Reset()
- func (x *ElementMessage) String() string
- type ElementMessageType
- func (ElementMessageType) Descriptor() protoreflect.EnumDescriptor
- func (x ElementMessageType) Enum() *ElementMessageType
- func (ElementMessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ElementMessageType) Number() protoreflect.EnumNumber
- func (x ElementMessageType) String() string
- func (ElementMessageType) Type() protoreflect.EnumType
- type MovieStatus
- func (*MovieStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MovieStatus) GetPlaying() bool
- func (x *MovieStatus) GetRate() float64
- func (x *MovieStatus) GetSeek() float64
- func (*MovieStatus) ProtoMessage()
- func (x *MovieStatus) ProtoReflect() protoreflect.Message
- func (x *MovieStatus) Reset()
- func (x *MovieStatus) String() string
- type MovieStatusChanged
- func (*MovieStatusChanged) Descriptor() ([]byte, []int)deprecated
- func (x *MovieStatusChanged) GetSender() *Sender
- func (x *MovieStatusChanged) GetStatus() *MovieStatus
- func (*MovieStatusChanged) ProtoMessage()
- func (x *MovieStatusChanged) ProtoReflect() protoreflect.Message
- func (x *MovieStatusChanged) Reset()
- func (x *MovieStatusChanged) String() string
- type Sender
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ElementMessageType_name = map[int32]string{ 0: "UNKNOWN", 1: "ERROR", 2: "CHAT_MESSAGE", 3: "PLAY", 4: "PAUSE", 5: "CHECK_STATUS", 6: "TOO_FAST", 7: "TOO_SLOW", 8: "CHANGE_RATE", 9: "CHANGE_SEEK", 10: "CURRENT_CHANGED", 11: "MOVIES_CHANGED", 12: "PEOPLE_CHANGED", 13: "SYNC_MOVIE_STATUS", 14: "CURRENT_EXPIRED", 15: "CHECK_EXPIRED", } ElementMessageType_value = map[string]int32{ "UNKNOWN": 0, "ERROR": 1, "CHAT_MESSAGE": 2, "PLAY": 3, "PAUSE": 4, "CHECK_STATUS": 5, "TOO_FAST": 6, "TOO_SLOW": 7, "CHANGE_RATE": 8, "CHANGE_SEEK": 9, "CURRENT_CHANGED": 10, "MOVIES_CHANGED": 11, "PEOPLE_CHANGED": 12, "SYNC_MOVIE_STATUS": 13, "CURRENT_EXPIRED": 14, "CHECK_EXPIRED": 15, } )
Enum value maps for ElementMessageType.
View Source
var File_proto_message_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChatResp ¶ added in v0.3.6
type ChatResp struct { Sender *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ChatResp) Descriptor
deprecated
added in
v0.3.6
func (*ChatResp) GetMessage ¶ added in v0.3.6
func (*ChatResp) ProtoMessage ¶ added in v0.3.6
func (*ChatResp) ProtoMessage()
func (*ChatResp) ProtoReflect ¶ added in v0.3.6
func (x *ChatResp) ProtoReflect() protoreflect.Message
type ElementMessage ¶
type ElementMessage struct { Type ElementMessageType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.ElementMessageType" json:"type,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` ChatReq string `protobuf:"bytes,4,opt,name=chatReq,proto3" json:"chatReq,omitempty"` ChatResp *ChatResp `protobuf:"bytes,5,opt,name=chatResp,proto3" json:"chatResp,omitempty"` ChangeMovieStatusReq *MovieStatus `protobuf:"bytes,6,opt,name=changeMovieStatusReq,proto3" json:"changeMovieStatusReq,omitempty"` MovieStatusChanged *MovieStatusChanged `protobuf:"bytes,7,opt,name=movieStatusChanged,proto3" json:"movieStatusChanged,omitempty"` ChangeSeekReq float64 `protobuf:"fixed64,8,opt,name=changeSeekReq,proto3" json:"changeSeekReq,omitempty"` CheckStatusReq *MovieStatus `protobuf:"bytes,9,opt,name=checkStatusReq,proto3" json:"checkStatusReq,omitempty"` ExpireId uint64 `protobuf:"varint,10,opt,name=expireId,proto3" json:"expireId,omitempty"` PeopleChanged int64 `protobuf:"varint,11,opt,name=peopleChanged,proto3" json:"peopleChanged,omitempty"` MoviesChanged *Sender `protobuf:"bytes,12,opt,name=moviesChanged,proto3" json:"moviesChanged,omitempty"` CurrentChanged *Sender `protobuf:"bytes,13,opt,name=currentChanged,proto3" json:"currentChanged,omitempty"` // contains filtered or unexported fields }
func (*ElementMessage) Descriptor
deprecated
func (*ElementMessage) Descriptor() ([]byte, []int)
Deprecated: Use ElementMessage.ProtoReflect.Descriptor instead.
func (*ElementMessage) GetChangeMovieStatusReq ¶ added in v0.3.6
func (x *ElementMessage) GetChangeMovieStatusReq() *MovieStatus
func (*ElementMessage) GetChangeSeekReq ¶ added in v0.3.6
func (x *ElementMessage) GetChangeSeekReq() float64
func (*ElementMessage) GetChatReq ¶ added in v0.3.6
func (x *ElementMessage) GetChatReq() string
func (*ElementMessage) GetChatResp ¶ added in v0.3.6
func (x *ElementMessage) GetChatResp() *ChatResp
func (*ElementMessage) GetCheckStatusReq ¶ added in v0.6.0
func (x *ElementMessage) GetCheckStatusReq() *MovieStatus
func (*ElementMessage) GetCurrentChanged ¶ added in v0.3.6
func (x *ElementMessage) GetCurrentChanged() *Sender
func (*ElementMessage) GetError ¶ added in v0.3.6
func (x *ElementMessage) GetError() string
func (*ElementMessage) GetExpireId ¶ added in v0.6.0
func (x *ElementMessage) GetExpireId() uint64
func (*ElementMessage) GetMovieStatusChanged ¶ added in v0.3.6
func (x *ElementMessage) GetMovieStatusChanged() *MovieStatusChanged
func (*ElementMessage) GetMoviesChanged ¶ added in v0.3.6
func (x *ElementMessage) GetMoviesChanged() *Sender
func (*ElementMessage) GetPeopleChanged ¶ added in v0.3.6
func (x *ElementMessage) GetPeopleChanged() int64
func (*ElementMessage) GetTime ¶
func (x *ElementMessage) GetTime() int64
func (*ElementMessage) GetType ¶
func (x *ElementMessage) GetType() ElementMessageType
func (*ElementMessage) MessageType ¶ added in v0.3.6
func (em *ElementMessage) MessageType() int
func (*ElementMessage) ProtoMessage ¶
func (*ElementMessage) ProtoMessage()
func (*ElementMessage) ProtoReflect ¶
func (x *ElementMessage) ProtoReflect() protoreflect.Message
func (*ElementMessage) Reset ¶
func (x *ElementMessage) Reset()
func (*ElementMessage) String ¶
func (x *ElementMessage) String() string
type ElementMessageType ¶
type ElementMessageType int32
const ( ElementMessageType_UNKNOWN ElementMessageType = 0 ElementMessageType_ERROR ElementMessageType = 1 ElementMessageType_CHAT_MESSAGE ElementMessageType = 2 ElementMessageType_PLAY ElementMessageType = 3 ElementMessageType_PAUSE ElementMessageType = 4 ElementMessageType_CHECK_STATUS ElementMessageType = 5 ElementMessageType_TOO_FAST ElementMessageType = 6 ElementMessageType_TOO_SLOW ElementMessageType = 7 ElementMessageType_CHANGE_RATE ElementMessageType = 8 ElementMessageType_CHANGE_SEEK ElementMessageType = 9 ElementMessageType_CURRENT_CHANGED ElementMessageType = 10 ElementMessageType_MOVIES_CHANGED ElementMessageType = 11 ElementMessageType_PEOPLE_CHANGED ElementMessageType = 12 ElementMessageType_SYNC_MOVIE_STATUS ElementMessageType = 13 ElementMessageType_CURRENT_EXPIRED ElementMessageType = 14 ElementMessageType_CHECK_EXPIRED ElementMessageType = 15 )
func (ElementMessageType) Descriptor ¶
func (ElementMessageType) Descriptor() protoreflect.EnumDescriptor
func (ElementMessageType) Enum ¶
func (x ElementMessageType) Enum() *ElementMessageType
func (ElementMessageType) EnumDescriptor
deprecated
func (ElementMessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ElementMessageType.Descriptor instead.
func (ElementMessageType) Number ¶
func (x ElementMessageType) Number() protoreflect.EnumNumber
func (ElementMessageType) String ¶
func (x ElementMessageType) String() string
func (ElementMessageType) Type ¶
func (ElementMessageType) Type() protoreflect.EnumType
type MovieStatus ¶ added in v0.3.6
type MovieStatus struct { Playing bool `protobuf:"varint,1,opt,name=playing,proto3" json:"playing,omitempty"` Seek float64 `protobuf:"fixed64,2,opt,name=seek,proto3" json:"seek,omitempty"` Rate float64 `protobuf:"fixed64,3,opt,name=rate,proto3" json:"rate,omitempty"` // contains filtered or unexported fields }
func (*MovieStatus) Descriptor
deprecated
added in
v0.3.6
func (*MovieStatus) Descriptor() ([]byte, []int)
Deprecated: Use MovieStatus.ProtoReflect.Descriptor instead.
func (*MovieStatus) GetPlaying ¶ added in v0.3.6
func (x *MovieStatus) GetPlaying() bool
func (*MovieStatus) GetRate ¶ added in v0.3.6
func (x *MovieStatus) GetRate() float64
func (*MovieStatus) GetSeek ¶ added in v0.3.6
func (x *MovieStatus) GetSeek() float64
func (*MovieStatus) ProtoMessage ¶ added in v0.3.6
func (*MovieStatus) ProtoMessage()
func (*MovieStatus) ProtoReflect ¶ added in v0.3.6
func (x *MovieStatus) ProtoReflect() protoreflect.Message
func (*MovieStatus) Reset ¶ added in v0.3.6
func (x *MovieStatus) Reset()
func (*MovieStatus) String ¶ added in v0.3.6
func (x *MovieStatus) String() string
type MovieStatusChanged ¶ added in v0.3.6
type MovieStatusChanged struct { Sender *Sender `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Status *MovieStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*MovieStatusChanged) Descriptor
deprecated
added in
v0.3.6
func (*MovieStatusChanged) Descriptor() ([]byte, []int)
Deprecated: Use MovieStatusChanged.ProtoReflect.Descriptor instead.
func (*MovieStatusChanged) GetSender ¶ added in v0.3.6
func (x *MovieStatusChanged) GetSender() *Sender
func (*MovieStatusChanged) GetStatus ¶ added in v0.3.6
func (x *MovieStatusChanged) GetStatus() *MovieStatus
func (*MovieStatusChanged) ProtoMessage ¶ added in v0.3.6
func (*MovieStatusChanged) ProtoMessage()
func (*MovieStatusChanged) ProtoReflect ¶ added in v0.3.6
func (x *MovieStatusChanged) ProtoReflect() protoreflect.Message
func (*MovieStatusChanged) Reset ¶ added in v0.3.6
func (x *MovieStatusChanged) Reset()
func (*MovieStatusChanged) String ¶ added in v0.3.6
func (x *MovieStatusChanged) String() string
type Sender ¶ added in v0.3.6
type Sender struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Userid string `protobuf:"bytes,2,opt,name=userid,proto3" json:"userid,omitempty"` // contains filtered or unexported fields }
func (*Sender) Descriptor
deprecated
added in
v0.3.6
func (*Sender) GetUsername ¶ added in v0.3.6
func (*Sender) ProtoMessage ¶ added in v0.3.6
func (*Sender) ProtoMessage()
func (*Sender) ProtoReflect ¶ added in v0.3.6
func (x *Sender) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.