Documentation
¶
Index ¶
- func Debug(format string, args ...interface{})
- func HandleHttpRequest(w http.ResponseWriter, r *http.Request, request, response interface{}, ...)
- func MurmurHash(args ...string) string
- func PerformHttpPost(client *http.Client, url string, request, response interface{}) error
- func Sha256Hash(args ...string) string
- func Sha3_224Hash(args ...string) string
- type SerializableError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleHttpRequest ¶
func HandleHttpRequest(w http.ResponseWriter, r *http.Request, request, response interface{}, actionFunc func())
func MurmurHash ¶
TODO: remove murmurhash, use sha256 for file locks
func PerformHttpPost ¶
func Sha256Hash ¶
func Sha3_224Hash ¶
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
Click to show internal directories.
Click to hide internal directories.