Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStatusNotOK = errors.New("response status code is not 200")
Functions ¶
func BotMain ¶
func BotMain[botType Bot](newBot func(*onlineconf.Module, SubscriptionStorage) (botType, error))
Types ¶
type Notification ¶
type Notification struct {
ID int `json:"id"`
Path string `json:"path"`
Version int `json:"version"`
ContentType string `json:"type"`
Value NullString `json:"value"`
MTime string `json:"mtime"`
Author string `json:"author"`
Comment string `json:"comment"`
Action string `json:"action"`
Notification string `json:"notification"`
Users map[string]string `json:"users"`
// contains filtered or unexported fields
}
func (*Notification) Text ¶
func (notification *Notification) Text() string
type NotificationsResponse ¶
type NotificationsResponse struct {
Notifications []Notification `json:"notifications"`
LastID int `json:"lastID"`
}
type NullString ¶
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(data []byte) error
type ProbeServer ¶ added in v0.2.2
func ProbeServerIfEnabled ¶ added in v0.2.2
func ProbeServerIfEnabled() ProbeServer
type Subscription ¶
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
onlineconf-mattermost-bot
command
|
|
|
onlineconf-myteam-bot
command
|
|
|
onlineconf-yamessenger-bot
command
|
Click to show internal directories.
Click to hide internal directories.