config

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Lobby bool
}

func (API) Init

func (API) Init(cmd *cobra.Command) error

func (*API) Set

func (s *API) Set()

type Config

type Config interface {
	Init(cmd *cobra.Command) error
	Set()
}

type Room

type Room struct {
	EprMin uint16
	EprMax uint16

	NAT1To1IPs           []string
	NekoImages           []string
	NekoPrivilegedImages []string
	PathPrefix           string
	Labels               []string

	StorageEnabled  bool
	StorageInternal string
	StorageExternal string

	MountsWhitelist []string

	InstanceName string
	InstanceUrl  *url.URL

	TraefikDomain       string
	TraefikEntrypoint   string
	TraefikCertresolver string
	TraefikNetwork      string
	TraefikPort         string // deprecated
}

func (*Room) GetInstanceUrl

func (s *Room) GetInstanceUrl() url.URL

func (*Room) GetRoomUrl

func (s *Room) GetRoomUrl(roomName string) string

func (Room) Init

func (Room) Init(cmd *cobra.Command) error

func (*Room) Set

func (s *Room) Set()

type Root

type Root struct {
	Debug   bool
	Logs    bool
	CfgFile string
}

func (Root) Init

func (Root) Init(cmd *cobra.Command) error

func (*Root) Set

func (s *Root) Set()

type Server

type Server struct {
	Cert   string
	Key    string
	Bind   string
	Static string
	Proxy  bool
	PProf  bool
}

func (Server) Init

func (Server) Init(cmd *cobra.Command) error

func (*Server) Set

func (s *Server) Set()

Jump to

Keyboard shortcuts

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