...

Package utils

import "discovery/utils"
Overview
Index

Overview ▾

Package utils implements utilities functions

Constants

const UserAgentMachine = "Machine"

func GetInternalIP

func GetInternalIP(ifaceName string) (string, error)

func HttpMachineGet

func HttpMachineGet(client *http.Client, host string, headers []Header) (*http.Response, error)

func IsolateIPFromPort

func IsolateIPFromPort(ip string) string

type ErrorHttpCannotCreateRequest

type ErrorHttpCannotCreateRequest struct{}

func (ErrorHttpCannotCreateRequest) Error

func (e ErrorHttpCannotCreateRequest) Error() string
type Header struct {
    Field   string
    Payload string
}

type IPError

type IPError struct{}

func (IPError) Error

func (e IPError) Error() string