Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + var ReallyCrash bool + func CompileRegexps(regexpStrings []string) ([]*regexp.Regexp, error) + func EncodeJSON(obj interface{}) string + func FlushLogs() + func Forever(f func(), period time.Duration) + func HandleCrash() + func InitLogs() + func IsCIdentifier(value string) bool + func IsDNS952Label(value string) bool + func IsDNSLabel(value string) bool + func IsDNSSubdomain(value string) bool + func IsValidPortNum(port int) bool + func NewLogger(prefix string) *log.Logger + func ObjectDiff(a, b interface{}) string + func ObjectGoPrintDiff(a, b interface{}) string + func StringDiff(a, b string) string + type ErrorList []error + func (list ErrorList) ToError() error + type FakeHandler struct + RequestBody string + RequestReceived *http.Request + ResponseBody string + StatusCode int + T LogInterface + func (f *FakeHandler) ServeHTTP(response http.ResponseWriter, request *http.Request) + func (f FakeHandler) ValidateRequest(t TestInterface, expectedPath, expectedMethod string, body *string) + type GlogWriter struct + func (writer GlogWriter) Write(data []byte) (n int, err error) + type IP net.IP + func (ip *IP) Set(value string) error + func (ip IP) String() string + type IPNet net.IPNet + func (ipnet *IPNet) Set(value string) error + func (ipnet IPNet) String() string + type IntOrString struct + IntVal int + Kind IntstrKind + StrVal string + func NewIntOrStringFromInt(val int) IntOrString + func NewIntOrStringFromString(val string) IntOrString + func (intstr *IntOrString) SetYAML(tag string, value interface{}) bool + func (intstr *IntOrString) UnmarshalJSON(value []byte) error + func (intstr IntOrString) GetYAML() (tag string, value interface{}) + func (intstr IntOrString) MarshalJSON() ([]byte, error) + type IntstrKind int + const IntstrInt + const IntstrString + type LogInterface interface + Logf func(format string, args ...interface{}) + type RateLimiter interface + CanAccept func() bool + Stop func() + func NewTokenBucketRateLimiter(qps float32, burst int) RateLimiter + type StringList []string + func (sl *StringList) Set(value string) error + func (sl *StringList) String() string + type StringSet map[string]empty + func NewStringSet(items ...string) StringSet + func (s StringSet) Delete(item string) + func (s StringSet) Has(item string) bool + func (s StringSet) HasAll(items ...string) bool + func (s StringSet) Insert(items ...string) + func (s StringSet) List() []string + func (s1 StringSet) IsSuperset(s2 StringSet) bool + type TestInterface interface + Errorf func(format string, args ...interface{}) + type Time struct + func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time + func Now() Time + func Unix(sec int64, nsec int64) Time + func (t *Time) SetYAML(tag string, value interface{}) bool + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) GetYAML() (tag string, value interface{}) + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) Rfc3339Copy() Time