network

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllMacs

func GetAllMacs() (map[string]string, error)

func GetMac

func GetMac(iface string) (string, error)

Types

type HttpClient

type HttpClient struct {
}

func (HttpClient) Call

type HttpClientRequest

type HttpClientRequest struct {
	Method       string
	Url          string
	InsecureSkip bool
	Headers      map[string]string
	Params       map[string]string
	Data         interface{}
}

type HttpClientResponse

type HttpClientResponse struct {
	Status        int
	StatusMsg     string
	IsStatusIn2xx bool
	Url           string
	Headers       map[string]string
	Request       HttpClientRequest
	Data          map[string]interface{}
	Error         error
}

type UtilNetwork

type UtilNetwork struct {
}

func (UtilNetwork) IsInSubnet

func (obj UtilNetwork) IsInSubnet(ip string, subnets []string) bool

func (UtilNetwork) RemoteIPAddress

func (obj UtilNetwork) RemoteIPAddress(c core.AppContext) string

Jump to

Keyboard shortcuts

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