Documentation ¶
Index ¶
- Variables
- func GetKeyFromKV(ctx context.Context, kv kv.Bucket, key string, obj any) error
- func SetKeyToKV(ctx context.Context, kv kv.Bucket, key string, obj any) error
- type Hosting
- type InstanceInfo
- type InstanceManager
- func (m *InstanceManager) GetRandomServerOfGamemode(ctx context.Context, gamemode string) (proxy.RegisteredServer, error)
- func (m *InstanceManager) GetServersOfGamemode(ctx context.Context, gamemode string) ([]proxy.RegisteredServer, error)
- func (m *InstanceManager) Register(ctx context.Context, name string, info InstanceInfo) error
- func (m *InstanceManager) Unregister(ctx context.Context, name string) error
- type PodInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoServersAvailable = errors.New("no servers available")
)
Functions ¶
Types ¶
type Hosting ¶
type Hosting struct { Info *PodInfo // contains filtered or unexported fields }
func (*Hosting) InstanceManager ¶
type InstanceInfo ¶
type InstanceManager ¶
type InstanceManager struct {
// contains filtered or unexported fields
}
func (*InstanceManager) GetRandomServerOfGamemode ¶
func (m *InstanceManager) GetRandomServerOfGamemode(ctx context.Context, gamemode string) (proxy.RegisteredServer, error)
func (*InstanceManager) GetServersOfGamemode ¶
func (m *InstanceManager) GetServersOfGamemode(ctx context.Context, gamemode string) ([]proxy.RegisteredServer, error)
func (*InstanceManager) Register ¶
func (m *InstanceManager) Register(ctx context.Context, name string, info InstanceInfo) error
func (*InstanceManager) Unregister ¶
func (m *InstanceManager) Unregister(ctx context.Context, name string) error
type PodInfo ¶
func ParsePodInfo ¶
func ParsePodInfo() *PodInfo
func (PodInfo) DebugString ¶
func (PodInfo) KVGamemodesKey ¶
func (PodInfo) KVInstancesKey ¶
csmc_<namespace>_<network>_instances<Container hostname, InstanceInfo>
func (PodInfo) KVNetworkKey ¶
func (PodInfo) RPCNetworkSubject ¶
Click to show internal directories.
Click to hide internal directories.