vpn

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	List() ([]models.Vpn, error)
	Name() string
}

type VPN

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

func NewVPN

func NewVPN(store data.VpnStore, hours int, logger logrus.FieldLogger, feedOpenVPNList []string, feedList []string) *VPN

func (*VPN) AddProvider

func (p *VPN) AddProvider(provider Provider)

func (*VPN) Get

func (p *VPN) Get() (*[]string, error)

func (*VPN) Run

func (p *VPN) Run(hours int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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