sower

package module
v0.0.0-...-beb3ce8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

README

Caddy-sower

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressRange

type AddressRange []netip.Prefix

AddressRange is ...

func (AddressRange) Contains

func (ar AddressRange) Contains(addr netip.Addr) bool

Contains is ...

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

Conn is ...

func (*Conn) Read

func (c *Conn) Read(b []byte) (int, error)

Read is ...

type DomainList

type DomainList []string

DomainList is ...

func (*DomainList) Match

func (lst *DomainList) Match(name string) bool

Match is ...

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

Listener is ...

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

type ListenerWrapper

type ListenerWrapper struct {
	ExcludeDomain []string `json:"exclude_domains,omitempty"`

	AllowedIPs []string `json:"allowed_ips,omitempty"`
	// contains filtered or unexported fields
}

ListenerWrapper is ...

func (ListenerWrapper) CaddyModule

func (ListenerWrapper) CaddyModule() caddy.ModuleInfo

func (*ListenerWrapper) Provision

func (lw *ListenerWrapper) Provision(ctx caddy.Context) error

func (*ListenerWrapper) WrapListener

func (lw *ListenerWrapper) WrapListener(l net.Listener) net.Listener

type Result

type Result struct {
	Conn net.Conn
	Err  error
}

Result is ...

Directories

Path Synopsis
cmd
caddy
Package main is the entry point of the Caddy application.
Package main is the entry point of the Caddy application.

Jump to

Keyboard shortcuts

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