Documentation
¶
Index ¶
- Variables
- func CloneByteSlice(source []byte) ([]byte, []byte, error)
- func CloneBytes(reader *bytes.Reader) []byte
- func FriendlyTimestamp() string
- func LoadEnvVarOrFallback(varId string, fallback string) string
- func LoadEnvVarOrPanic(varId string) string
- func ProcessCustomError(block string, customError string) error
- func ProcessCustomHttpError(block string, customError string, eCode int, w http.ResponseWriter) error
- func ProcessError(block string, caughtError error)
- func ProcessHttpError(block string, caughtError error, eCode int, w http.ResponseWriter)
- func SimpleWriteJSON(w http.ResponseWriter, respVal interface{})
- func UnixMsTimestamp() int64
- type ContextKey
- type ContextKeyring
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BasicKeyring = MakeContextKeyring()
)
Functions ¶
func CloneBytes ¶
func FriendlyTimestamp ¶
func FriendlyTimestamp() string
func LoadEnvVarOrFallback ¶
func LoadEnvVarOrPanic ¶
func ProcessCustomError ¶
func ProcessCustomHttpError ¶
func ProcessError ¶
func ProcessHttpError ¶
func ProcessHttpError(block string, caughtError error, eCode int, w http.ResponseWriter)
func SimpleWriteJSON ¶
func SimpleWriteJSON(w http.ResponseWriter, respVal interface{})
func UnixMsTimestamp ¶
func UnixMsTimestamp() int64
Types ¶
type ContextKey ¶
type ContextKey string
type ContextKeyring ¶
type ContextKeyring map[string]ContextKey
func MakeContextKeyring ¶
func MakeContextKeyring() ContextKeyring
func (ContextKeyring) AddKeyToRing ¶
func (r ContextKeyring) AddKeyToRing(key string)
func (ContextKeyring) UseKey ¶
func (r ContextKeyring) UseKey(key string) ContextKey
Click to show internal directories.
Click to hide internal directories.