vpngate

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCSV

func ParseCSV(data string, refreshedAt time.Time) ([]model.Node, error)

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Fetch

func (c *Client) Fetch(ctx context.Context, sourceURL, expression string) ([]model.Node, error)

type Filter

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

func CompileFilter

func CompileFilter(expression string) (*Filter, error)

func (*Filter) Match

func (f *Filter) Match(node model.Node) (bool, error)

type Refresher

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

func NewRefresher

func NewRefresher(configStore *config.Store, database *store.Store, logger *log.Logger, activeIP func() string, after func(context.Context)) *Refresher

func (*Refresher) LastError

func (r *Refresher) LastError() error

func (*Refresher) Refresh

func (r *Refresher) Refresh(ctx context.Context) error

func (*Refresher) Run

func (r *Refresher) Run(ctx context.Context)

func (*Refresher) Running

func (r *Refresher) Running() bool

func (*Refresher) Trigger

func (r *Refresher) Trigger() bool

Jump to

Keyboard shortcuts

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