loader

package
v0.0.0-...-14fe6e9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	*pgx.Conn
}

func (Conn) Load

func (c Conn) Load(ctx context.Context, w Pusher) error

func (Conn) Update

func (c Conn) Update(ctx context.Context, w Pusher) error

type IP

type IP struct {
	net.IP
}

func (*IP) Scan

func (ip *IP) Scan(r fmt.ScanState, _ rune) error

type Loader

type Loader interface {
	Load(context.Context, Pusher) error
	Listen(string) error
	Unlisten(string) error
	Update(context.Context, Pusher) error
	Close() error
}

func New

func New(name string) (Loader, error)

type Pusher

type Pusher interface {
	Push(int64, net.IP) error
}

Jump to

Keyboard shortcuts

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