network_utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMentionRoutes

func GetMentionRoutes() []router.MentionRoute

This function is used to retrieve all Mention Routes from this plugin

Types

type HTTPPing

type HTTPPing struct {
	TLSSkipVerify bool
	// contains filtered or unexported fields
}

func (HTTPPing) IPVersion

func (p HTTPPing) IPVersion(t string) string

func (*HTTPPing) Ping

func (p *HTTPPing) Ping() (HTTPResult, error)

type HTTPResult

type HTTPResult struct {
	StatusCode int
	TotalTime  float64
	Size       int
	Proto      string
	Server     string
	Status     string
	Trace      HTTPTrace
}

type HTTPTrace

type HTTPTrace struct {
	ConnectionTime  float64
	TimeToFirstByte float64
}

Jump to

Keyboard shortcuts

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