controlplane

package
v0.0.0-...-1a6d63d Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: AGPL-3.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRiverClient

func CreateRiverClient(
	logger *slog.Logger,
	chunkRepo chunk.Repository,
	imgService image.Service,
	blobStore blob.S3Store,
	pool *pgxpool.Pool,
	nodeRepo node.Repository,
	jobClient job.Client,
	packBuildInterval time.Duration,
	imgWorkerCfg worker.CreateImageWorkerConfig,
	checkWorkerCfg worker.CreateCheckpointWorkerConfig,
	packWorkerCfg worker.CreateResourcePackWorkerConfig,
) (*river.Client[pgx.Tx], error)

Types

type Config

type Config struct {
	ListenAddr                    string
	DBConnString                  string
	OCIRegistry                   string
	OCIRegistryUser               string
	OCIRegistryPass               string
	BaseImage                     string
	ImageCacheDir                 string
	ImagePlatform                 string
	CheckpointJobTimeout          time.Duration
	CheckpointStatusCheckInterval time.Duration
	Bucket                        string
	AccessKey                     string
	SecretKey                     string
	PresignedURLExpiry            time.Duration
	UsePathStyle                  bool
	OAuthClientID                 string
	OAuthIssuerURL                string
	APITokenIssuer                string
	APITokenExpiry                time.Duration
	APITokenSigningKey            string
	ThumbnailMaxSizeKB            int
	ResourcePackBuildInterval     time.Duration
	ResourcePackWorkingDir        string
	ResourcePackTemplateKey       string
	ResourcePackItemTemplatePath  string
	ResourcePackModelTemplatePath string
	ResourcePackModelDir          string
	ResourcePackItemDir           string
	ResourcePackTextureDir        string
}

type Server

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

func NewServer

func NewServer(logger *slog.Logger, cfg Config) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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