Documentation
¶
Overview ¶
Package framework exposes helpers for robot pre handling of http request
Package framework exposes helpers for robot event handling template interface ¶
Package framework exposes helpers for robot logger ¶
Package framework exposes helpers for robot http server
Index ¶
Constants ¶
View Source
const ( PushEvent = "Push Hook" IssueEvent = "Issue Hook" PullRequestEvent = "Merge Request Hook" NoteEvent = "Note Hook" )
Variables ¶
This section is empty.
Functions ¶
func SetRobotUserID ¶ added in v0.2.0
func SetRobotUserID(userID string)
func StartupServer ¶
func StartupServer(httpServer *http.Server, opt config.FrameworkOptions)
Types ¶
type GenericHandlerFunc ¶
type HandlerRegister ¶
type HandlerRegister interface { RegisterIssueHandler(GenericHandlerFunc) RegisterIssueCommentHandler(GenericHandlerFunc) RegisterPullRequestHandler(GenericHandlerFunc) RegisterPullRequestCommentHandler(GenericHandlerFunc) RegisterPushEventHandler(GenericHandlerFunc) }
Click to show internal directories.
Click to hide internal directories.