Documentation ¶
Index ¶
- func EnvInt(name string, defaultVal int) int
- func EnvString(name string, defaultVal string) string
- func EnvUint64(name string, defaultVal uint64) uint64
- func LockPartition(ns string, max, ttl uint64) (uint64, error)
- func MeasureI(measurement string, val int64)
- func MeasureT(measurement string, t time.Time)
- func ParseRedisUrl() (string, string, error)
- func ParseToken(r *http.Request) (string, error)
- func RoundTime(t time.Time, d time.Duration) time.Time
- func WriteJson(w http.ResponseWriter, status int, data interface{})
- func WriteJsonBytes(w http.ResponseWriter, status int, b []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRedisUrl ¶
func WriteJsonBytes ¶
func WriteJsonBytes(w http.ResponseWriter, status int, b []byte)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.