listener

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package listener allows Caddy to listen on arbitrary networks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Name configvalues.Hostname `json:"name"`
	Port configvalues.Port     `json:"port"`
	// contains filtered or unexported fields
}

Listener allows a caddy server to listen on a point-c network.

func (*Listener) Accept

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

Accept implements net.Listener.

func (*Listener) Addr

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

Addr implements net.Listener.

func (*Listener) CaddyModule

func (*Listener) CaddyModule() caddy.ModuleInfo

CaddyModule implements caddy.Module.

func (*Listener) Close

func (p *Listener) Close() error

Close implements net.Listener.

func (*Listener) Provision

func (p *Listener) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (*Listener) Start

func (p *Listener) Start(fn func(net.Listener)) error

Start implement [ListenerProvider].

func (*Listener) UnmarshalCaddyfile

func (p *Listener) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile unmarshals the caddyfile. ```

	{
	  servers :443 {
	    listener_wrappers {
	      merge {
            # this is the actual listener definition
	        point-c <network name> <port to expose>
	      }
          # make sure tls goes after otherwise encryption will be dropped
	      tls
	    }
	  }
	}

```

Jump to

Keyboard shortcuts

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