Documentation ¶
Index ¶
Constants ¶
View Source
const ( DisplayName = "Magnum CI" HandlerKey = "magnumci" MessageDirection = "out" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)
func NewHandler ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type MagnumciOutMessage ¶
type MagnumciOutMessage struct { ID int64 `json:"id,omitempty"` ProjectID int64 `json:"project_id,omitempty"` Title string `json:"title,omitempty"` Number int64 `json:"number,omitempty"` Commit string `json:"commit,omitempty"` Author string `json:"author,omitempty"` Committer string `json:"committer,omitempty"` Message string `json:"message,omitempty"` Branch string `json:"branch,omitempty"` State string `json:"state,omitempty"` Status string `json:"status,omitempty"` Result int64 `json:"result,omitempty"` Duration int64 `json:"duration,omitempty"` DurationString string `json:"duration_string,omitempty"` CommitURL string `json:"commit_url,omitempty"` CompareURL string `json:"compare_url,omitempty"` BuildURL string `json:"build_url,omitempty"` StartedAt string `json:"started_at,omitempty"` FinishedAt string `json:"finished_at,omitempty"` }
func MagnumciOutMessageFromBytes ¶
func MagnumciOutMessageFromBytes(bytes []byte) (MagnumciOutMessage, error)
Click to show internal directories.
Click to hide internal directories.