config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPath          string
	DefaultUnixAdminPath = "/run/soju/admin"
)

Functions

This section is empty.

Types

type Auth added in v0.6.0

type Auth struct {
	Driver, Source string
}

type DB added in v0.6.0

type DB struct {
	Driver, Source string
}

type IPSet

type IPSet []*net.IPNet

func (IPSet) Contains

func (set IPSet) Contains(ip net.IP) bool

type MsgStore added in v0.6.0

type MsgStore struct {
	Driver, Source string
}

type Server

type Server struct {
	Listen   []string
	TLS      *TLS
	Hostname string
	Title    string
	MOTDPath string

	DB       DB
	MsgStore MsgStore
	Auth     Auth

	HTTPOrigins    []string
	AcceptProxyIPs IPSet

	MaxUserNetworks           int
	UpstreamUserIPs           []*net.IPNet
	DisableInactiveUsersDelay time.Duration
	EnableUsersOnAuth         bool
}

func Defaults

func Defaults() *Server

func Load

func Load(path string) (*Server, error)

type TLS

type TLS struct {
	CertPath, KeyPath string
}

Jump to

Keyboard shortcuts

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