session

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Executor_Type_name = map[int32]string{
		0: "TYPE_CUSTOM",
		1: "TYPE_USER",
		2: "TYPE_PLAYER",
		3: "TYPE_SYSTEM",
	}
	Executor_Type_value = map[string]int32{
		"TYPE_CUSTOM": 0,
		"TYPE_USER":   1,
		"TYPE_PLAYER": 2,
		"TYPE_SYSTEM": 3,
	}
)

Enum value maps for Executor_Type.

View Source
var File_cow_session_v1_session_service_api_proto protoreflect.FileDescriptor
View Source
var SessionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cow.session.v1.SessionService",
	HandlerType: (*SessionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateSession",
			Handler:    _SessionService_CreateSession_Handler,
		},
		{
			MethodName: "StopSession",
			Handler:    _SessionService_StopSession_Handler,
		},
		{
			MethodName: "GetSession",
			Handler:    _SessionService_GetSession_Handler,
		},
		{
			MethodName: "KickPlayer",
			Handler:    _SessionService_KickPlayer_Handler,
		},
		{
			MethodName: "BanPlayer",
			Handler:    _SessionService_BanPlayer_Handler,
		},
		{
			MethodName: "GetBans",
			Handler:    _SessionService_GetBans_Handler,
		},
		{
			MethodName: "RevokeBan",
			Handler:    _SessionService_RevokeBan_Handler,
		},
		{
			MethodName: "SetMaintenanceMode",
			Handler:    _SessionService_SetMaintenanceMode_Handler,
		},
		{
			MethodName: "BlacklistPlayer",
			Handler:    _SessionService_BlacklistPlayer_Handler,
		},
		{
			MethodName: "RevokeBlacklistPlayer",
			Handler:    _SessionService_RevokeBlacklistPlayer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cow/session/v1/session_service_api.proto",
}

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

Functions

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)

Types

type Ban

type Ban struct {

	// The unique identifier of the ban.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The banned player.
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The reason of the ban.
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// The unix timestamp of the ban.
	BannedAt uint64 `protobuf:"varint,4,opt,name=banned_at,json=bannedAt,proto3" json:"banned_at,omitempty"`
	// The duration of this ban in seconds, starting from the banned_at timestamp.
	Duration int64 `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
	// The initiator of the ban.
	Executor *Executor `protobuf:"bytes,6,opt,name=executor,proto3" json:"executor,omitempty"`
	// The revoke of the ban, if there is one.
	Revoke *BanRevoke `protobuf:"bytes,7,opt,name=revoke,proto3,oneof" json:"revoke,omitempty"`
	// contains filtered or unexported fields
}

func (*Ban) Descriptor deprecated

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

Deprecated: Use Ban.ProtoReflect.Descriptor instead.

func (*Ban) GetBannedAt

func (x *Ban) GetBannedAt() uint64

func (*Ban) GetDuration

func (x *Ban) GetDuration() int64

func (*Ban) GetExecutor

func (x *Ban) GetExecutor() *Executor

func (*Ban) GetId

func (x *Ban) GetId() string

func (*Ban) GetPlayerId

func (x *Ban) GetPlayerId() string

func (*Ban) GetReason

func (x *Ban) GetReason() string

func (*Ban) GetRevoke

func (x *Ban) GetRevoke() *BanRevoke

func (*Ban) ProtoMessage

func (*Ban) ProtoMessage()

func (*Ban) ProtoReflect

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

func (*Ban) Reset

func (x *Ban) Reset()

func (*Ban) String

func (x *Ban) String() string

type BanPlayerRequest

type BanPlayerRequest struct {

	// The player to ban.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The reason for the ban.
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// The unix timestamp of the ban.
	BannedAt uint64 `protobuf:"varint,3,opt,name=banned_at,json=bannedAt,proto3" json:"banned_at,omitempty"`
	// The duration of this ban in seconds, starting from the banned_at timestamp.
	Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
	// The initiator of the ban.
	Executor *Executor `protobuf:"bytes,5,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

func (*BanPlayerRequest) Descriptor deprecated

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

Deprecated: Use BanPlayerRequest.ProtoReflect.Descriptor instead.

func (*BanPlayerRequest) GetBannedAt

func (x *BanPlayerRequest) GetBannedAt() uint64

func (*BanPlayerRequest) GetDuration

func (x *BanPlayerRequest) GetDuration() int64

func (*BanPlayerRequest) GetExecutor

func (x *BanPlayerRequest) GetExecutor() *Executor

func (*BanPlayerRequest) GetPlayerId

func (x *BanPlayerRequest) GetPlayerId() string

func (*BanPlayerRequest) GetReason

func (x *BanPlayerRequest) GetReason() string

func (*BanPlayerRequest) ProtoMessage

func (*BanPlayerRequest) ProtoMessage()

func (*BanPlayerRequest) ProtoReflect

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

func (*BanPlayerRequest) Reset

func (x *BanPlayerRequest) Reset()

func (*BanPlayerRequest) String

func (x *BanPlayerRequest) String() string

type BanPlayerResponse

type BanPlayerResponse struct {

	// The resulting ban.
	Ban *Ban `protobuf:"bytes,1,opt,name=ban,proto3" json:"ban,omitempty"`
	// contains filtered or unexported fields
}

func (*BanPlayerResponse) Descriptor deprecated

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

Deprecated: Use BanPlayerResponse.ProtoReflect.Descriptor instead.

func (*BanPlayerResponse) GetBan

func (x *BanPlayerResponse) GetBan() *Ban

func (*BanPlayerResponse) ProtoMessage

func (*BanPlayerResponse) ProtoMessage()

func (*BanPlayerResponse) ProtoReflect

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

func (*BanPlayerResponse) Reset

func (x *BanPlayerResponse) Reset()

func (*BanPlayerResponse) String

func (x *BanPlayerResponse) String() string

type BanRevoke

type BanRevoke struct {

	// The unique identifier of the revoke.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The timestamp of the revoke.
	RevokedAt uint64 `protobuf:"varint,2,opt,name=revoked_at,json=revokedAt,proto3" json:"revoked_at,omitempty"`
	// The initiator of the revoke.
	Executor *Executor `protobuf:"bytes,3,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

func (*BanRevoke) Descriptor deprecated

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

Deprecated: Use BanRevoke.ProtoReflect.Descriptor instead.

func (*BanRevoke) GetExecutor

func (x *BanRevoke) GetExecutor() *Executor

func (*BanRevoke) GetId

func (x *BanRevoke) GetId() string

func (*BanRevoke) GetRevokedAt

func (x *BanRevoke) GetRevokedAt() uint64

func (*BanRevoke) ProtoMessage

func (*BanRevoke) ProtoMessage()

func (*BanRevoke) ProtoReflect

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

func (*BanRevoke) Reset

func (x *BanRevoke) Reset()

func (*BanRevoke) String

func (x *BanRevoke) String() string

type BlacklistEntry

type BlacklistEntry struct {

	// The unique identifier of the entry.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The blacklisted player.
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The message to show the blacklisted player upon connecting.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The initiator of the blacklist entry.
	Executor *Executor `protobuf:"bytes,4,opt,name=executor,proto3" json:"executor,omitempty"`
	// Whether the blacklist entry is active.
	Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*BlacklistEntry) Descriptor deprecated

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

Deprecated: Use BlacklistEntry.ProtoReflect.Descriptor instead.

func (*BlacklistEntry) GetActive added in v0.15.18

func (x *BlacklistEntry) GetActive() bool

func (*BlacklistEntry) GetExecutor added in v0.15.18

func (x *BlacklistEntry) GetExecutor() *Executor

func (*BlacklistEntry) GetId

func (x *BlacklistEntry) GetId() string

func (*BlacklistEntry) GetMessage

func (x *BlacklistEntry) GetMessage() string

func (*BlacklistEntry) GetPlayerId

func (x *BlacklistEntry) GetPlayerId() string

func (*BlacklistEntry) ProtoMessage

func (*BlacklistEntry) ProtoMessage()

func (*BlacklistEntry) ProtoReflect

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

func (*BlacklistEntry) Reset

func (x *BlacklistEntry) Reset()

func (*BlacklistEntry) String

func (x *BlacklistEntry) String() string

type BlacklistPlayerRequest

type BlacklistPlayerRequest struct {

	// The player to blacklist.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The message to show the blacklisted player upon connecting.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*BlacklistPlayerRequest) Descriptor deprecated

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

Deprecated: Use BlacklistPlayerRequest.ProtoReflect.Descriptor instead.

func (*BlacklistPlayerRequest) GetMessage

func (x *BlacklistPlayerRequest) GetMessage() string

func (*BlacklistPlayerRequest) GetPlayerId

func (x *BlacklistPlayerRequest) GetPlayerId() string

func (*BlacklistPlayerRequest) ProtoMessage

func (*BlacklistPlayerRequest) ProtoMessage()

func (*BlacklistPlayerRequest) ProtoReflect

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

func (*BlacklistPlayerRequest) Reset

func (x *BlacklistPlayerRequest) Reset()

func (*BlacklistPlayerRequest) String

func (x *BlacklistPlayerRequest) String() string

type BlacklistPlayerResponse

type BlacklistPlayerResponse struct {

	// The resulting blacklist entry.
	Entry *BlacklistEntry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*BlacklistPlayerResponse) Descriptor deprecated

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

Deprecated: Use BlacklistPlayerResponse.ProtoReflect.Descriptor instead.

func (*BlacklistPlayerResponse) GetEntry

func (x *BlacklistPlayerResponse) GetEntry() *BlacklistEntry

func (*BlacklistPlayerResponse) ProtoMessage

func (*BlacklistPlayerResponse) ProtoMessage()

func (*BlacklistPlayerResponse) ProtoReflect

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

func (*BlacklistPlayerResponse) Reset

func (x *BlacklistPlayerResponse) Reset()

func (*BlacklistPlayerResponse) String

func (x *BlacklistPlayerResponse) String() string

type CreateSessionRequest

type CreateSessionRequest struct {

	// The player to create the session for.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The ip address the player connects with.
	Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionRequest) Descriptor deprecated

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

Deprecated: Use CreateSessionRequest.ProtoReflect.Descriptor instead.

func (*CreateSessionRequest) GetIp added in v0.15.11

func (x *CreateSessionRequest) GetIp() string

func (*CreateSessionRequest) GetPlayerId

func (x *CreateSessionRequest) GetPlayerId() string

func (*CreateSessionRequest) ProtoMessage

func (*CreateSessionRequest) ProtoMessage()

func (*CreateSessionRequest) ProtoReflect

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

func (*CreateSessionRequest) Reset

func (x *CreateSessionRequest) Reset()

func (*CreateSessionRequest) String

func (x *CreateSessionRequest) String() string

type CreateSessionResponse

type CreateSessionResponse struct {

	// The session created by this service.
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSessionResponse) Descriptor deprecated

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

Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead.

func (*CreateSessionResponse) GetSession

func (x *CreateSessionResponse) GetSession() *Session

func (*CreateSessionResponse) ProtoMessage

func (*CreateSessionResponse) ProtoMessage()

func (*CreateSessionResponse) ProtoReflect

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

func (*CreateSessionResponse) Reset

func (x *CreateSessionResponse) Reset()

func (*CreateSessionResponse) String

func (x *CreateSessionResponse) String() string

type Executor

type Executor struct {

	// The type of the executor.
	Type Executor_Type `protobuf:"varint,1,opt,name=type,proto3,enum=cow.session.v1.Executor_Type" json:"type,omitempty"`
	// The identifier based on the given type.
	Id *string `protobuf:"bytes,2,opt,name=id,proto3,oneof" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Executor) Descriptor deprecated

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

Deprecated: Use Executor.ProtoReflect.Descriptor instead.

func (*Executor) GetId added in v0.15.9

func (x *Executor) GetId() string

func (*Executor) GetType added in v0.15.9

func (x *Executor) GetType() Executor_Type

func (*Executor) ProtoMessage

func (*Executor) ProtoMessage()

func (*Executor) ProtoReflect

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

func (*Executor) Reset

func (x *Executor) Reset()

func (*Executor) String

func (x *Executor) String() string

type Executor_Type added in v0.15.9

type Executor_Type int32
const (
	Executor_TYPE_CUSTOM Executor_Type = 0
	Executor_TYPE_USER   Executor_Type = 1
	Executor_TYPE_PLAYER Executor_Type = 2
	Executor_TYPE_SYSTEM Executor_Type = 3
)

func (Executor_Type) Descriptor added in v0.15.9

func (Executor_Type) Enum added in v0.15.9

func (x Executor_Type) Enum() *Executor_Type

func (Executor_Type) EnumDescriptor deprecated added in v0.15.9

func (Executor_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Executor_Type.Descriptor instead.

func (Executor_Type) Number added in v0.15.9

func (Executor_Type) String added in v0.15.9

func (x Executor_Type) String() string

func (Executor_Type) Type added in v0.15.9

type GetBansRequest

type GetBansRequest struct {

	// The player to receive ban information for.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBansRequest) Descriptor deprecated

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

Deprecated: Use GetBansRequest.ProtoReflect.Descriptor instead.

func (*GetBansRequest) GetPlayerId

func (x *GetBansRequest) GetPlayerId() string

func (*GetBansRequest) ProtoMessage

func (*GetBansRequest) ProtoMessage()

func (*GetBansRequest) ProtoReflect

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

func (*GetBansRequest) Reset

func (x *GetBansRequest) Reset()

func (*GetBansRequest) String

func (x *GetBansRequest) String() string

type GetBansResponse

type GetBansResponse struct {

	// All bans associated to the given player.
	Bans []*Ban `protobuf:"bytes,1,rep,name=bans,proto3" json:"bans,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBansResponse) Descriptor deprecated

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

Deprecated: Use GetBansResponse.ProtoReflect.Descriptor instead.

func (*GetBansResponse) GetBans

func (x *GetBansResponse) GetBans() []*Ban

func (*GetBansResponse) ProtoMessage

func (*GetBansResponse) ProtoMessage()

func (*GetBansResponse) ProtoReflect

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

func (*GetBansResponse) Reset

func (x *GetBansResponse) Reset()

func (*GetBansResponse) String

func (x *GetBansResponse) String() string

type GetSessionRequest

type GetSessionRequest struct {
	Identifier *SessionIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSessionRequest) Descriptor deprecated

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

Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead.

func (*GetSessionRequest) GetIdentifier

func (x *GetSessionRequest) GetIdentifier() *SessionIdentifier

func (*GetSessionRequest) ProtoMessage

func (*GetSessionRequest) ProtoMessage()

func (*GetSessionRequest) ProtoReflect

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

func (*GetSessionRequest) Reset

func (x *GetSessionRequest) Reset()

func (*GetSessionRequest) String

func (x *GetSessionRequest) String() string

type GetSessionResponse

type GetSessionResponse struct {

	// The requested session.
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSessionResponse) Descriptor deprecated

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

Deprecated: Use GetSessionResponse.ProtoReflect.Descriptor instead.

func (*GetSessionResponse) GetSession

func (x *GetSessionResponse) GetSession() *Session

func (*GetSessionResponse) ProtoMessage

func (*GetSessionResponse) ProtoMessage()

func (*GetSessionResponse) ProtoReflect

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

func (*GetSessionResponse) Reset

func (x *GetSessionResponse) Reset()

func (*GetSessionResponse) String

func (x *GetSessionResponse) String() string

type Kick

type Kick struct {

	// The unique identifier of the kick.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The kicked player.
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The reason of the ban.
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// The unix timestamp of the kick.
	KickedAt uint64 `protobuf:"varint,4,opt,name=kicked_at,json=kickedAt,proto3" json:"kicked_at,omitempty"`
	// The initiator of the kick.
	Executor *Executor `protobuf:"bytes,5,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

func (*Kick) Descriptor deprecated

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

Deprecated: Use Kick.ProtoReflect.Descriptor instead.

func (*Kick) GetExecutor

func (x *Kick) GetExecutor() *Executor

func (*Kick) GetId

func (x *Kick) GetId() string

func (*Kick) GetKickedAt

func (x *Kick) GetKickedAt() uint64

func (*Kick) GetPlayerId

func (x *Kick) GetPlayerId() string

func (*Kick) GetReason

func (x *Kick) GetReason() string

func (*Kick) ProtoMessage

func (*Kick) ProtoMessage()

func (*Kick) ProtoReflect

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

func (*Kick) Reset

func (x *Kick) Reset()

func (*Kick) String

func (x *Kick) String() string

type KickPlayerRequest

type KickPlayerRequest struct {

	// The player to kick.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The reason for the kick.
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// The initiator of the ban.
	Executor *Executor `protobuf:"bytes,3,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

func (*KickPlayerRequest) Descriptor deprecated

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

Deprecated: Use KickPlayerRequest.ProtoReflect.Descriptor instead.

func (*KickPlayerRequest) GetExecutor

func (x *KickPlayerRequest) GetExecutor() *Executor

func (*KickPlayerRequest) GetPlayerId

func (x *KickPlayerRequest) GetPlayerId() string

func (*KickPlayerRequest) GetReason

func (x *KickPlayerRequest) GetReason() string

func (*KickPlayerRequest) ProtoMessage

func (*KickPlayerRequest) ProtoMessage()

func (*KickPlayerRequest) ProtoReflect

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

func (*KickPlayerRequest) Reset

func (x *KickPlayerRequest) Reset()

func (*KickPlayerRequest) String

func (x *KickPlayerRequest) String() string

type KickPlayerResponse

type KickPlayerResponse struct {

	// The resulting kick.
	Kick *Kick `protobuf:"bytes,1,opt,name=kick,proto3" json:"kick,omitempty"`
	// contains filtered or unexported fields
}

func (*KickPlayerResponse) Descriptor deprecated

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

Deprecated: Use KickPlayerResponse.ProtoReflect.Descriptor instead.

func (*KickPlayerResponse) GetKick

func (x *KickPlayerResponse) GetKick() *Kick

func (*KickPlayerResponse) ProtoMessage

func (*KickPlayerResponse) ProtoMessage()

func (*KickPlayerResponse) ProtoReflect

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

func (*KickPlayerResponse) Reset

func (x *KickPlayerResponse) Reset()

func (*KickPlayerResponse) String

func (x *KickPlayerResponse) String() string

type RevokeBanRequest

type RevokeBanRequest struct {

	// The unique identifier of the ban.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The initiator of the ban.
	Executor *Executor `protobuf:"bytes,2,opt,name=executor,proto3" json:"executor,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeBanRequest) Descriptor deprecated

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

Deprecated: Use RevokeBanRequest.ProtoReflect.Descriptor instead.

func (*RevokeBanRequest) GetExecutor

func (x *RevokeBanRequest) GetExecutor() *Executor

func (*RevokeBanRequest) GetId

func (x *RevokeBanRequest) GetId() string

func (*RevokeBanRequest) ProtoMessage

func (*RevokeBanRequest) ProtoMessage()

func (*RevokeBanRequest) ProtoReflect

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

func (*RevokeBanRequest) Reset

func (x *RevokeBanRequest) Reset()

func (*RevokeBanRequest) String

func (x *RevokeBanRequest) String() string

type RevokeBanResponse

type RevokeBanResponse struct {

	// The revoked ban.
	Ban *Ban `protobuf:"bytes,1,opt,name=ban,proto3" json:"ban,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeBanResponse) Descriptor deprecated

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

Deprecated: Use RevokeBanResponse.ProtoReflect.Descriptor instead.

func (*RevokeBanResponse) GetBan

func (x *RevokeBanResponse) GetBan() *Ban

func (*RevokeBanResponse) ProtoMessage

func (*RevokeBanResponse) ProtoMessage()

func (*RevokeBanResponse) ProtoReflect

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

func (*RevokeBanResponse) Reset

func (x *RevokeBanResponse) Reset()

func (*RevokeBanResponse) String

func (x *RevokeBanResponse) String() string

type RevokeBlacklistPlayerRequest

type RevokeBlacklistPlayerRequest struct {

	// The player to revoke the blacklist for.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeBlacklistPlayerRequest) Descriptor deprecated

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

Deprecated: Use RevokeBlacklistPlayerRequest.ProtoReflect.Descriptor instead.

func (*RevokeBlacklistPlayerRequest) GetPlayerId

func (x *RevokeBlacklistPlayerRequest) GetPlayerId() string

func (*RevokeBlacklistPlayerRequest) ProtoMessage

func (*RevokeBlacklistPlayerRequest) ProtoMessage()

func (*RevokeBlacklistPlayerRequest) ProtoReflect

func (*RevokeBlacklistPlayerRequest) Reset

func (x *RevokeBlacklistPlayerRequest) Reset()

func (*RevokeBlacklistPlayerRequest) String

type RevokeBlacklistPlayerResponse

type RevokeBlacklistPlayerResponse struct {

	// The player the blacklist entry has been revoked for.
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeBlacklistPlayerResponse) Descriptor deprecated

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

Deprecated: Use RevokeBlacklistPlayerResponse.ProtoReflect.Descriptor instead.

func (*RevokeBlacklistPlayerResponse) GetPlayerId

func (x *RevokeBlacklistPlayerResponse) GetPlayerId() string

func (*RevokeBlacklistPlayerResponse) ProtoMessage

func (*RevokeBlacklistPlayerResponse) ProtoMessage()

func (*RevokeBlacklistPlayerResponse) ProtoReflect

func (*RevokeBlacklistPlayerResponse) Reset

func (x *RevokeBlacklistPlayerResponse) Reset()

func (*RevokeBlacklistPlayerResponse) String

type Session

type Session struct {

	// Unique id of the session.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The player this session belongs to.
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// The current (or last) state of this session.
	//
	// Types that are assignable to State:
	//	*Session_Unknown
	//	*Session_Initialized
	//	*Session_Stopped
	State isSession_State `protobuf_oneof:"state"`
	Ip    string          `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
	// The unix timestamp of when the session started.
	StartedAt uint64 `protobuf:"varint,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// The unix timestamp of when the session stopped.
	StoppedAt *uint64 `protobuf:"varint,8,opt,name=stopped_at,json=stoppedAt,proto3,oneof" json:"stopped_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetId

func (x *Session) GetId() string

func (*Session) GetInitialized

func (x *Session) GetInitialized() *StateInitialized

func (*Session) GetIp

func (x *Session) GetIp() string

func (*Session) GetPlayerId

func (x *Session) GetPlayerId() string

func (*Session) GetStartedAt added in v0.15.18

func (x *Session) GetStartedAt() uint64

func (*Session) GetState

func (m *Session) GetState() isSession_State

func (*Session) GetStopped

func (x *Session) GetStopped() *StateStopped

func (*Session) GetStoppedAt added in v0.15.18

func (x *Session) GetStoppedAt() uint64

func (*Session) GetUnknown

func (x *Session) GetUnknown() *StateUnknown

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionIdentifier

type SessionIdentifier struct {

	// Types that are assignable to Identifier:
	//	*SessionIdentifier_SessionId
	//	*SessionIdentifier_PlayerId
	Identifier isSessionIdentifier_Identifier `protobuf_oneof:"identifier"`
	// contains filtered or unexported fields
}

func (*SessionIdentifier) Descriptor deprecated

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

Deprecated: Use SessionIdentifier.ProtoReflect.Descriptor instead.

func (*SessionIdentifier) GetIdentifier

func (m *SessionIdentifier) GetIdentifier() isSessionIdentifier_Identifier

func (*SessionIdentifier) GetPlayerId

func (x *SessionIdentifier) GetPlayerId() string

func (*SessionIdentifier) GetSessionId

func (x *SessionIdentifier) GetSessionId() string

func (*SessionIdentifier) ProtoMessage

func (*SessionIdentifier) ProtoMessage()

func (*SessionIdentifier) ProtoReflect

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

func (*SessionIdentifier) Reset

func (x *SessionIdentifier) Reset()

func (*SessionIdentifier) String

func (x *SessionIdentifier) String() string

type SessionIdentifier_PlayerId

type SessionIdentifier_PlayerId struct {
	// The player to receive the session for.
	PlayerId string `protobuf:"bytes,2,opt,name=player_id,json=playerId,proto3,oneof"`
}

type SessionIdentifier_SessionId

type SessionIdentifier_SessionId struct {
	// The id of the session to receive.
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3,oneof"`
}

type SessionServiceClient

type SessionServiceClient interface {
	// creates a new session
	CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionResponse, error)
	// stops and removes a session
	StopSession(ctx context.Context, in *StopSessionRequest, opts ...grpc.CallOption) (*StopSessionResponse, error)
	// retrieves information about a existing session
	GetSession(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error)
	// kicks the given player
	KickPlayer(ctx context.Context, in *KickPlayerRequest, opts ...grpc.CallOption) (*KickPlayerResponse, error)
	// bans the given player
	BanPlayer(ctx context.Context, in *BanPlayerRequest, opts ...grpc.CallOption) (*BanPlayerResponse, error)
	// retrieves all bans associated to a player
	GetBans(ctx context.Context, in *GetBansRequest, opts ...grpc.CallOption) (*GetBansResponse, error)
	// revoke a ban
	RevokeBan(ctx context.Context, in *RevokeBanRequest, opts ...grpc.CallOption) (*RevokeBanResponse, error)
	// enables or disabled maintenance mode
	SetMaintenanceMode(ctx context.Context, in *SetMaintenanceModeRequest, opts ...grpc.CallOption) (*SetMaintenanceModeResponse, error)
	// blacklists a player
	BlacklistPlayer(ctx context.Context, in *BlacklistPlayerRequest, opts ...grpc.CallOption) (*BlacklistPlayerResponse, error)
	// revokes the blacklist entry of a player
	RevokeBlacklistPlayer(ctx context.Context, in *RevokeBlacklistPlayerRequest, opts ...grpc.CallOption) (*RevokeBlacklistPlayerResponse, error)
}

SessionServiceClient is the client API for SessionService 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 SessionServiceServer

type SessionServiceServer interface {
	// creates a new session
	CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error)
	// stops and removes a session
	StopSession(context.Context, *StopSessionRequest) (*StopSessionResponse, error)
	// retrieves information about a existing session
	GetSession(context.Context, *GetSessionRequest) (*GetSessionResponse, error)
	// kicks the given player
	KickPlayer(context.Context, *KickPlayerRequest) (*KickPlayerResponse, error)
	// bans the given player
	BanPlayer(context.Context, *BanPlayerRequest) (*BanPlayerResponse, error)
	// retrieves all bans associated to a player
	GetBans(context.Context, *GetBansRequest) (*GetBansResponse, error)
	// revoke a ban
	RevokeBan(context.Context, *RevokeBanRequest) (*RevokeBanResponse, error)
	// enables or disabled maintenance mode
	SetMaintenanceMode(context.Context, *SetMaintenanceModeRequest) (*SetMaintenanceModeResponse, error)
	// blacklists a player
	BlacklistPlayer(context.Context, *BlacklistPlayerRequest) (*BlacklistPlayerResponse, error)
	// revokes the blacklist entry of a player
	RevokeBlacklistPlayer(context.Context, *RevokeBlacklistPlayerRequest) (*RevokeBlacklistPlayerResponse, error)
}

SessionServiceServer is the server API for SessionService service. All implementations should embed UnimplementedSessionServiceServer for forward compatibility

type Session_Initialized

type Session_Initialized struct {
	Initialized *StateInitialized `protobuf:"bytes,4,opt,name=initialized,proto3,oneof"`
}

type Session_Stopped

type Session_Stopped struct {
	Stopped *StateStopped `protobuf:"bytes,5,opt,name=stopped,proto3,oneof"`
}

type Session_Unknown

type Session_Unknown struct {
	Unknown *StateUnknown `protobuf:"bytes,3,opt,name=unknown,proto3,oneof"`
}

type SetMaintenanceModeRequest

type SetMaintenanceModeRequest struct {

	// The session types affected by the maintenance mode.
	Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// Whether the maintenance mode should be enabled for the given types.
	Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMaintenanceModeRequest) Descriptor deprecated

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

Deprecated: Use SetMaintenanceModeRequest.ProtoReflect.Descriptor instead.

func (*SetMaintenanceModeRequest) GetEnabled

func (x *SetMaintenanceModeRequest) GetEnabled() bool

func (*SetMaintenanceModeRequest) GetTypes

func (x *SetMaintenanceModeRequest) GetTypes() []string

func (*SetMaintenanceModeRequest) ProtoMessage

func (*SetMaintenanceModeRequest) ProtoMessage()

func (*SetMaintenanceModeRequest) ProtoReflect

func (*SetMaintenanceModeRequest) Reset

func (x *SetMaintenanceModeRequest) Reset()

func (*SetMaintenanceModeRequest) String

func (x *SetMaintenanceModeRequest) String() string

type SetMaintenanceModeResponse

type SetMaintenanceModeResponse struct {

	// The session types affected by the change.
	Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMaintenanceModeResponse) Descriptor deprecated

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

Deprecated: Use SetMaintenanceModeResponse.ProtoReflect.Descriptor instead.

func (*SetMaintenanceModeResponse) GetTypes

func (x *SetMaintenanceModeResponse) GetTypes() []string

func (*SetMaintenanceModeResponse) ProtoMessage

func (*SetMaintenanceModeResponse) ProtoMessage()

func (*SetMaintenanceModeResponse) ProtoReflect

func (*SetMaintenanceModeResponse) Reset

func (x *SetMaintenanceModeResponse) Reset()

func (*SetMaintenanceModeResponse) String

func (x *SetMaintenanceModeResponse) String() string

type StateInitialized

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

The session has successfully been initialized.

func (*StateInitialized) Descriptor deprecated

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

Deprecated: Use StateInitialized.ProtoReflect.Descriptor instead.

func (*StateInitialized) ProtoMessage

func (*StateInitialized) ProtoMessage()

func (*StateInitialized) ProtoReflect

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

func (*StateInitialized) Reset

func (x *StateInitialized) Reset()

func (*StateInitialized) String

func (x *StateInitialized) String() string

type StateStopped

type StateStopped struct {

	// The reason why the session has been stopped.
	//
	// Types that are assignable to Cause:
	//	*StateStopped_Unknown
	//	*StateStopped_Disconnected
	//	*StateStopped_Maintenance
	//	*StateStopped_Error
	//	*StateStopped_Kicked
	//	*StateStopped_Banned
	//	*StateStopped_Blacklisted
	//	*StateStopped_Custom
	Cause isStateStopped_Cause `protobuf_oneof:"cause"`
	// contains filtered or unexported fields
}

The session has been stopped.

func (*StateStopped) Descriptor deprecated

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

Deprecated: Use StateStopped.ProtoReflect.Descriptor instead.

func (*StateStopped) GetBanned

func (x *StateStopped) GetBanned() *StopCauseBanned

func (*StateStopped) GetBlacklisted

func (x *StateStopped) GetBlacklisted() *StopCauseBlacklisted

func (*StateStopped) GetCause

func (m *StateStopped) GetCause() isStateStopped_Cause

func (*StateStopped) GetCustom

func (x *StateStopped) GetCustom() *StopCauseCustom

func (*StateStopped) GetDisconnected

func (x *StateStopped) GetDisconnected() *StopCauseDisconnected

func (*StateStopped) GetError

func (x *StateStopped) GetError() *StopCauseError

func (*StateStopped) GetKicked

func (x *StateStopped) GetKicked() *StopCauseKicked

func (*StateStopped) GetMaintenance

func (x *StateStopped) GetMaintenance() *StopCauseMaintenance

func (*StateStopped) GetUnknown

func (x *StateStopped) GetUnknown() *StopCauseUnknown

func (*StateStopped) ProtoMessage

func (*StateStopped) ProtoMessage()

func (*StateStopped) ProtoReflect

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

func (*StateStopped) Reset

func (x *StateStopped) Reset()

func (*StateStopped) String

func (x *StateStopped) String() string

type StateStopped_Banned

type StateStopped_Banned struct {
	Banned *StopCauseBanned `protobuf:"bytes,6,opt,name=banned,proto3,oneof"`
}

type StateStopped_Blacklisted

type StateStopped_Blacklisted struct {
	Blacklisted *StopCauseBlacklisted `protobuf:"bytes,7,opt,name=blacklisted,proto3,oneof"`
}

type StateStopped_Custom

type StateStopped_Custom struct {
	Custom *StopCauseCustom `protobuf:"bytes,8,opt,name=custom,proto3,oneof"`
}

type StateStopped_Disconnected

type StateStopped_Disconnected struct {
	Disconnected *StopCauseDisconnected `protobuf:"bytes,2,opt,name=disconnected,proto3,oneof"`
}

type StateStopped_Error

type StateStopped_Error struct {
	Error *StopCauseError `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
}

type StateStopped_Kicked

type StateStopped_Kicked struct {
	Kicked *StopCauseKicked `protobuf:"bytes,5,opt,name=kicked,proto3,oneof"`
}

type StateStopped_Maintenance

type StateStopped_Maintenance struct {
	Maintenance *StopCauseMaintenance `protobuf:"bytes,3,opt,name=maintenance,proto3,oneof"`
}

type StateStopped_Unknown

type StateStopped_Unknown struct {
	Unknown *StopCauseUnknown `protobuf:"bytes,1,opt,name=unknown,proto3,oneof"`
}

type StateUnknown

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

The session is in an unknown state.

func (*StateUnknown) Descriptor deprecated

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

Deprecated: Use StateUnknown.ProtoReflect.Descriptor instead.

func (*StateUnknown) ProtoMessage

func (*StateUnknown) ProtoMessage()

func (*StateUnknown) ProtoReflect

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

func (*StateUnknown) Reset

func (x *StateUnknown) Reset()

func (*StateUnknown) String

func (x *StateUnknown) String() string

type StopCauseBanned

type StopCauseBanned struct {

	// The underlying ban.
	Ban *Ban `protobuf:"bytes,1,opt,name=ban,proto3" json:"ban,omitempty"`
	// contains filtered or unexported fields
}

The session stopped because the player is/has been banned.

func (*StopCauseBanned) Descriptor deprecated

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

Deprecated: Use StopCauseBanned.ProtoReflect.Descriptor instead.

func (*StopCauseBanned) GetBan

func (x *StopCauseBanned) GetBan() *Ban

func (*StopCauseBanned) ProtoMessage

func (*StopCauseBanned) ProtoMessage()

func (*StopCauseBanned) ProtoReflect

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

func (*StopCauseBanned) Reset

func (x *StopCauseBanned) Reset()

func (*StopCauseBanned) String

func (x *StopCauseBanned) String() string

type StopCauseBlacklisted

type StopCauseBlacklisted struct {

	// The blacklist entry.
	Entry *BlacklistEntry `protobuf:"bytes,1,opt,name=entry,proto3,oneof" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

The session stopped because the player is/has been blacklisted.

func (*StopCauseBlacklisted) Descriptor deprecated

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

Deprecated: Use StopCauseBlacklisted.ProtoReflect.Descriptor instead.

func (*StopCauseBlacklisted) GetEntry

func (x *StopCauseBlacklisted) GetEntry() *BlacklistEntry

func (*StopCauseBlacklisted) ProtoMessage

func (*StopCauseBlacklisted) ProtoMessage()

func (*StopCauseBlacklisted) ProtoReflect

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

func (*StopCauseBlacklisted) Reset

func (x *StopCauseBlacklisted) Reset()

func (*StopCauseBlacklisted) String

func (x *StopCauseBlacklisted) String() string

type StopCauseCustom

type StopCauseCustom struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The session stopped because of maintenance.

func (*StopCauseCustom) Descriptor deprecated

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

Deprecated: Use StopCauseCustom.ProtoReflect.Descriptor instead.

func (*StopCauseCustom) GetMessage

func (x *StopCauseCustom) GetMessage() string

func (*StopCauseCustom) ProtoMessage

func (*StopCauseCustom) ProtoMessage()

func (*StopCauseCustom) ProtoReflect

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

func (*StopCauseCustom) Reset

func (x *StopCauseCustom) Reset()

func (*StopCauseCustom) String

func (x *StopCauseCustom) String() string

type StopCauseDisconnected

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

The session stopped because the player disconnected or has been disconnected.

func (*StopCauseDisconnected) Descriptor deprecated

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

Deprecated: Use StopCauseDisconnected.ProtoReflect.Descriptor instead.

func (*StopCauseDisconnected) ProtoMessage

func (*StopCauseDisconnected) ProtoMessage()

func (*StopCauseDisconnected) ProtoReflect

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

func (*StopCauseDisconnected) Reset

func (x *StopCauseDisconnected) Reset()

func (*StopCauseDisconnected) String

func (x *StopCauseDisconnected) String() string

type StopCauseError

type StopCauseError struct {

	// The error message.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The session stopped due to an error.

func (*StopCauseError) Descriptor deprecated

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

Deprecated: Use StopCauseError.ProtoReflect.Descriptor instead.

func (*StopCauseError) GetMessage

func (x *StopCauseError) GetMessage() string

func (*StopCauseError) ProtoMessage

func (*StopCauseError) ProtoMessage()

func (*StopCauseError) ProtoReflect

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

func (*StopCauseError) Reset

func (x *StopCauseError) Reset()

func (*StopCauseError) String

func (x *StopCauseError) String() string

type StopCauseKicked

type StopCauseKicked struct {

	// The underlying kick.
	Kick *Kick `protobuf:"bytes,1,opt,name=kick,proto3" json:"kick,omitempty"`
	// contains filtered or unexported fields
}

The session stopped because the player has been kicked.

func (*StopCauseKicked) Descriptor deprecated

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

Deprecated: Use StopCauseKicked.ProtoReflect.Descriptor instead.

func (*StopCauseKicked) GetKick

func (x *StopCauseKicked) GetKick() *Kick

func (*StopCauseKicked) ProtoMessage

func (*StopCauseKicked) ProtoMessage()

func (*StopCauseKicked) ProtoReflect

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

func (*StopCauseKicked) Reset

func (x *StopCauseKicked) Reset()

func (*StopCauseKicked) String

func (x *StopCauseKicked) String() string

type StopCauseMaintenance

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

The session stopped because of maintenance.

func (*StopCauseMaintenance) Descriptor deprecated

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

Deprecated: Use StopCauseMaintenance.ProtoReflect.Descriptor instead.

func (*StopCauseMaintenance) ProtoMessage

func (*StopCauseMaintenance) ProtoMessage()

func (*StopCauseMaintenance) ProtoReflect

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

func (*StopCauseMaintenance) Reset

func (x *StopCauseMaintenance) Reset()

func (*StopCauseMaintenance) String

func (x *StopCauseMaintenance) String() string

type StopCauseUnknown

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

The session has stopped because of unknown reasons.

func (*StopCauseUnknown) Descriptor deprecated

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

Deprecated: Use StopCauseUnknown.ProtoReflect.Descriptor instead.

func (*StopCauseUnknown) ProtoMessage

func (*StopCauseUnknown) ProtoMessage()

func (*StopCauseUnknown) ProtoReflect

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

func (*StopCauseUnknown) Reset

func (x *StopCauseUnknown) Reset()

func (*StopCauseUnknown) String

func (x *StopCauseUnknown) String() string

type StopSessionRequest

type StopSessionRequest struct {
	Identifier *SessionIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// The reason why the session is being stopped.
	//
	// Types that are assignable to Cause:
	//	*StopSessionRequest_Unknown
	//	*StopSessionRequest_Disconnected
	//	*StopSessionRequest_Error
	//	*StopSessionRequest_Custom
	Cause isStopSessionRequest_Cause `protobuf_oneof:"cause"`
	// contains filtered or unexported fields
}

func (*StopSessionRequest) Descriptor deprecated

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

Deprecated: Use StopSessionRequest.ProtoReflect.Descriptor instead.

func (*StopSessionRequest) GetCause

func (m *StopSessionRequest) GetCause() isStopSessionRequest_Cause

func (*StopSessionRequest) GetCustom

func (x *StopSessionRequest) GetCustom() *StopCauseCustom

func (*StopSessionRequest) GetDisconnected

func (x *StopSessionRequest) GetDisconnected() *StopCauseDisconnected

func (*StopSessionRequest) GetError

func (x *StopSessionRequest) GetError() *StopCauseError

func (*StopSessionRequest) GetIdentifier

func (x *StopSessionRequest) GetIdentifier() *SessionIdentifier

func (*StopSessionRequest) GetUnknown

func (x *StopSessionRequest) GetUnknown() *StopCauseUnknown

func (*StopSessionRequest) ProtoMessage

func (*StopSessionRequest) ProtoMessage()

func (*StopSessionRequest) ProtoReflect

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

func (*StopSessionRequest) Reset

func (x *StopSessionRequest) Reset()

func (*StopSessionRequest) String

func (x *StopSessionRequest) String() string

type StopSessionRequest_Custom

type StopSessionRequest_Custom struct {
	Custom *StopCauseCustom `protobuf:"bytes,5,opt,name=custom,proto3,oneof"`
}

type StopSessionRequest_Disconnected

type StopSessionRequest_Disconnected struct {
	Disconnected *StopCauseDisconnected `protobuf:"bytes,3,opt,name=disconnected,proto3,oneof"`
}

type StopSessionRequest_Error

type StopSessionRequest_Error struct {
	Error *StopCauseError `protobuf:"bytes,4,opt,name=error,proto3,oneof"`
}

type StopSessionRequest_Unknown

type StopSessionRequest_Unknown struct {
	Unknown *StopCauseUnknown `protobuf:"bytes,2,opt,name=unknown,proto3,oneof"`
}

type StopSessionResponse

type StopSessionResponse struct {

	// The session that has been stopped (if not already).
	Session *Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	// contains filtered or unexported fields
}

func (*StopSessionResponse) Descriptor deprecated

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

Deprecated: Use StopSessionResponse.ProtoReflect.Descriptor instead.

func (*StopSessionResponse) GetSession

func (x *StopSessionResponse) GetSession() *Session

func (*StopSessionResponse) ProtoMessage

func (*StopSessionResponse) ProtoMessage()

func (*StopSessionResponse) ProtoReflect

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

func (*StopSessionResponse) Reset

func (x *StopSessionResponse) Reset()

func (*StopSessionResponse) String

func (x *StopSessionResponse) String() string

type UnimplementedSessionServiceServer

type UnimplementedSessionServiceServer struct {
}

UnimplementedSessionServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSessionServiceServer) BanPlayer

func (UnimplementedSessionServiceServer) BlacklistPlayer

func (UnimplementedSessionServiceServer) CreateSession

func (UnimplementedSessionServiceServer) GetBans

func (UnimplementedSessionServiceServer) GetSession

func (UnimplementedSessionServiceServer) KickPlayer

func (UnimplementedSessionServiceServer) RevokeBan

func (UnimplementedSessionServiceServer) SetMaintenanceMode

func (UnimplementedSessionServiceServer) StopSession

type UnsafeSessionServiceServer

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

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

Jump to

Keyboard shortcuts

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