Documentation ¶
Index ¶
Constants ¶
View Source
const ( DangerType = "danger" WarningType = "warning" SuccessType = "success" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) GetActionType ¶
func (*Handler) GetDefaultState ¶
func (*Handler) Handle ¶
func (ctx *Handler) Handle(msg goalpinejshandler.Message, res http.ResponseWriter, req *http.Request, messagePool *goalpinejshandler.MessagePool, tools *goalpinejshandler.Tools)
type HandlerArguments ¶
type State ¶
type State struct { MaxMessages int `json:"maxMessages"` Messages []Message `json:"messages"` // contains filtered or unexported fields }
func (*State) AddMessage ¶
func (*State) GetOldestMessage ¶
func (*State) MessagePoolFull ¶
func (*State) RemoveMessage ¶
func (*State) SetMaxMessages ¶
func (*State) UpdateOpenState ¶
type Toaster ¶
type Toaster struct { goalpinejshandler.ViewTools SuccessIcon goalpinejshandler.Component AttentionIcon goalpinejshandler.Component StopIcon goalpinejshandler.Component CloseButton goalpinejshandler.Component }
func NewToaster ¶
func NewToaster() *Toaster
Click to show internal directories.
Click to hide internal directories.