caddy

package
v0.0.0-...-64e3505 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoodogCaddyAdapter

type GoodogCaddyAdapter struct {
	Options // For JSON config
	// contains filtered or unexported fields
}

func (GoodogCaddyAdapter) CaddyModule

func (GoodogCaddyAdapter) CaddyModule() caddy.ModuleInfo

func (*GoodogCaddyAdapter) Cleanup

func (g *GoodogCaddyAdapter) Cleanup() error

func (*GoodogCaddyAdapter) Provision

func (g *GoodogCaddyAdapter) Provision(ctx caddy.Context) error

func (*GoodogCaddyAdapter) ServeHTTP

func (*GoodogCaddyAdapter) UnmarshalCaddyfile

func (g *GoodogCaddyAdapter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

func (*GoodogCaddyAdapter) Validate

func (g *GoodogCaddyAdapter) Validate() error

type Options

type Options struct {
	UpstreamTCP    string        `json:"upstream_tcp"`
	UpstreamUDP    string        `json:"upstream_udp"`
	ConnectTimeout time.Duration `json:"connect_timeout"`
	Timeout        time.Duration `json:"timeout"`
}

func (*Options) UnmarshalJSON

func (opts *Options) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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