utils

package
v0.0.0-...-75c4490 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormattedErrorGenerator

func FormattedErrorGenerator(c *gin.Context, statusCode int, error string, message string, templateData ...interface{})

func GenerateHMACSignature

func GenerateHMACSignature(payload []byte, secret string) string

func SendWebhook

func SendWebhook(url string, secret string, event string, data interface{}) error

func UploadImage

func UploadImage(c *gin.Context, fieldName string, destFolder string) (string, error)

Types

type WebhookPayload

type WebhookPayload struct {
	Event     string      `json:"event"`
	Timestamp int64       `json:"timestamp"`
	Data      interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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