geo

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Types

type HTTPMeta

type HTTPMeta struct {
	ETag         string
	LastModified string
}

type Module

type Module struct {
	IPv4URL         string              `json:"ipv4_url,omitempty"`
	IPv6URL         string              `json:"ipv6_url,omitempty"`
	UpdateInterval  caddy.Duration      `json:"update_interval,omitempty"`
	DownloadTimeout caddy.Duration      `json:"download_timeout,omitempty"`
	Redirects       map[string][]string `json:"redirects,omitempty"`
	// contains filtered or unexported fields
}

func (Module) CaddyModule

func (Module) CaddyModule() caddy.ModuleInfo

func (*Module) Cleanup

func (m *Module) Cleanup() error

func (*Module) Provision

func (m *Module) Provision(ctx caddy.Context) (err error)

func (Module) ServeHTTP

func (m Module) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

func (*Module) UnmarshalCaddyfile

func (m *Module) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

Jump to

Keyboard shortcuts

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