utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildUrl

func BuildUrl(rawUrl, rawPath string) (string, error)

func CreateDirForFile

func CreateDirForFile(path string) error

func CreateIpcSocket

func CreateIpcSocket(path string) (net.Listener, error)

func LoadBase64Key

func LoadBase64Key(key string) (nacl.Key, error)

func NextPowerOf2

func NextPowerOf2(v int) int

func Sha3Hash

func Sha3Hash(payload []byte) []byte

func ToKey

func ToKey(src []byte) (nacl.Key, error)

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HttpClient is an interface for sending synchronous HTTP requests.

Jump to

Keyboard shortcuts

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