ipify

package
Version: v0.0.0-...-7bf3b00 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MPL-2.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 Config

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

Config contains backend configuration

func DefaultConfig

func DefaultConfig() (*Config, error)

DefaultConfig returns the default backend configuration

func (*Config) Get

func (c *Config) Get(proto ip.IFlag) (string, error)

Get looks up client address via ipify

type Response

type Response struct {
	IP string `json:"ip"`
}

Response represents an ipify response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL