Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SilentError = errors.New("SilentError")
SilentError is an error that triggers exit code 1 without any error messaging
Functions ¶
func Openbrowser ¶
func Openbrowser(url string)
func StoreAPICreds ¶
func StoreCreds ¶
func StoreCreds(cred *LoginResponse) error
Types ¶
type APICred ¶
func GetAPICreds ¶
type FlagError ¶
type FlagError struct {
Err error
}
FlagError is the kind of error raised in flag processing
type LoginResponse ¶
type LoginResponse struct {
XSign string `json:"xsign"`
XToken string `json:"xtoken"`
AppName string `json:"app_name"`
}
func GetCreds ¶
func GetCreds() (*LoginResponse, error)
type TempServer ¶
type TempServer struct {
Port string
Server *http.Server
RouteName string
HandlerFunc func(http.ResponseWriter, *http.Request)
}
func CreateTempServer ¶
func CreateTempServer(t TempServer) *TempServer
func (*TempServer) CloseServer ¶
func (t *TempServer) CloseServer()
Click to show internal directories.
Click to hide internal directories.