blocklist

package module
v3.0.0-...-0bd1d50 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockList

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

func New

func New(addr, user, pass string, tlsConf *tls.Config) *BlockList

func (*BlockList) Add

func (b *BlockList) Add(ctx context.Context, id, namespace string) error

func (*BlockList) IsBlocked

func (b *BlockList) IsBlocked(ctx context.Context, id, namespace string) (bool, error)

func (*BlockList) List

func (b *BlockList) List(ctx context.Context) ([]string, error)

func (*BlockList) Remove

func (b *BlockList) Remove(ctx context.Context, id, namespace string) error

Jump to

Keyboard shortcuts

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