models

package
v0.0.0-...-6cdb919 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusWaiting = "waiting"
	StatusSuccess = "success"
	StatusFailed  = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	ID               uint
	Enabled          bool
	URL              string
	SSLVerifyEnabled bool
	Description      string
	Secret           string
	Triggers         string
	ResourceType     string
	ResourceID       uint
	CreatedAt        time.Time
	CreatedBy        uint
	UpdatedAt        time.Time
	UpdatedBy        uint
}

type WebhookLog

type WebhookLog struct {
	ID              uint
	WebhookID       uint
	EventID         uint
	URL             string
	RequestHeaders  string
	RequestData     string
	ResponseHeaders string
	ResponseBody    string
	Status          string
	ErrorMessage    string
	CreatedAt       time.Time
	CreatedBy       uint
	UpdatedAt       time.Time
}

type WebhookLogWithEventInfo

type WebhookLogWithEventInfo struct {
	WebhookLog
	EventType    string
	ResourceType string
	ResourceName string
	ResourceID   uint
	Extra        *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL