ext

package
v0.0.0-...-25bf8ac Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSource

type ExternalSource interface {
	LookupIP(string) (tengo.Object, error)
}

An ExternalSource provides per-IP information from third-party sources. The lookup can return any Tengo object, we don't want to force a specific return type yet (int or string can both be useful, we'll see).

func New

func New(sourceType string, params map[string]interface{}) (ExternalSource, error)

New creates a new ExternalSource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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