Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { // Global settings Host string // User that owns the repository User *model.User // Repository being built. Repo *model.Repo // Commit being built Commit *model.Commit }
Context represents the context of an in-progress build request.
type Email ¶
type Hipchat ¶
type IRC ¶
type IRC struct { Channel string `yaml:"channel,omitempty"` Nick string `yaml:"nick,omitempty"` Server string `yaml:"server,omitempty"` Started bool `yaml:"on_started,omitempty"` Success bool `yaml:"on_success,omitempty"` Failure bool `yaml:"on_failure,omitempty"` SSL bool `yaml:"ssl,omitempty"` ClientStarted bool Client *irc.Conn }
type Notification ¶
type Notification struct { Email *Email `yaml:"email,omitempty"` Webhook *Webhook `yaml:"webhook,omitempty"` Hipchat *Hipchat `yaml:"hipchat,omitempty"` Irc *IRC `yaml:"irc,omitempty"` }
Notification stores the configuration details for notifying a user, or group of users, when their Build has completed.
func (*Notification) Send ¶
func (n *Notification) Send(context *Context) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.