utils

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("entry not found")
)

Functions

func GetLocalIP

func GetLocalIP() string

GetLocalIP returns the non loopback local IP of the host

func HttpDelete

func HttpDelete(url string) error

func HttpGet

func HttpGet(url string) ([]byte, error)

func HttpPut

func HttpPut(url string, body []byte) error

Types

type KV

type KV struct {
	Key   string
	Value string
	Flags int64
}

Jump to

Keyboard shortcuts

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