tools

package
v0.0.0-...-1c71fa7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 DelRedis

func DelRedis(key string, value string, client *redis.Client) bool

func ReadConfig

func ReadConfig(config_file string) map[string]string

ReadConfig will read config file and return a map of config values

func ReadRedis

func ReadRedis(key string, value string, client *redis.Client) bool

func RunWebServer

func RunWebServer(port int)

func ValidateDomain

func ValidateDomain(domain string) bool

ValidateDomain will validate domain name

func ValidateIP

func ValidateIP(ip string) bool

func ValidateIPV4

func ValidateIPV4(ip string) bool

ValidateIPV4 will validate ipv4 address

func ValidateIPV6

func ValidateIPV6(ip string) bool

ValidateIPV6 will validate ipv6 address

func WriteRedis

func WriteRedis(key string, value string, client *redis.Client) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL