controller

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const NodeVersion = "0.2.6"

Variables

This section is empty.

Functions

func BuildUsersFromChunks added in v0.2.0

func BuildUsersFromChunks(chunks map[uint64][]*common.User, lastIndex uint64, sawLast bool) ([]*common.User, error)

BuildUsersFromChunks orders chunked user payloads by their index and returns a single slice.

Types

type Controller

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

func New

func New(cfg *config.Config) *Controller

func (*Controller) ApiKey

func (c *Controller) ApiKey() uuid.UUID

func (*Controller) Backend

func (c *Controller) Backend() backend.Backend

func (*Controller) BaseInfoResponse

func (c *Controller) BaseInfoResponse() *common.BaseInfoResponse

func (*Controller) Connect

func (c *Controller) Connect(ip string, keepAlive uint64)

func (*Controller) Disconnect

func (c *Controller) Disconnect()

func (*Controller) Ip

func (c *Controller) Ip() string

func (*Controller) NewRequest

func (c *Controller) NewRequest()

func (*Controller) StartBackend

func (c *Controller) StartBackend(ctx context.Context, backendType common.BackendType) error

func (*Controller) SystemStats

func (c *Controller) SystemStats() *common.SystemStatsResponse

type Service

type Service interface {
	Disconnect()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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