server

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

func NewServer

func NewServer(cli *Cli) (*fuego.Server, net.Listener, error)

func RegisterEndpoints

func RegisterEndpoints(srv *fuego.Server, htp htpasswd.HTPasswd, zctl zone.Controller)

Types

type ACMEUpdateRequest

type ACMEUpdateRequest struct {
	Subdomain string `json:"subdomain" validate:"required"`
	TXT       string `json:"txt" validate:"required"`
}

type ACMEUpdateResponse

type ACMEUpdateResponse struct {
	TXT string `json:"txt"`
}

type Cli

type Cli struct {
	Listen             string        `name:"listen" default:"localhost:9999" help:"Server listen address"`
	AcceptProxy        bool          `name:"accept-proxy" help:"Accept PROXY protocol"`
	ProxyHeaderTimeout time.Duration `name:"proxy-header-timeout" default:"10s" help:"Timeout for PROXY headers"`
	HTPasswdFile       string        `short:"p" name:"htpasswd" required:"" type:"existingfile" placeholder:"FILE" help:"Passwords file (bcrypt only)"`
	ZoneFiles          []string      `short:"z" name:"zone" required:"" type:"existingfile" placeholder:"FILE,..." help:"Zone files to update"`
	Debug              bool          `name:"debug" help:"Enable debug logging"`
}

type LegoHttpDefaultRequest

type LegoHttpDefaultRequest struct {
	Fqdn  string `json:"fqdn" validate:"required"`
	Value string `json:"value"`
}

type LegoHttpDefaultResponse added in v0.8.0

type LegoHttpDefaultResponse struct {
	Fqdn  string `json:"fqdn"`
	Value string `json:"value"`
}

NOTE: LEGO do not check responses, but acme.sh acmeproxy - expect to see copy of original message

type ZMUpdateRequest added in v0.9.0

type ZMUpdateRequest struct {
	Fqdn   string   `json:"fqdn" validate:"required"`
	Type   string   `json:"type" validate:"required"`
	Values []string `json:"values" validate:"required"`
}

type ZMUpdateResponse added in v0.9.0

type ZMUpdateResponse struct {
	Fqdn    string `json:"fqdn"`
	Changed bool   `json:"changed"`
}

Jump to

Keyboard shortcuts

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