Documentation ¶
Index ¶
- func AddCidrToIP(ip string) string
- func Api_init() *echo.Echo
- func GetFileNameFromFullPath(f string) string
- func Irc_init(config *Configuration) *serverData
- func Is_valid_cidr(cidr string) bool
- func Is_valid_ip(ip string) bool
- func RemoveLastChar(w string) string
- func StripCidrFromIP(ip string) string
- type Configuration
- type RetGlineData
- type RetGlineDatas
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCidrToIP ¶
Returns ip/32 if ipv4 address provided without cidr Returns ip/128 if ipv6 address provided without cidr Returns ip unchanged if char '/' is present in string ip
func GetFileNameFromFullPath ¶
func Irc_init ¶
func Irc_init(config *Configuration) *serverData
func Is_valid_cidr ¶
func Is_valid_ip ¶
func RemoveLastChar ¶
func StripCidrFromIP ¶
Types ¶
type Configuration ¶
type Configuration struct { Server string Channels []string Nick string Ident string Name string ConnectCmds []string // contains filtered or unexported fields }
func ReadConf ¶
func ReadConf(filename string) Configuration
type RetGlineData ¶
type RetGlineDatas ¶
type RetGlineDatas struct {
RetGlineData []RetGlineData `json:"glines"`
}
Click to show internal directories.
Click to hide internal directories.