playertracker

package
v0.0.0-...-0523e7d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_player_tracker_grpc_proto protoreflect.FileDescriptor
View Source
var PlayerTracker_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "emortal.grpc.PlayerTracker",
	HandlerType: (*PlayerTrackerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPlayerServer",
			Handler:    _PlayerTracker_GetPlayerServer_Handler,
		},
		{
			MethodName: "GetPlayerServers",
			Handler:    _PlayerTracker_GetPlayerServers_Handler,
		},
		{
			MethodName: "GetServerPlayers",
			Handler:    _PlayerTracker_GetServerPlayers_Handler,
		},
		{
			MethodName: "GetServerPlayerCount",
			Handler:    _PlayerTracker_GetServerPlayerCount_Handler,
		},
		{
			MethodName: "GetServerTypePlayerCount",
			Handler:    _PlayerTracker_GetServerTypePlayerCount_Handler,
		},
		{
			MethodName: "GetServerTypesPlayerCount",
			Handler:    _PlayerTracker_GetServerTypesPlayerCount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "player_tracker/grpc.proto",
}

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

Functions

func RegisterPlayerTrackerServer

func RegisterPlayerTrackerServer(s grpc.ServiceRegistrar, srv PlayerTrackerServer)

Types

type GetPlayerServerRequest

type GetPlayerServerRequest struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayerServerRequest) Descriptor deprecated

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

Deprecated: Use GetPlayerServerRequest.ProtoReflect.Descriptor instead.

func (*GetPlayerServerRequest) GetPlayerId

func (x *GetPlayerServerRequest) GetPlayerId() string

func (*GetPlayerServerRequest) ProtoMessage

func (*GetPlayerServerRequest) ProtoMessage()

func (*GetPlayerServerRequest) ProtoReflect

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

func (*GetPlayerServerRequest) Reset

func (x *GetPlayerServerRequest) Reset()

func (*GetPlayerServerRequest) String

func (x *GetPlayerServerRequest) String() string

type GetPlayerServerResponse

type GetPlayerServerResponse struct {
	Server *OnlineServer `protobuf:"bytes,1,opt,name=server,proto3,oneof" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayerServerResponse) Descriptor deprecated

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

Deprecated: Use GetPlayerServerResponse.ProtoReflect.Descriptor instead.

func (*GetPlayerServerResponse) GetServer

func (x *GetPlayerServerResponse) GetServer() *OnlineServer

func (*GetPlayerServerResponse) ProtoMessage

func (*GetPlayerServerResponse) ProtoMessage()

func (*GetPlayerServerResponse) ProtoReflect

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

func (*GetPlayerServerResponse) Reset

func (x *GetPlayerServerResponse) Reset()

func (*GetPlayerServerResponse) String

func (x *GetPlayerServerResponse) String() string

type GetPlayerServersRequest

type GetPlayerServersRequest struct {
	PlayerIds []string `protobuf:"bytes,1,rep,name=player_ids,json=playerIds,proto3" json:"player_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPlayerServersRequest) Descriptor deprecated

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

Deprecated: Use GetPlayerServersRequest.ProtoReflect.Descriptor instead.

func (*GetPlayerServersRequest) GetPlayerIds

func (x *GetPlayerServersRequest) GetPlayerIds() []string

func (*GetPlayerServersRequest) ProtoMessage

func (*GetPlayerServersRequest) ProtoMessage()

func (*GetPlayerServersRequest) ProtoReflect

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

func (*GetPlayerServersRequest) Reset

func (x *GetPlayerServersRequest) Reset()

func (*GetPlayerServersRequest) String

func (x *GetPlayerServersRequest) String() string

type GetPlayerServersResponse

type GetPlayerServersResponse struct {
	PlayerServers map[string]*OnlineServer `` // Is they are not online, they will not be included in the map.
	/* 188-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPlayerServersResponse) Descriptor deprecated

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

Deprecated: Use GetPlayerServersResponse.ProtoReflect.Descriptor instead.

func (*GetPlayerServersResponse) GetPlayerServers

func (x *GetPlayerServersResponse) GetPlayerServers() map[string]*OnlineServer

func (*GetPlayerServersResponse) ProtoMessage

func (*GetPlayerServersResponse) ProtoMessage()

func (*GetPlayerServersResponse) ProtoReflect

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

func (*GetPlayerServersResponse) Reset

func (x *GetPlayerServersResponse) Reset()

func (*GetPlayerServersResponse) String

func (x *GetPlayerServersResponse) String() string

type GetServerPlayerCountResponse

type GetServerPlayerCountResponse struct {
	PlayerCount uint32 `protobuf:"varint,1,opt,name=player_count,json=playerCount,proto3" json:"player_count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerPlayerCountResponse) Descriptor deprecated

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

Deprecated: Use GetServerPlayerCountResponse.ProtoReflect.Descriptor instead.

func (*GetServerPlayerCountResponse) GetPlayerCount

func (x *GetServerPlayerCountResponse) GetPlayerCount() uint32

func (*GetServerPlayerCountResponse) ProtoMessage

func (*GetServerPlayerCountResponse) ProtoMessage()

func (*GetServerPlayerCountResponse) ProtoReflect

func (*GetServerPlayerCountResponse) Reset

func (x *GetServerPlayerCountResponse) Reset()

func (*GetServerPlayerCountResponse) String

type GetServerPlayersRequest

type GetServerPlayersRequest struct {
	ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerPlayersRequest) Descriptor deprecated

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

Deprecated: Use GetServerPlayersRequest.ProtoReflect.Descriptor instead.

func (*GetServerPlayersRequest) GetServerId

func (x *GetServerPlayersRequest) GetServerId() string

func (*GetServerPlayersRequest) ProtoMessage

func (*GetServerPlayersRequest) ProtoMessage()

func (*GetServerPlayersRequest) ProtoReflect

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

func (*GetServerPlayersRequest) Reset

func (x *GetServerPlayersRequest) Reset()

func (*GetServerPlayersRequest) String

func (x *GetServerPlayersRequest) String() string

type GetServerPlayersResponse

type GetServerPlayersResponse struct {
	OnlinePlayers []*OnlinePlayer `protobuf:"bytes,1,rep,name=online_players,json=onlinePlayers,proto3" json:"online_players,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerPlayersResponse) Descriptor deprecated

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

Deprecated: Use GetServerPlayersResponse.ProtoReflect.Descriptor instead.

func (*GetServerPlayersResponse) GetOnlinePlayers

func (x *GetServerPlayersResponse) GetOnlinePlayers() []*OnlinePlayer

func (*GetServerPlayersResponse) ProtoMessage

func (*GetServerPlayersResponse) ProtoMessage()

func (*GetServerPlayersResponse) ProtoReflect

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

func (*GetServerPlayersResponse) Reset

func (x *GetServerPlayersResponse) Reset()

func (*GetServerPlayersResponse) String

func (x *GetServerPlayersResponse) String() string

type GetServerTypePlayerCountRequest

type GetServerTypePlayerCountRequest struct {
	ServerType common.ServerType `protobuf:"varint,1,opt,name=server_type,json=serverType,proto3,enum=emortal.model.ServerType" json:"server_type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerTypePlayerCountRequest) Descriptor deprecated

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

Deprecated: Use GetServerTypePlayerCountRequest.ProtoReflect.Descriptor instead.

func (*GetServerTypePlayerCountRequest) GetServerType

func (*GetServerTypePlayerCountRequest) ProtoMessage

func (*GetServerTypePlayerCountRequest) ProtoMessage()

func (*GetServerTypePlayerCountRequest) ProtoReflect

func (*GetServerTypePlayerCountRequest) Reset

func (*GetServerTypePlayerCountRequest) String

type GetServerTypesPlayerCountRequest

type GetServerTypesPlayerCountRequest struct {
	ServerTypes []common.ServerType `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetServerTypesPlayerCountRequest) Descriptor deprecated

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

Deprecated: Use GetServerTypesPlayerCountRequest.ProtoReflect.Descriptor instead.

func (*GetServerTypesPlayerCountRequest) GetServerTypes

func (x *GetServerTypesPlayerCountRequest) GetServerTypes() []common.ServerType

func (*GetServerTypesPlayerCountRequest) ProtoMessage

func (*GetServerTypesPlayerCountRequest) ProtoMessage()

func (*GetServerTypesPlayerCountRequest) ProtoReflect

func (*GetServerTypesPlayerCountRequest) Reset

func (*GetServerTypesPlayerCountRequest) String

type OnlinePlayer

type OnlinePlayer struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*OnlinePlayer) Descriptor deprecated

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

Deprecated: Use OnlinePlayer.ProtoReflect.Descriptor instead.

func (*OnlinePlayer) GetPlayerId

func (x *OnlinePlayer) GetPlayerId() string

func (*OnlinePlayer) GetUsername

func (x *OnlinePlayer) GetUsername() string

func (*OnlinePlayer) ProtoMessage

func (*OnlinePlayer) ProtoMessage()

func (*OnlinePlayer) ProtoReflect

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

func (*OnlinePlayer) Reset

func (x *OnlinePlayer) Reset()

func (*OnlinePlayer) String

func (x *OnlinePlayer) String() string

type OnlineServer

type OnlineServer struct {
	ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	ProxyId  string `protobuf:"bytes,2,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
	// contains filtered or unexported fields
}

Represents a server a player is online on, proxy and regular.

func (*OnlineServer) Descriptor deprecated

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

Deprecated: Use OnlineServer.ProtoReflect.Descriptor instead.

func (*OnlineServer) GetProxyId

func (x *OnlineServer) GetProxyId() string

func (*OnlineServer) GetServerId

func (x *OnlineServer) GetServerId() string

func (*OnlineServer) ProtoMessage

func (*OnlineServer) ProtoMessage()

func (*OnlineServer) ProtoReflect

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

func (*OnlineServer) Reset

func (x *OnlineServer) Reset()

func (*OnlineServer) String

func (x *OnlineServer) String() string

type PlayerTrackerClient

type PlayerTrackerClient interface {
	GetPlayerServer(ctx context.Context, in *GetPlayerServerRequest, opts ...grpc.CallOption) (*GetPlayerServerResponse, error)
	GetPlayerServers(ctx context.Context, in *GetPlayerServersRequest, opts ...grpc.CallOption) (*GetPlayerServersResponse, error)
	GetServerPlayers(ctx context.Context, in *GetServerPlayersRequest, opts ...grpc.CallOption) (*GetServerPlayersResponse, error)
	GetServerPlayerCount(ctx context.Context, in *GetServerPlayersRequest, opts ...grpc.CallOption) (*GetServerPlayerCountResponse, error)
	GetServerTypePlayerCount(ctx context.Context, in *GetServerTypePlayerCountRequest, opts ...grpc.CallOption) (*ServerTypePlayerCountResponse, error)
	GetServerTypesPlayerCount(ctx context.Context, in *GetServerTypesPlayerCountRequest, opts ...grpc.CallOption) (*ServerTypesPlayerCountResponse, error)
}

PlayerTrackerClient is the client API for PlayerTracker 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 PlayerTrackerServer

PlayerTrackerServer is the server API for PlayerTracker service. All implementations must embed UnimplementedPlayerTrackerServer for forward compatibility

type ServerTypePlayerCountResponse

type ServerTypePlayerCountResponse struct {
	PlayerCount uint32                 `protobuf:"varint,1,opt,name=player_count,json=playerCount,proto3" json:"player_count,omitempty"`
	LastUpdated *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerTypePlayerCountResponse) Descriptor deprecated

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

Deprecated: Use ServerTypePlayerCountResponse.ProtoReflect.Descriptor instead.

func (*ServerTypePlayerCountResponse) GetLastUpdated

func (*ServerTypePlayerCountResponse) GetPlayerCount

func (x *ServerTypePlayerCountResponse) GetPlayerCount() uint32

func (*ServerTypePlayerCountResponse) ProtoMessage

func (*ServerTypePlayerCountResponse) ProtoMessage()

func (*ServerTypePlayerCountResponse) ProtoReflect

func (*ServerTypePlayerCountResponse) Reset

func (x *ServerTypePlayerCountResponse) Reset()

func (*ServerTypePlayerCountResponse) String

type ServerTypesPlayerCountResponse

type ServerTypesPlayerCountResponse struct {
	PlayerCounts map[string]uint32      `` /* 186-byte string literal not displayed */
	LastUpdated  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerTypesPlayerCountResponse) Descriptor deprecated

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

Deprecated: Use ServerTypesPlayerCountResponse.ProtoReflect.Descriptor instead.

func (*ServerTypesPlayerCountResponse) GetLastUpdated

func (*ServerTypesPlayerCountResponse) GetPlayerCounts

func (x *ServerTypesPlayerCountResponse) GetPlayerCounts() map[string]uint32

func (*ServerTypesPlayerCountResponse) ProtoMessage

func (*ServerTypesPlayerCountResponse) ProtoMessage()

func (*ServerTypesPlayerCountResponse) ProtoReflect

func (*ServerTypesPlayerCountResponse) Reset

func (x *ServerTypesPlayerCountResponse) Reset()

func (*ServerTypesPlayerCountResponse) String

type UnimplementedPlayerTrackerServer

type UnimplementedPlayerTrackerServer struct {
}

UnimplementedPlayerTrackerServer must be embedded to have forward compatible implementations.

func (UnimplementedPlayerTrackerServer) GetPlayerServer

func (UnimplementedPlayerTrackerServer) GetPlayerServers

func (UnimplementedPlayerTrackerServer) GetServerPlayerCount

func (UnimplementedPlayerTrackerServer) GetServerPlayers

type UnsafePlayerTrackerServer

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

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

Jump to

Keyboard shortcuts

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