access

package
v0.0.0-...-e27f806 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl []struct {
	Allow bool
	Cidr  myIPNet
}

func (Acl) AllowedAddr

func (acl Acl) AllowedAddr(addr net.Addr) bool

func (Acl) AllowedIP

func (acl Acl) AllowedIP(ip net.IP) bool

type Checker

type Checker interface {
	AllowedIP(ip net.IP) bool
	AllowedAddr(addr net.Addr) bool
}

type Config

type Config map[string]Acl

func (Config) GetAcl

func (config Config) GetAcl(name string) Acl

Jump to

Keyboard shortcuts

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