models

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScraphookMessages

type ScraphookMessages struct {
	Id        string     `json:"id" gorm:"primaryKey;size:64"`
	WebhookId string     `json:"webhook_id" gorm:"size:64"`
	Message   string     `json:"message" gorm:"type:jsonb"`
	Signature string     `json:"signature"`
	CreatedAt *time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP"`
}

type ScraphookWebhooks

type ScraphookWebhooks struct {
	Id          string     `json:"id" gorm:"primaryKey;size:64"`
	Description string     `json:"description"`
	CreatedAt   *time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP"`
	UpdatedAt   *time.Time `json:"updated_at"`
}

type ScraphookWebhooksForwardingEndpoints

type ScraphookWebhooksForwardingEndpoints struct {
	Id                          string     `json:"id" gorm:"primaryKey"`
	WebhookId                   string     `json:"webhook_id" gorm:"size:64"`
	Description                 string     `json:"description"`
	EndpointUrl                 string     `json:"endpoint_url"`
	ForwardingRuleRegex         string     `json:"forwarding_rule_regex"`
	ForwardingRuleRegexNegative string     `json:"forwarding_rule_regex_negative"`
	CreatedAt                   *time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP"`
	UpdatedAt                   *time.Time `json:"updated_at"`
	DeletedAt                   *time.Time `json:"deleted_at"`
}

type ScraphookWebhooksForwardingLogs

type ScraphookWebhooksForwardingLogs struct {
	Id        string `json:"id" gorm:"primaryKey;size:64"`
	WebhookId string `json:"webhook_id" gorm:"size:64"`

	MessageId string             `json:"message_id" gorm:"size:64"`
	Message   *ScraphookMessages `json:"message"`

	EndpointId string                                `json:"endpoint_id" gorm:"size:64"`
	Endpoint   *ScraphookWebhooksForwardingEndpoints `json:"endpoint"`

	RequestUrl     string `json:"request_url"`
	RequestHeaders string `json:"request_headers"`
	RequestBody    string `json:"request_body"`

	ResponseStatus  int    `json:"response_status"`
	ResponseHeaders string `json:"response_headers"`
	ResponseBody    string `json:"response_body"`

	CreatedAt *time.Time `json:"created_at" gorm:"default:CURRENT_TIMESTAMP"`
}

Jump to

Keyboard shortcuts

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