queue

package
v1.9.12 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNOP = errors.New("nop")

Functions

func Poll

func Poll(ctx context.Context, logger *slog.Logger, stop <-chan struct{}, opts *PollConfig)

Types

type PollConfig

type PollConfig struct {
	Db    *pgxpool.Pool
	SqFmt sq.StatementBuilderType

	PairsApp string // Script which creates pairs

	DCIdent string // Datacenter identifier

	// Subdomain API.
	SubdomAPIHost  string // Subdomain API host
	SubdomAPIToken string // Subdomain API token

	// Delegation sync.
	DelegationSyncUser string // Delegation sync user
	DelegationSyncHost string // Delegation sync host

	// Name servers.
	NameServers []string // Domain nameservers

	// Config types.
	WG      string // Wireguard configs
	OVC     string // OVC configs
	IPsec   string // IPsec configs
	Outline string // Outline configs

	SSHKeyFile string // SSH key file
	MaxUsers   int

	MgmtRandomResponses bool
}

Jump to

Keyboard shortcuts

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