Documentation ¶
Index ¶
- Variables
- func Base64Decode(text string) (string, error)
- func Base64Encode(text string) string
- func Calculate(expression string) (string, error)
- func ConvertToTimeString(timestamp string) (string, error)
- func ConvertToTimestamp(timeString string) (string, error)
- func CreateAsciiFont()
- func DebugError(err error)
- func DebugInfo(message string)
- func DecodeJwt(input string, key string) (bool, string, error)
- func DiffTexts(left string, right string) (string, int)
- func FormatHttpErrorMessage(message string) error
- func FormatJson(raw string) (string, error)
- func FormatXml(raw string) string
- func GenerateAsciiArt(text string) (string, error)
- func GenerateUuids() (string, error)
- func GetLogFileName() (string, error)
- func GetNow() string
- func GetVersion() string
- func GzipDecode(text string) (string, error)
- func GzipEncode(text string) (string, error)
- func HasNewVersion() bool
- func HexDecode(text string) (string, error)
- func HexEncode(text string) string
- func InitLogger(customLogger *wails.CustomLogger)
- func InitUpgrade(currentVersion string)
- func IsBase64EncodedLatin1(text string) bool
- func IsInformation(obj error) bool
- func IsJson(input string) bool
- func IsXml(input string) bool
- func LoadLogFile() (string, error)
- func PutLogMessage(message string) (string, error)
- func ScanPorts(hostname string, fromPort int, toPort int) []string
- func UpgradeNow() error
- func UrlDecode(text string) (string, error)
- func UrlEncode(text string) string
- func WriteLogFile(text string) bool
- type CustomPage
- type CustomPages
- type Endpoint
- type GitHub
- type HtmlContent
- type HttpRequest
- type HttpResponse
- type HttpServer
- type Information
- type SshTunnel
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseChannel = make(chan HttpResponse)
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ConvertToTimeString ¶
func ConvertToTimestamp ¶
func CreateAsciiFont ¶
func CreateAsciiFont()
func DebugError ¶
func DebugError(err error)
func FormatHttpErrorMessage ¶
func FormatJson ¶
func GenerateAsciiArt ¶
func GenerateUuids ¶
func GetLogFileName ¶
func GetVersion ¶
func GetVersion() string
func GzipDecode ¶
func GzipEncode ¶
func HasNewVersion ¶
func HasNewVersion() bool
func InitLogger ¶
func InitLogger(customLogger *wails.CustomLogger)
func InitUpgrade ¶
func InitUpgrade(currentVersion string)
func IsBase64EncodedLatin1 ¶
func IsInformation ¶
func LoadLogFile ¶
func PutLogMessage ¶
func UpgradeNow ¶
func UpgradeNow() error
func WriteLogFile ¶
Types ¶
type CustomPage ¶
type CustomPage struct { Name string `json:"name"` Title string `xml:"title" json:"title"` Icon string `xml:"icon" json:"icon"` Tooltip string `xml:"tooltip" json:"tooltip"` Body HtmlContent `xml:"body"` BodyString string `json:"body"` }
func ReadCustomPagesXmlFile ¶
func ReadCustomPagesXmlFile() []CustomPage
type CustomPages ¶
type CustomPages struct { Root xml.Name `xml:"pages"` Pages []CustomPage `xml:"page"` }
type HtmlContent ¶
type HtmlContent struct {
Value string `xml:",innerxml"`
}
type HttpRequest ¶
type HttpRequest struct { Method string Url string Body string TimeoutSeconds int Header map[string]string }
func GenerateHttpRequest ¶
func GenerateHttpRequest(input string) (*HttpRequest, error)
func (HttpRequest) GetCurl ¶
func (request HttpRequest) GetCurl() string
func (HttpRequest) Perform ¶
func (request HttpRequest) Perform() HttpResponse
func (HttpRequest) Send ¶
func (request HttpRequest) Send()
type HttpResponse ¶
type HttpResponse struct { Code string Body []byte Failed bool ErrorMessage string ContentLength int ContentType string Header map[string][]string Duration int64 }
func (HttpResponse) IsOk ¶
func (response HttpResponse) IsOk() bool
type HttpServer ¶
type HttpServer struct { Server *http.Server Port string ResponseStatus int ResponseBody []byte ResponseContentType string }
func NewHttpServer ¶
func (HttpServer) Start ¶
func (httpServer HttpServer) Start() error
func (HttpServer) Stop ¶
func (httpServer HttpServer) Stop() error
type Information ¶
type Information struct {
Info string
}
func (*Information) Error ¶
func (info *Information) Error() string
Click to show internal directories.
Click to hide internal directories.