plugin

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSRegister

type DNSRegister interface {
	GetExternalAddress() (net.IP, error)
	RegisterAddress(host, user, password string, addr net.IP, offline bool) error
}

DNSRegister provides a mechanism to register DNS records to a remote dynamic DNS service

type Gateway

type Gateway interface {
	// Return the prefix for this gateway
	Prefix() string

	// Return the middleware in order, which is called from left to right, then right to left,
	// on the serving of the route
	Middleware() []string
}

Gateway provides a set of routes and middleware which is applied to those routes

type Log

type Log interface {
	// Print log message
	Print(context.Context, ...interface{})

	// Format and print log message
	Printf(context.Context, string, ...interface{})
}

Log plugin

type Nginx added in v1.1.1

type Nginx interface {
	// Test configuration, return error if it fails
	Test() error

	// Test the configuration and then reload it (the SIGHUP signal)
	Reload() error

	// Reopen log files (the SIGUSR1 signal)
	Reopen() error
}

Nginx provides a forked nginx instance, with the ability to reopen log files and reload the configuration

type Router

type Router interface {
	http.Handler
}

Router is a task which maps paths to routes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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