Documentation ¶
Index ¶
- func CacheCountWithPrefix(prefix string) (int, error)
- func CacheDelete(prefix, key string) (err error)
- func CacheDeleteWithPrefix(prefix string) error
- func CacheDeleteWithRawKey(key string) (err error)
- func CacheFindExistingKey(key string) bool
- func CacheGet(prefix, key string, v interface{}) (err error)
- func CacheGetAllKey(prefix string) (keys []string, err error)
- func CacheGetString(prefix, key string) (value string, err error)
- func CacheGetWithRawKey(key string, v interface{}) (err error)
- func CacheSet(prefix, key string, v interface{}) (err error)
- func CacheSetWithTimeDuration(prefix, key string, v interface{}, t time.Duration) (err error)
- func ExistingKeyInMap(in interface{}, key string) bool
- func GenerateApiToken() (err error)
- func GenerateSelfSignCert()
- func GetCacheValAsInt64(key string, c *bigcache.BigCache) (v int64, err error)
- func GetCacheValAsString(key string, c *bigcache.BigCache) (v string, err error)
- func GetEgressInterfaceIpv4Addr() (addr string, err error)
- func GetSecureInterfaceIpv4Addr() (addr string, err error)
- func Int64ToString(s int64) (v string)
- func InterfaceToMap(in interface{}) map[string]interface{}
- func InterfaceToString(v interface{}) (s string, err error)
- func IsIpv4(ip string) bool
- func IsRootPrivilege() (v bool)
- func ParseURL(link string) (schema, host, port string, err error)
- func RedisCache() *redis.Client
- func ResolveAllIp(hostname string) (address []string, err error)
- func ResolveIp(hostname string) (address string, err error)
- func SecretGenerator(l int) string
- func SetCacheFromInt64(key string, v int64, c *bigcache.BigCache) (err error)
- func SetupCache()
- func StringContains(s []string, str string) bool
- func StringToInt64(s string) (v int64, err error)
- func Transcode(in, out interface{})
- type AppCredentialsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheCountWithPrefix ¶
func CacheDelete ¶
func CacheDeleteWithPrefix ¶
func CacheDeleteWithRawKey ¶
func CacheFindExistingKey ¶
func CacheGetAllKey ¶
func CacheGetString ¶
func CacheGetWithRawKey ¶
func ExistingKeyInMap ¶
func GenerateApiToken ¶
func GenerateApiToken() (err error)
func GenerateSelfSignCert ¶
func GenerateSelfSignCert()
func GetCacheValAsInt64 ¶
func GetCacheValAsString ¶
func Int64ToString ¶
func InterfaceToMap ¶
func InterfaceToMap(in interface{}) map[string]interface{}
func InterfaceToString ¶
func IsRootPrivilege ¶
func IsRootPrivilege() (v bool)
func RedisCache ¶
func RedisCache() *redis.Client
func ResolveAllIp ¶
func SecretGenerator ¶
func SetCacheFromInt64 ¶
func SetupCache ¶
func SetupCache()
func StringContains ¶
func StringToInt64 ¶
Types ¶
type AppCredentialsType ¶
type AppCredentialsType struct {
APIToken string `yaml:"api_token"`
}
var (
AppCredentials AppCredentialsType = AppCredentialsType{}
)
Click to show internal directories.
Click to hide internal directories.