solver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IcanhazipID = "icanhazip"
	IdentID     = "ident"
	IfconfigID  = "ifconfig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IcanhazipCom

type IcanhazipCom struct {
}

IcanhazipCom is a public IP solver with icanhazip.com

func (*IcanhazipCom) Run

func (s *IcanhazipCom) Run() (string, error)

Run to get public ip

type IdentMe

type IdentMe struct {
}

IdentMe is a public IP solver with Ident.me

func (*IdentMe) Run

func (s *IdentMe) Run() (string, error)

Run to get public ip

type IfconfigCo

type IfconfigCo struct {
}

IfconfigCo is a public IP solver with ifconfig.co

func (*IfconfigCo) Run

func (s *IfconfigCo) Run() (string, error)

Run to get public ip

type Solver

type Solver interface {
	Run() (string, error)
}

Solver public IP solver

type SolverManager

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

func NewSolverManager

func NewSolverManager(solvers []string) (*SolverManager, error)

NewSolverManager create solver list by solver identity

func (*SolverManager) Run

func (m *SolverManager) Run() (ip string, err error)

Jump to

Keyboard shortcuts

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