forward

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	ForwardsRaw []json.RawMessage         `json:"forwards,omitempty" caddy:"namespace=point-c.op.forward inline_key=forward"`
	Hosts       configvalues.HostnamePair `json:"hosts"`
	// contains filtered or unexported fields
}

Forward manages forwarders for internet traffic.

func (*Forward) CaddyModule

func (f *Forward) CaddyModule() caddy.ModuleInfo

CaddyModule implements caddy.Module.

func (*Forward) Cleanup

func (f *Forward) Cleanup() error

Cleanup implements caddy.CleanerUpper.

func (*Forward) Provision

func (f *Forward) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (*Forward) Start

func (f *Forward) Start(lookup point_c.NetLookup) error

Start implements [NetOp].

func (*Forward) UnmarshalCaddyfile

func (f *Forward) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile unmarshals the caddyfile. ```

point-c netops {
    forward <src network name>:<dst network name> {
		    <submodule name> <submodule config>
    }
}

```

type ForwardNetworks

type ForwardNetworks struct{ Src, Dst point_c.Net }

ForwardNetworks contains the networks that have their traffic forwarded.

type ForwardProto

type ForwardProto = lifecycler.LifeCyclable[*ForwardNetworks]

ForwardProto is implemented by modules in the "point-c.op.forward" namespace.

Jump to

Keyboard shortcuts

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