util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

func HandleHttpRequest

func HandleHttpRequest(w http.ResponseWriter, r *http.Request, request, response interface{}, actionFunc func())

func MurmurHash

func MurmurHash(args ...string) string

TODO: remove murmurhash, use sha256 for file locks

func PerformHttpPost

func PerformHttpPost(client *http.Client, url string, request, response interface{}) error

func Sha256Hash

func Sha256Hash(args ...string) string

func Sha3_224Hash

func Sha3_224Hash(args ...string) string

Types

type SerializableError

type SerializableError struct {
	Error error
}

func (SerializableError) MarshalJSON

func (obj SerializableError) MarshalJSON() ([]byte, error)

func (SerializableError) String

func (obj SerializableError) String() string

func (*SerializableError) UnmarshalJSON

func (obj *SerializableError) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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