Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbortWithError ¶
utility formatting API error to the client
func GenerateNonce ¶
func GenerateNonce() uint32
func GenerateRandomBytes ¶
Types ¶
type Error ¶
type Error struct { Err struct { Code int `json:"code"` Status string `json:"status"` Message string `json:"message"` Context []interface{} `json:"context"` } `json:"error"` }
func NewUnknownError ¶
func NewUnknownError() *Error
type SimpleTimeService ¶
type SimpleTimeService struct{}
var DefaultTimeService *SimpleTimeService
func (*SimpleTimeService) Nano ¶
func (t *SimpleTimeService) Nano() int64
func (*SimpleTimeService) Now ¶
func (*SimpleTimeService) Now() time.Time
func (*SimpleTimeService) Unix ¶
func (t *SimpleTimeService) Unix() int64
func (*SimpleTimeService) UnixUint64 ¶
func (t *SimpleTimeService) UnixUint64() uint64
type TimeService ¶
Click to show internal directories.
Click to hide internal directories.