server

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: BSD-2-Clause-Views Imports: 65 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(debug bool, localViper *viper.Viper, logger zerolog.Logger, devMode bool, shutdownDelay time.Duration, disableDomainVerification bool, disableAcme bool, tlsCertFile string, tlsKeyFile string) error

Types

type IPAddress added in v0.0.20

type IPAddress netip.Addr

IPAddress is used to override huma IP address handling, it seems a []netip.Addr is automatically taken to mean it contains all IPv4 addresses, even if setting "format: "ipv6" (and even if the "ipv6" format worked we support mixing both ipv4 and ipv6 in the lists of addresses. Possibly related work: https://github.com/danielgtaylor/huma/pull/792

func (IPAddress) Schema added in v0.0.20

func (IPAddress) Schema(_ huma.Registry) *huma.Schema

func (*IPAddress) UnmarshalJSON added in v0.0.20

func (ip *IPAddress) UnmarshalJSON(data []byte) error

parse strings into netip.Addr

type InitUser

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

func Init

func Init(logger zerolog.Logger, pgConfig *pgxpool.Config, encryptedSessionKey bool, password string) (InitUser, error)

func (InitUser) Name

func (iu InitUser) Name() string

type NodeInput added in v0.0.17

type NodeInput struct {
	Name        string      `` /* 150-byte string literal not displayed */
	Description string      `json:"description" doc:"some identifying info for the node" minLength:"1" maxLength:"100" `
	Addresses   []IPAddress `json:"addresses,omitempty" doc:"The IPv4 and IPv6 addresses of the node"`
	Maintenance *bool       `json:"maintenance,omitempty" doc:"If the node should start in maintenance mode or not, defaults to maintenance mode"`
}

Jump to

Keyboard shortcuts

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