bolt

package
v0.0.0-...-7ede983 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(ctx context.Context, config *config.DB) (*DB, error)

func (*DB) Connect

func (db *DB) Connect() (err error)

func (*DB) KeepAlive

func (db *DB) KeepAlive()

type IPBolt

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

func NewIPStorage

func NewIPStorage(db *DB) (*IPBolt, error)

func (*IPBolt) Add

func (s *IPBolt) Add(ctx context.Context, ipOrSubnet string) error

func (*IPBolt) Contains

func (s *IPBolt) Contains(ctx context.Context, clientIP string) (bool, error)

Jump to

Keyboard shortcuts

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