Documentation
¶
Index ¶
- type APIClient
- type LocalCache
- type LocalStore
- type NoopAPICaller
- type Runner
- func (r *Runner) EnableGRPCMode()
- func (r *Runner) Init(ctx context.Context, cfg *config.Config) error
- func (r *Runner) RunGDaemonServer(ctx context.Context, cfg *config.Config) func() error
- func (r *Runner) RunGDaemonTaskScheduler(ctx context.Context, _ *config.Config) func() error
- func (r *Runner) RunGRPCClient(ctx context.Context, cfg *config.Config) func() error
- func (r *Runner) RunServerScheduler(ctx context.Context, cfg *config.Config) func() error
- func (r *Runner) RunServersLoop(ctx context.Context, cfg *config.Config) func() error
- func (r *Runner) RunServersLoopWithReporter(ctx context.Context, cfg *config.Config) func() error
- func (r *Runner) SetGRPCComponents(connectionManager *grpcclient.ConnectionManager, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func NewAPICaller ¶
func (*APIClient) Request ¶
func (c *APIClient) Request(ctx context.Context, request domain.APIRequest) (contracts.APIResponse, error)
type LocalCache ¶
type LocalCache struct {
// contains filtered or unexported fields
}
func NewLocalCache ¶
func NewLocalCache(_ *config.Config) (*LocalCache, error)
type LocalStore ¶
type LocalStore struct {
// contains filtered or unexported fields
}
func NewLocalStore ¶
func NewLocalStore(_ *config.Config) (*LocalStore, error)
type NoopAPICaller ¶
type NoopAPICaller struct{}
NoopAPICaller is a stub APIRequestMaker used in gRPC mode where the HTTP API is not needed.
func (*NoopAPICaller) Request ¶
func (n *NoopAPICaller) Request(_ context.Context, _ domain.APIRequest) (contracts.APIResponse, error)
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewProcessRunner ¶
func NewProcessRunner( cfg *config.Config, executor contracts.Executor, commandFactory *gameservercommands.ServerCommandFactory, apiClient contracts.APIRequestMaker, gdTaskManager *gdaemonscheduler.TaskManager, serverRepository domain.ServerRepository, serverTaskRepository domain.ServerTaskRepository, ) (*Runner, error)
func (*Runner) EnableGRPCMode ¶
func (r *Runner) EnableGRPCMode()
func (*Runner) RunGDaemonServer ¶
func (*Runner) RunGDaemonTaskScheduler ¶
func (*Runner) RunGRPCClient ¶
func (*Runner) RunServerScheduler ¶
func (*Runner) RunServersLoop ¶
func (*Runner) RunServersLoopWithReporter ¶
func (*Runner) SetGRPCComponents ¶
func (r *Runner) SetGRPCComponents( connectionManager *grpcclient.ConnectionManager, statusReporter *grpcclient.ServerStatusReporter, )
Click to show internal directories.
Click to hide internal directories.