filter

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NknClient

type NknClient struct {
	Address  string `json:"address"`
	Metadata string `json:"metadata"`
}

func (*NknClient) Empty

func (c *NknClient) Empty() bool

func (*NknClient) Match

func (c *NknClient) Match(nknClient *NknClient) bool

type NknFilter

type NknFilter struct {
	Allow    []NknClient `json:"allow"`
	Disallow []NknClient `json:"disallow"`
}

func (*NknFilter) Empty

func (f *NknFilter) Empty() bool

func (*NknFilter) IsAllow

func (f *NknFilter) IsAllow(nknClient *NknClient) bool

Jump to

Keyboard shortcuts

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