Documentation ¶
Index ¶
- func AvailableButtonIds() []string
- func FileExists(path string) bool
- func Setup()
- func StartServerOrCrash(addr string, baseUrl string)
- type Button
- type GetButtons
- type GetLogs
- type LogEntry
- type LogSummaryEntry
- type ParameterDef
- type PostPush
- type ServeAsset
- type ServeIndex
- type ServeLog
- type ServeLogIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableButtonIds ¶
func AvailableButtonIds() []string
func FileExists ¶
func StartServerOrCrash ¶
Types ¶
type Button ¶
type Button struct { Id string Title string Parameters []ParameterDef }
func AvailableButtons ¶
func AvailableButtons() []Button
type GetButtons ¶
type GetButtons struct{}
func (GetButtons) ServeHTTP ¶
func (handler GetButtons) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LogEntry ¶
type LogEntry struct { LogSummaryEntry Stdouterr string }
type LogSummaryEntry ¶
type LogSummaryEntry struct { PushId string ButtonId string Timestamp string DateTimeUTC string Title string Cmd string }
func AvailableLogs ¶
func AvailableLogs() ([]LogSummaryEntry, error)
type ParameterDef ¶
type ServeAsset ¶
type ServeAsset struct{}
func (ServeAsset) ServeHTTP ¶
func (handler ServeAsset) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ServeIndex ¶
type ServeIndex struct {
// contains filtered or unexported fields
}
func (ServeIndex) ServeHTTP ¶
func (handler ServeIndex) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ServeLogIndex ¶
type ServeLogIndex struct {
// contains filtered or unexported fields
}
func (ServeLogIndex) ServeHTTP ¶
func (handler ServeLogIndex) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.