ipinfo

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Country  string
	City     string
	Provider string
	ASN      uint16
}

func (Info) String

func (i Info) String() string

type IpInfoGetter added in v0.1.3

type IpInfoGetter interface {
	Get(p pmux.Proxy) Info
}

type Lookup

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

func NewLookup

func NewLookup() *Lookup

func (*Lookup) Available

func (i *Lookup) Available() bool

func (*Lookup) Configure

func (i *Lookup) Configure(c app.Config) error

func (*Lookup) Get

func (i *Lookup) Get(p pmux.Proxy) (info Info)

func (*Lookup) Start

func (i *Lookup) Start(ctx app.Context)

type NoopIpInfo added in v0.1.3

type NoopIpInfo Info

func (NoopIpInfo) Get added in v0.1.3

func (i NoopIpInfo) Get(_ pmux.Proxy) Info

Jump to

Keyboard shortcuts

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