Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
Action portion of a Telex payload. Defined separately to ease construction via composite literals.
type Client ¶
Client for communicating with telex.
func FromContext ¶
FromContext retrieves the Client value stored in ctx, if any.
type Notification ¶
type Notification struct { Title string `json:"title"` Body string `json:"body"` Target Target `json:"target"` Action Action `json:"action"` }
Notification message accepted by Telex.
func (Notification) Validate ¶
func (n Notification) Validate() error
Validate that a Notification contains everything it needs to.
type Result ¶
type Result struct {
ID string `json:"id"`
}
Result from telex containing the ID of the created notification.
Click to show internal directories.
Click to hide internal directories.