webhook

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count added in v0.24.0

func Count() (int64, error)

func Create

func Create(data *CreateWebhookParam) (string, error)

func Delete

func Delete(data *DeleteWebhookParam) error

func Fetch

func Fetch(data *FetchWebhookParam) (*tables.Webhook, error)

func FetchAll

func FetchAll() ([]*tables.Webhook, error)

Types

type CreateWebhookParam added in v0.24.0

type CreateWebhookParam struct {
	TargetId string `json:"target_id" binding:"required"`
	Remark   string `json:"remark"`
}

type DeleteWebhookParam added in v0.24.0

type DeleteWebhookParam = FetchWebhookParam

type FetchWebhookParam added in v0.24.0

type FetchWebhookParam struct {
	Rd       uint   `json:"rd"`
	TargetId string `json:"target_id"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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