server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DBPath         string
	SocketPath     string
	HTTPAddr       string
	KitsDir        string   // base dir for installed kit repos
	KeyFilePath    string   // path to secret encryption key file
	AllowedDomains []string // proxy allowed domains
	JobRuntime     dispatcher.JobRuntime
}

type Server

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

func New

func New(cfg Config) (*Server, error)

func (*Server) BrokerSocket

func (s *Server) BrokerSocket() string

BrokerSocket returns the broker UNIX socket path.

func (*Server) DB

func (s *Server) DB() *sql.DB

DB returns the database instance.

func (*Server) ProxyPort

func (s *Server) ProxyPort() int

ProxyPort returns the proxy listening port.

func (*Server) Router

func (s *Server) Router() chi.Router

Router returns the chi router for registering additional routes.

func (*Server) SocketPath

func (s *Server) SocketPath() string

SocketPath returns the UNIX socket path.

func (*Server) Start

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

func (*Server) Stop

func (s *Server) Stop() error

func (*Server) Store

func (s *Server) Store() *orchestrator.ProjectStore

Store returns the project store.

func (*Server) TCPAddr

func (s *Server) TCPAddr() string

TCPAddr returns the TCP listener address.

Jump to

Keyboard shortcuts

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