Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventSessionCreate = WebhookEvent("SESSION_CREATED") EventSessionCancelled = WebhookEvent("SESSION_CANCELLED") EventSessionCompleteed = WebhookEvent("SESSION_COMPLETED") EventFileUpload = WebhookEvent("FILE_UPLOAD") EventFileDelete = WebhookEvent("FILE_DELETE") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LancerValidator ¶
type LancerValidator struct {
Validator *validator.Validate
}
func (*LancerValidator) Validate ¶
func (lv *LancerValidator) Validate(i interface{}) error
type TaskManager ¶
type TaskManager struct {
// contains filtered or unexported fields
}
func NewTaskManager ¶
func NewTaskManager(repo *repo.Repo) *TaskManager
func (*TaskManager) CancelWithBaseTask ¶
func (tm *TaskManager) CancelWithBaseTask(path string, id string) error
func (*TaskManager) Execute ¶
func (tm *TaskManager) Execute(id string)
func (*TaskManager) ExtendDuration ¶
func (tm *TaskManager) ExtendDuration(id string, extension time.Duration)
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func NewWebhookNotifier ¶
func (*Webhook) SendEvent ¶
func (wh *Webhook) SendEvent(event WebhookEvent, payload interface{}) error
type WebhookEvent ¶
type WebhookEvent string
Click to show internal directories.
Click to hide internal directories.