publicip

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	FetchPublicIPV4() (string, error)
}

Service is the interface for the publicip service package

type ServiceObj

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

ServiceObj implements the Service interface per default

func New

func New(httpClient httpclient.Client) *ServiceObj

New returns a new pointer instance of ServiceObj

func (*ServiceObj) FetchPublicIPV4

func (serv *ServiceObj) FetchPublicIPV4() (string, error)

FetchPublicIPV4 fetches the public IPv4 address of the machine

Jump to

Keyboard shortcuts

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