greylist

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.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 Greylist

type Greylist struct{}

func NewGreylist

func NewGreylist(ctx context.Context) (*Greylist, error)

func (*Greylist) AddInGrey

func (o *Greylist) AddInGrey(ctx context.Context, ip, sender string) error

func (*Greylist) Greylisted

func (o *Greylist) Greylisted(ctx context.Context, ip, sender string) (bool, error)

func (*Greylist) MoveToWhitelist

func (o *Greylist) MoveToWhitelist(ctx context.Context, ip, sender string) error

func (*Greylist) RefreshWhitelist

func (o *Greylist) RefreshWhitelist(ctx context.Context, ip, sender string) error

func (*Greylist) Whitelisted

func (o *Greylist) Whitelisted(ctx context.Context, ip, sender string) (bool, error)

Jump to

Keyboard shortcuts

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