Documentation
¶
Index ¶
- func CheckRedisFunctionality() string
- func ConnectRedis(redis_server_ip string, redis_server_port string, redis_server_password string, ...) (*redis.Client, error)
- func DelRedis(key string, value string, client *redis.Client) bool
- func ReadConfig(config_file string) map[string]string
- func ReadRedis(key string, value string, client *redis.Client) bool
- func RunWebServer(port int)
- func ValidateDomain(domain string) bool
- func ValidateIP(ip string) bool
- func ValidateIPV4(ip string) bool
- func ValidateIPV6(ip string) bool
- func WriteRedis(key string, value string, client *redis.Client) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRedisFunctionality ¶
func CheckRedisFunctionality() string
func ConnectRedis ¶
func ConnectRedis(redis_server_ip string, redis_server_port string, redis_server_password string, redis_server_db string) (*redis.Client, error)
ConnectRedis will connect to redis-server and return a redis client
func ReadConfig ¶
ReadConfig will read config file and return a map of config values
func RunWebServer ¶
func RunWebServer(port int)
func ValidateDomain ¶
ValidateDomain will validate domain name
func ValidateIP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.