Documentation ¶
Index ¶
- Variables
- func ArrayContains(val interface{}, array interface{}) (exists bool, index int)
- func ArrayContainsRe(itr []string, value string) bool
- func ClearFeaturedCache(gameshort string)
- func ClearGameCache(gameshort string, version string)
- func ClearModCache(gameshort string, modid uint)
- func ClearModListCache(gameshort string, listid uint)
- func ClearPublisherCache(pubid uint)
- func ClearUserCache(userid uint)
- func CurrentGoroutineID() uint64
- func DumpJSON(data interface{}) string
- func EditObject(value interface{}, data map[string]interface{}) int
- func Format(format string, p map[string]interface{}) string
- func FromMap(data interface{}, values map[string]interface{}) error
- func GetFullJSON(ctx *iris.Context) map[string]interface{}
- func GetJSON(ctx *iris.Context, key string) interface{}
- func InvalidateCache(url string, values ...interface{})
- func LoadJSON(data string) map[string]interface{}
- func RandomHex(n int) (string, error)
- func ReadField(value *interface{}, field string) interface{}
- func RegisterDataTransformer(transformer DataTransformerFunc)
- func SendAutoUpdateNotification(followers []string, changelog string, username string, friendly_version string, ...)
- func SendConfirmation(userConfirmation string, userUsername string, userEmail string, ...)
- func SendGrantNotice(userUsername string, modUsername string, modName string, modID uint, ...)
- func SendMail(sender string, recipients []string, subject string, message string, ...)
- func SendReset(userUsername string, userPasswordReset string, userEmail string)
- func SendUpdateNotification(followers []string, changelog string, username string, friendly_version string, ...)
- func Ternary(condition bool, tVal interface{}, fVal interface{}) interface{}
- func ToMap(data interface{}) map[string]interface{}
- func WriteJSON(ctx *iris.Context, status int, v interface{}) error
- type DataTransformerFunc
- type ErrorMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidFunc func(cacheKey string)
Functions ¶
func ArrayContains ¶
func ArrayContainsRe ¶
func ClearFeaturedCache ¶
func ClearFeaturedCache(gameshort string)
func ClearGameCache ¶
func ClearModCache ¶
func ClearModListCache ¶
func ClearPublisherCache ¶
func ClearPublisherCache(pubid uint)
func ClearUserCache ¶
func ClearUserCache(userid uint)
func CurrentGoroutineID ¶
func CurrentGoroutineID() uint64
This function is terrible and I should feel bad. Borrowed from https://github.com/bradfitz/http2/blob/dc0c5c000ec33e263612939744d51a3b68b9cece/gotrack.go
func EditObject ¶
Return codes:
0: Everything is ok 1: Tried to edit a field that is locked 2: Tried to patch a field that doesnt exist 3: Invalid type
func GetFullJSON ¶
func GetFullJSON(ctx *iris.Context) map[string]interface{}
func InvalidateCache ¶
func InvalidateCache(url string, values ...interface{})
func RegisterDataTransformer ¶
func RegisterDataTransformer(transformer DataTransformerFunc)
func SendConfirmation ¶
func SendGrantNotice ¶
func SendUpdateNotification ¶
Types ¶
type DataTransformerFunc ¶
type DataTransformerFunc func(interface{}, map[string]interface{})
type ErrorMessage ¶
type ErrorMessage struct {
// contains filtered or unexported fields
}
func Error ¶
func Error(reasons ...string) ErrorMessage
func (ErrorMessage) Code ¶
func (error ErrorMessage) Code(codes ...int) iris.Map
Click to show internal directories.
Click to hide internal directories.