topologypb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0, BSD-3-Clause, ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Server_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_LOGIN_SERVER",
		2: "TYPE_GAME_SERVER",
		3: "TYPE_MESSAGE_SERVER",
	}
	Server_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":    0,
		"TYPE_LOGIN_SERVER":   1,
		"TYPE_GAME_SERVER":    2,
		"TYPE_MESSAGE_SERVER": 3,
	}
)

Enum value maps for Server_Type.

View Source
var File_topologypb_topology_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddServerRequest

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

func (*AddServerRequest) Descriptor deprecated

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

Deprecated: Use AddServerRequest.ProtoReflect.Descriptor instead.

func (*AddServerRequest) GetServer

func (x *AddServerRequest) GetServer() *Server

func (*AddServerRequest) ProtoMessage

func (*AddServerRequest) ProtoMessage()

func (*AddServerRequest) ProtoReflect

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

func (*AddServerRequest) Reset

func (x *AddServerRequest) Reset()

func (*AddServerRequest) String

func (x *AddServerRequest) String() string

type AddServerResponse

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

func (*AddServerResponse) Descriptor deprecated

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

Deprecated: Use AddServerResponse.ProtoReflect.Descriptor instead.

func (*AddServerResponse) ProtoMessage

func (*AddServerResponse) ProtoMessage()

func (*AddServerResponse) ProtoReflect

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

func (*AddServerResponse) Reset

func (x *AddServerResponse) Reset()

func (*AddServerResponse) String

func (x *AddServerResponse) String() string

type Configuration

type Configuration struct {
	Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

Configuration stores static server configuration.

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetServers

func (x *Configuration) GetServers() []*Server

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type GetServerRequest

type GetServerRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetServerRequest) Descriptor deprecated

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

Deprecated: Use GetServerRequest.ProtoReflect.Descriptor instead.

func (*GetServerRequest) GetId

func (x *GetServerRequest) GetId() uint32

func (*GetServerRequest) ProtoMessage

func (*GetServerRequest) ProtoMessage()

func (*GetServerRequest) ProtoReflect

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

func (*GetServerRequest) Reset

func (x *GetServerRequest) Reset()

func (*GetServerRequest) String

func (x *GetServerRequest) String() string

type GetServerResponse

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

func (*GetServerResponse) Descriptor deprecated

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

Deprecated: Use GetServerResponse.ProtoReflect.Descriptor instead.

func (*GetServerResponse) GetServer

func (x *GetServerResponse) GetServer() *Server

func (*GetServerResponse) ProtoMessage

func (*GetServerResponse) ProtoMessage()

func (*GetServerResponse) ProtoReflect

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

func (*GetServerResponse) Reset

func (x *GetServerResponse) Reset()

func (*GetServerResponse) String

func (x *GetServerResponse) String() string

type ListServersRequest

type ListServersRequest struct {
	Type Server_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Server_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServersRequest) Descriptor deprecated

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

Deprecated: Use ListServersRequest.ProtoReflect.Descriptor instead.

func (*ListServersRequest) GetType

func (x *ListServersRequest) GetType() Server_Type

func (*ListServersRequest) ProtoMessage

func (*ListServersRequest) ProtoMessage()

func (*ListServersRequest) ProtoReflect

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

func (*ListServersRequest) Reset

func (x *ListServersRequest) Reset()

func (*ListServersRequest) String

func (x *ListServersRequest) String() string

type ListServersResponse

type ListServersResponse struct {
	Server []*Server `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
	// contains filtered or unexported fields
}

func (*ListServersResponse) Descriptor deprecated

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

Deprecated: Use ListServersResponse.ProtoReflect.Descriptor instead.

func (*ListServersResponse) GetServer

func (x *ListServersResponse) GetServer() []*Server

func (*ListServersResponse) ProtoMessage

func (*ListServersResponse) ProtoMessage()

func (*ListServersResponse) ProtoReflect

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

func (*ListServersResponse) Reset

func (x *ListServersResponse) Reset()

func (*ListServersResponse) String

func (x *ListServersResponse) String() string

type Server

type Server struct {
	Type     Server_Type `protobuf:"varint,1,opt,name=type,proto3,enum=Server_Type" json:"type,omitempty"`
	Name     string      `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Id       uint32      `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	NumUsers uint32      `protobuf:"varint,4,opt,name=num_users,json=numUsers,proto3" json:"num_users,omitempty"`
	MaxUsers uint32      `protobuf:"varint,5,opt,name=max_users,json=maxUsers,proto3" json:"max_users,omitempty"`
	Address  string      `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	Port     uint32      `protobuf:"varint,7,opt,name=port,proto3" json:"port,omitempty"`
	Flags    uint32      `protobuf:"varint,8,opt,name=flags,proto3" json:"flags,omitempty"`
	// contains filtered or unexported fields
}

Server is the server data provided by a node.

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetAddress

func (x *Server) GetAddress() string

func (*Server) GetFlags

func (x *Server) GetFlags() uint32

func (*Server) GetId

func (x *Server) GetId() uint32

func (*Server) GetMaxUsers

func (x *Server) GetMaxUsers() uint32

func (*Server) GetName

func (x *Server) GetName() string

func (*Server) GetNumUsers

func (x *Server) GetNumUsers() uint32

func (*Server) GetPort

func (x *Server) GetPort() uint32

func (*Server) GetType

func (x *Server) GetType() Server_Type

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type ServerEntry

type ServerEntry struct {
	Server      *Server                `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	LastPing    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_ping,json=lastPing,proto3" json:"last_ping,omitempty"`
	LastHealthy *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_healthy,json=lastHealthy,proto3" json:"last_healthy,omitempty"`
	// contains filtered or unexported fields
}

ServerEntry is the internal server entry used for storage.

func (*ServerEntry) Descriptor deprecated

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

Deprecated: Use ServerEntry.ProtoReflect.Descriptor instead.

func (*ServerEntry) GetLastHealthy

func (x *ServerEntry) GetLastHealthy() *timestamppb.Timestamp

func (*ServerEntry) GetLastPing

func (x *ServerEntry) GetLastPing() *timestamppb.Timestamp

func (*ServerEntry) GetServer

func (x *ServerEntry) GetServer() *Server

func (*ServerEntry) ProtoMessage

func (*ServerEntry) ProtoMessage()

func (*ServerEntry) ProtoReflect

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

func (*ServerEntry) Reset

func (x *ServerEntry) Reset()

func (*ServerEntry) String

func (x *ServerEntry) String() string

type Server_Type

type Server_Type int32
const (
	Server_TYPE_UNSPECIFIED    Server_Type = 0
	Server_TYPE_LOGIN_SERVER   Server_Type = 1
	Server_TYPE_GAME_SERVER    Server_Type = 2
	Server_TYPE_MESSAGE_SERVER Server_Type = 3
)

func (Server_Type) Descriptor

func (Server_Type) Enum

func (x Server_Type) Enum() *Server_Type

func (Server_Type) EnumDescriptor deprecated

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

Deprecated: Use Server_Type.Descriptor instead.

func (Server_Type) Number

func (x Server_Type) Number() protoreflect.EnumNumber

func (Server_Type) String

func (x Server_Type) String() string

func (Server_Type) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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