providers

package
v0.0.0-...-29d7eeb Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIPIP

func NewIPIP(cfg ProviderConfig) *ipip

func NewIp138

func NewIp138(cfg ProviderConfig) *ip138

func NewSyncer

func NewSyncer() *syncer

Types

type Provider

type Provider interface {
	Sync()
	Decode(reader io.Reader) (string, error)
}

type ProviderConfig

type ProviderConfig struct {
	NodeName      string
	CheckInterval time.Duration
	URL           string
}

Jump to

Keyboard shortcuts

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