caddy_analytics

package module
v0.0.0-...-1669b2f Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedProviders = []string{"plausible"}

Functions

This section is empty.

Types

type Analytics

type Analytics struct {
	// The analytics provider to use. Currently available: plausible
	Provider string `json:"provider,omitempty"`

	// Domain name on which the analytics provider is hosted. Defaults to the official instance.
	Server string `json:"host,omitempty"`

	// An API token. Used to automate registering of websites on the analytics provider. Does nothing for now.
	AdminToken string `json:"admin_token,omitempty"`
}

func (Analytics) CaddyModule

func (Analytics) CaddyModule() caddy.ModuleInfo

func (Analytics) DefaultServer

func (a Analytics) DefaultServer() string

func (*Analytics) Provision

func (a *Analytics) Provision(ctx caddy.Context) error

func (*Analytics) ServeHTTP

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

func (*Analytics) Validate

func (a *Analytics) Validate() error

Jump to

Keyboard shortcuts

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