config

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Current = New()
View Source
var KernelCurrent = NewKernel()

Functions

This section is empty.

Types

type Config

type Config struct {
	Host           string `json:"host"`
	Port           string `json:"port"`
	PortKernel     string `json:"port_kernel"`
	PortProxy      string `json:"port_proxy"`
	PortPrometheus string `json:"port_prometheus"`
	MasterApiKey   string `json:"master_api_key"`
	// contains filtered or unexported fields
}

func New

func New() Config

func (Config) Apply added in v0.3.1

func (c Config) Apply() error

func (Config) Debug added in v0.12.0

func (c Config) Debug() bool

func (Config) KernelURL added in v0.11.0

func (c Config) KernelURL() string

func (Config) ProxyURL added in v0.11.0

func (c Config) ProxyURL() string

func (Config) VertexURL added in v0.11.0

func (c Config) VertexURL() string

type Kernel added in v0.9.0

type Kernel struct {
	Config

	Uid uint32 `json:"uid"`
	Gid uint32 `json:"gid"`
}

func NewKernel added in v0.9.0

func NewKernel() Kernel

type Mode added in v0.12.0

type Mode string
const (
	ProductionMode Mode = "production"
	DebugMode      Mode = "debug"
)

Jump to

Keyboard shortcuts

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