Versions in this module Expand all Collapse all v1 v1.0.0 Jan 19, 2023 Changes in this version + func AccessId(id string, key string) string + func AccessKey() string + func AesDecrypt(text string, key string) (string, bool) + func AesEncrypt(text string, key string) (string, bool) + func AliyunRequestSign(request iris.Map) iris.Map + func Base64Decode(str string) string + func Base64Encode(str string) string + func CheckIPWhitelist(whitelist []string, addr string) bool + func CheckId(s string) bool + func CheckMapFields(object iris.Map, fields []string) ([]string, bool) + func CheckMapKeys(object iris.Map, keys []string) bool + func CheckMapValue(value interface{}, rule iris.Map) (interface{}, bool) + func CheckRequestParams(request iris.Map, params []string) ([]string, bool) + func CheckResponseResult(result []byte) ([]byte, bool) + func Compare(a, b interface{}) int + func ConcatRequestParams(request iris.Map, params []string) string + func ContainsPrefix(s string, values []string) bool + func ContainsSuffix(s string, values []string) bool + func ExportMapValue(value interface{}, rule iris.Map) interface + func ExtendMap(source iris.Map, target interface{}) iris.Map + func ExtendRecordset(recordset interface{}, records ...iris.Map) []iris.Map + func ExtractToken(req *http.Request, config *toml.Tree) string + func FilterRecordset(recordset []iris.Map, fn func(iris.Map) bool) []iris.Map + func FilterStringArray(array []string, fn func(string) bool) []string + func FilterUint64Array(array []uint64, fn func(uint64) bool) []uint64 + func FormatString(s string, params iris.Map) string + func GetBool(tree *toml.Tree, key string, values ...bool) bool + func GetCSV(value interface{}) []byte + func GetClaims(str string) jwt.MapClaims + func GetData(request iris.Map) ([]byte, bool) + func GetDuration(tree *toml.Tree, key string, values ...time.Duration) time.Duration + func GetFloat64(tree *toml.Tree, key string, values ...float64) float64 + func GetInt(tree *toml.Tree, key string, values ...int) int + func GetInt64(tree *toml.Tree, key string, values ...int64) int64 + func GetJSON(value interface{}) []byte + func GetMapRule(schema iris.Map, field string) (string, iris.Map) + func GetMapValueTypes(value interface{}) []string + func GetMimeType(rawurl string) string + func GetString(tree *toml.Tree, key string, values ...string) string + func GetStringArray(tree *toml.Tree, key string, values ...[]string) []string + func GetTree(tree *toml.Tree, key string) *toml.Tree + func GetUint64(tree *toml.Tree, key string, values ...uint64) uint64 + func HS256(str string, key string) string + func HS384(str string, key string) string + func HS512(str string, key string) string + func Hash(str string, config *toml.Tree, flag bool) string + func HexDecode(str string) string + func HexEncode(str string) string + func Id() string + func Integrity(value interface{}, config *toml.Tree) string + func Key(phrase string) string + func MD5(str string) string + func MapIntersects(source iris.Map, target iris.Map) bool + func MergeStringValues(value interface{}, values ...string) []string + func MergeUint64Values(value interface{}, values ...uint64) []uint64 + func NormalizeId(id string) string + func NormalizeMap(value interface{}) iris.Map + func NormalizeName(s string) string + func ParseBool(value interface{}, values ...bool) bool + func ParseErrorSource(str string) (string, string, bool) + func ParseFloat64(value interface{}, values ...float64) float64 + func ParseInt(value interface{}, values ...int) int + func ParseInt64(value interface{}, values ...int64) int64 + func ParseMap(value interface{}) iris.Map + func ParseMegabytes(value interface{}) int + func ParseMilliseconds(value interface{}) float64 + func ParseRecordset(value interface{}) []iris.Map + func ParseRows(rows *sql.Rows, offset int, limit int) ([]iris.Map, int) + func ParseSchedule(expr string) (cron.Schedule, bool) + func ParseString(value interface{}, values ...string) string + func ParseStringArray(value interface{}, values ...[]string) []string + func ParseTime(value interface{}, values ...time.Time) time.Time + func ParseTimestamp(value string) (time.Time, bool) + func ParseToken(str string, key string) (jwt.MapClaims, bool) + func ParseURL(rawurl string) (*url.URL, bool) + func ParseUint(value interface{}, values ...uint) uint + func ParseUint64(value interface{}, values ...uint64) uint64 + func ParseUint64Array(value interface{}, values ...[]uint64) []uint64 + func Plural(s string) string + func PostData(request iris.Map) ([]byte, bool) + func PrivateKeyDecodeString(str string) *rsa.PrivateKey + func PrivateKeyEncodeString(key *rsa.PrivateKey) string + func PublicKeyDecodeString(str string) *rsa.PublicKey + func PublicKeyEncodeString(key *rsa.PublicKey) string + func RecordsetContains(array []iris.Map, record iris.Map) bool + func RecordsetIndexOf(array []iris.Map, record iris.Map) int + func RegisterErrorHandlers(app *iris.Application, codes iris.Map) + func RegisterMacros(app *iris.Application) + func RegisterParties(app *iris.Application, parties iris.Map) + func RegisterScheduledTasks(app *iris.Application, jobs []Job) + func RetryGetData(request iris.Map, config *toml.Tree) ([]byte, bool) + func RetryPostData(request iris.Map, config *toml.Tree) ([]byte, bool) + func RouteResources(route context.RouteReadOnly, resource string) []string + func RsaDecrypt(text string, key *rsa.PrivateKey) (string, bool) + func RsaEncrypt(text string, key *rsa.PublicKey) (string, bool) + func ServeStaticFiles(app *iris.Application, path string) + func Sha256(str string) string + func Sha384(str string) string + func Sha512(str string) string + func Sign256(claims jwt.Claims, secret string) string + func Sign384(claims jwt.Claims, secret string) string + func Sign512(claims jwt.MapClaims, secret string) string + func SignClaims(claims jwt.MapClaims, config *toml.Tree, key ...string) string + func Signature(signature string, digest string, config *toml.Tree) string + func StringArrayContains(array []string, value string) bool + func StringArrayIndexOf(array []string, value string) int + func StringifyTime(t time.Time) string + func StripKeywords(s string, values []string) string + func Timestamp(milliseconds float64) time.Time + func Token(header string, signature string) string + func TransformMap(input iris.Map, transform iris.Map) iris.Map + func TransformRecordset(recordset []iris.Map, transform iris.Map) []iris.Map + func TransformRecordsetArray(inputs [][]iris.Map, transform iris.Map) [][]iris.Map + func Uint64ArrayContains(array []uint64, value uint64) bool + func Uint64ArrayIndexOf(array []uint64, value uint64) int + func WrapError(err error) error + type Job struct + Schedule string + Task func()