Documentation ¶
Index ¶
- Variables
- type LoginSession
- func (*LoginSession) Descriptor() ([]byte, []int)deprecated
- func (x *LoginSession) GetLoginTime() *timestamppb.Timestamp
- func (x *LoginSession) GetLogoutTime() *timestamppb.Timestamp
- func (x *LoginSession) GetSessionId() string
- func (*LoginSession) ProtoMessage()
- func (x *LoginSession) ProtoReflect() protoreflect.Message
- func (x *LoginSession) Reset()
- func (x *LoginSession) String() string
- type McPlayer
- func (*McPlayer) Descriptor() ([]byte, []int)deprecated
- func (x *McPlayer) GetCurrentSession() *LoginSession
- func (x *McPlayer) GetCurrentUsername() string
- func (x *McPlayer) GetCurrentlyOnline() bool
- func (x *McPlayer) GetFirstLogin() *timestamppb.Timestamp
- func (x *McPlayer) GetHistoricPlayTime() *durationpb.Duration
- func (x *McPlayer) GetId() string
- func (x *McPlayer) GetLastOnline() *timestamppb.Timestamp
- func (*McPlayer) ProtoMessage()
- func (x *McPlayer) ProtoReflect() protoreflect.Message
- func (x *McPlayer) Reset()
- func (x *McPlayer) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_mc_player_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LoginSession ¶
type LoginSession struct { SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` LoginTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=login_time,json=loginTime,proto3" json:"login_time,omitempty"` // Only set if this session is not currently active (i.e. the player is not online for this session) LogoutTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=logout_time,json=logoutTime,proto3,oneof" json:"logout_time,omitempty"` // contains filtered or unexported fields }
func (*LoginSession) Descriptor
deprecated
func (*LoginSession) Descriptor() ([]byte, []int)
Deprecated: Use LoginSession.ProtoReflect.Descriptor instead.
func (*LoginSession) GetLoginTime ¶
func (x *LoginSession) GetLoginTime() *timestamppb.Timestamp
func (*LoginSession) GetLogoutTime ¶
func (x *LoginSession) GetLogoutTime() *timestamppb.Timestamp
func (*LoginSession) GetSessionId ¶
func (x *LoginSession) GetSessionId() string
func (*LoginSession) ProtoMessage ¶
func (*LoginSession) ProtoMessage()
func (*LoginSession) ProtoReflect ¶
func (x *LoginSession) ProtoReflect() protoreflect.Message
func (*LoginSession) Reset ¶
func (x *LoginSession) Reset()
func (*LoginSession) String ¶
func (x *LoginSession) String() string
type McPlayer ¶
type McPlayer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CurrentUsername string `protobuf:"bytes,2,opt,name=current_username,json=currentUsername,proto3" json:"current_username,omitempty"` FirstLogin *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=first_login,json=firstLogin,proto3" json:"first_login,omitempty"` // If they are currently online this will not be up to date LastOnline *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_online,json=lastOnline,proto3" json:"last_online,omitempty"` CurrentlyOnline bool `protobuf:"varint,5,opt,name=currently_online,json=currentlyOnline,proto3" json:"currently_online,omitempty"` CurrentSession *LoginSession `protobuf:"bytes,6,opt,name=current_session,json=currentSession,proto3,oneof" json:"current_session,omitempty"` // The total play time of this player. // WARNING: Does not include the current session HistoricPlayTime *durationpb.Duration `protobuf:"bytes,7,opt,name=historic_play_time,json=historicPlayTime,proto3" json:"historic_play_time,omitempty"` // contains filtered or unexported fields }
func (*McPlayer) Descriptor
deprecated
func (*McPlayer) GetCurrentSession ¶
func (x *McPlayer) GetCurrentSession() *LoginSession
func (*McPlayer) GetCurrentUsername ¶
func (*McPlayer) GetCurrentlyOnline ¶
func (*McPlayer) GetFirstLogin ¶
func (x *McPlayer) GetFirstLogin() *timestamppb.Timestamp
func (*McPlayer) GetHistoricPlayTime ¶
func (x *McPlayer) GetHistoricPlayTime() *durationpb.Duration
func (*McPlayer) GetLastOnline ¶
func (x *McPlayer) GetLastOnline() *timestamppb.Timestamp
func (*McPlayer) ProtoMessage ¶
func (*McPlayer) ProtoMessage()
func (*McPlayer) ProtoReflect ¶
func (x *McPlayer) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.