ifconfig

package
v0.0.0-...-d6b47ad Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Inst = &Ifconfig{}

Inst Ifconfig instance

Functions

This section is empty.

Types

type Ifconfig

type Ifconfig struct {
	Client *resty.Client
}

Ifconfig struct

func (*Ifconfig) Fetch

func (i *Ifconfig) Fetch(ctx context.Context) (response *Response, error error)

Fetch ip address from Ifconfig

func (*Ifconfig) SetClient

func (i *Ifconfig) SetClient()

SetClient for Ifconfig requests

type Response

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

Response struct

Jump to

Keyboard shortcuts

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