Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitbucketPayload ¶
type BitbucketPayload struct { Push struct { Changes []struct { New struct { Name string `json:"name"` } `json:"new"` } `json:"changes"` } `json:"push"` }
BitbucketPayload is the response Bitbucket
type GitLabPayload ¶
type GitLabPayload struct {
Ref string `json:"ref"`
}
GitLabPayload is the response from GitLab
type GithubPayload ¶
type GithubPayload struct {
Ref string `json:"ref"`
}
GithubPayload is the response from GitHub
type StashPayload ¶
type StashPayload struct { RefChanges []struct { RefID string `json:"refId"` } `json:"refChanges"` }
StashPayload is the response from Stash
type Watcher ¶
type Watcher struct { sync.Mutex Repositories []repository.Repo RepoChangeCh chan repository.Repo ErrCh chan error RcvDoneCh chan struct{} SndDoneCh chan struct{} // contains filtered or unexported fields }
Watcher is used to keep track of changes of the repositories
func New ¶
func New(repos []repository.Repo, hookSvr *config.HookSvrConfig, once bool) *Watcher
New create a new watcher, passing in the repositories, webhook listener config, and optional once flag
func (*Watcher) ListenAndServe ¶
ListenAndServe starts the listener server for hooks
Click to show internal directories.
Click to hide internal directories.