common

package
v0.0.0-...-569b2ae Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// RootCallEndpoint - global const defining the base endpoint for calls
	RootCallEndpoint = "/call"
)

Variables

This section is empty.

Functions

func SHA3Bytes

func SHA3Bytes(b []byte) []byte

SHA3Bytes - generate and return SHA3 hash of specified byte array

func SHA3String

func SHA3String(b []byte) string

SHA3String - generate and return SHA3 string-value hash of specified byte array

func SHA3URLSafeString

func SHA3URLSafeString(b []byte) string

SHA3URLSafeString - generate and return SHA3 string-value hash of specified byte array

func ToBytes

func ToBytes(object interface{}) ([]byte, error)

ToBytes - attempt to encode specified interface to byte array

Types

type Console

type Console int // Log buffer

Console - type for logging ¯\_(ツ)_/¯

func (*Console) HelloHTTP

func (console *Console) HelloHTTP() (string, error)

HelloHTTP - a little hello go-rpcify call

func (*Console) HelloWorld

func (console *Console) HelloWorld(con *Console, reply *string) error

HelloWorld - a little hello go-rpcify call

Jump to

Keyboard shortcuts

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