Documentation
¶
Index ¶
- Variables
- func GetCurrentPath() string
- func GetMacAddress() string
- func GetOutboundIP() net.IP
- func GetTempFolder() string
- func GetUUID() string
- func Response2Json(r *http.Response) string
- func SetupManager()
- func UnZip(src string, dest string) ([]string, error)
- type ApiDef
- type CLI
- type CLIOption
- type Config
- type EmbedData
- type KitService
- type RequestData
- type ResponseData
- type SpaceData
- type Tracer
Constants ¶
This section is empty.
Variables ¶
View Source
var Build string
View Source
var TraceMe = &Tracer{ui: createUI(), level: 0}
View Source
var Version = version{1, 2, 3, "dev", "Chuck Norris"}
Functions ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func GetMacAddress ¶
func GetMacAddress() string
func GetOutboundIP ¶
https://stackoverflow.com/questions/23558425/how-do-i-get-the-local-ip-address-in-go Get preferred outbound ip of this machine
func GetTempFolder ¶
func GetTempFolder() string
func Response2Json ¶
func SetupManager ¶
func SetupManager()
Types ¶
type ApiDef ¶
type ApiDef struct {
Name string `json:"name"`
Url string `json:"url"`
Route string `json:"route"`
Method string `json:"method"`
Parameters map[string]interface{} `json:"parameters"`
Headers map[string]interface{} `json:"headers"`
Body map[string]interface{} `json:"body"`
Response string `json:"response"`
Extra map[string]interface{} `json:"extra"`
}
type KitService ¶
type KitService struct {
// contains filtered or unexported fields
}
type RequestData ¶
type ResponseData ¶
type SpaceData ¶
type SpaceData struct {
Token string `json:"token"`
Name string `json:"name"`
Timestamp string `json:"timestamp,omitempty"`
Desc string `json:"desc"`
}
func LocalSpaceData ¶
func NewSpaceData ¶
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) SetDebugMode ¶
Click to show internal directories.
Click to hide internal directories.