Documentation
¶
Index ¶
- func AddBanned(w http.ResponseWriter, r *http.Request, service, mode string, hLog *log.Logger)
- func AddHit(w http.ResponseWriter, r *http.Request, service, mode string, hLog *log.Logger)
- func BadRequest(w http.ResponseWriter, r *http.Request)
- func CreateCustomErrorLogFile(f string) *os.File
- func DownloadFile(filePath string, url string) (err error)
- func ErrorResponse(w http.ResponseWriter, msg string)
- func GenericCommand(args []string) (err error)
- func GenericCommandSH(comm string) (chunk []byte, err error)
- func GetIP(r *http.Request) string
- func GetRandomInt(min, max int) int
- func LoadJSONConfig(configjson []byte, c interface{})
- func LoadJSONFile(filePath string, data interface{})
- func MakeGetRequest(w http.ResponseWriter, url string, d interface{})
- func NewBanFile(f string) *log.Logger
- func NewHitsFile(f string) *log.Logger
- func PrettyPrintStruct(s interface{})
- func RemoveProtocolFromURL(url string) string
- func SendJSONToClient(w http.ResponseWriter, d interface{}, status int)
- func SendXMLToClient(w http.ResponseWriter, d interface{}, status int)
- func SliceContainsString(str string, slice []string) bool
- func ToFixedFloat64(untruncated float64, precision int) float64
- func WriteFile(filePath string, content string)
- func WriteJSONtoFile(filePath string, d interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCustomErrorLogFile ¶
CreateCustomErrorLogFile ...
func GenericCommandSH ¶
GenericCommandSH ...
func MakeGetRequest ¶
func MakeGetRequest(w http.ResponseWriter, url string, d interface{})
MakeGetRequest ...
func RemoveProtocolFromURL ¶
RemoveProtocolFromURL ...
func SendJSONToClient ¶
func SendJSONToClient(w http.ResponseWriter, d interface{}, status int)
SendJSONToClient ...
func SendXMLToClient ¶
func SendXMLToClient(w http.ResponseWriter, d interface{}, status int)
SendXMLToClient ...
func SliceContainsString ¶
SliceContainsString ... returns true/false
func ToFixedFloat64 ¶
ToFixedFloat64 (untruncated, num) -> untruncated.toFixed(num)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.