internal

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionFilter

type ConnectionFilter interface {
	Filter(addr net.Addr) net.Addr
	String() string
}

type IpFilter

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

func NewIpFilter

func NewIpFilter(allowAddresses []string, l log.Logger) *IpFilter

func (*IpFilter) Filter

func (f *IpFilter) Filter(addr net.Addr) net.Addr

func (*IpFilter) String

func (f *IpFilter) String() string

type NullObject

type NullObject struct {
}

NullObject is null object pattern. It does nothing

func NewNullObject

func NewNullObject() *NullObject

func (NullObject) Filter

func (n NullObject) Filter(addr net.Addr) net.Addr

func (NullObject) String

func (n NullObject) String() string

Jump to

Keyboard shortcuts

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