ipify

package
v0.0.0-...-e994816 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ipify provides an IP lookup backend via the ipify.org service

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
y or Y : Canonical URL