helper

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminClient

func AdminClient() *resty.Client

func DB

func DB() *db.DB

func DefaultEndpoint

func DefaultEndpoint() *entities.Endpoint

func DefaultEvent

func DefaultEvent() *entities.Event

func DefaultSource

func DefaultSource() *entities.Source

func FileLine

func FileLine(filename string, n int) (string, error)

func InitDB

func InitDB(truncated bool, entities *EntitiesConfig) *db.DB

func ProxyClient

func ProxyClient() *resty.Client

func ResetDB

func ResetDB() error

func Start

func Start(envs map[string]string) (*app.Application, error)

Start starts WebhookX with given environment variables

func TruncateFile

func TruncateFile(filename string)

Types

type EntitiesConfig

type EntitiesConfig struct {
	Endpoints []*entities.Endpoint
	Sources   []*entities.Source
	Events    []*entities.Event
	Attempts  []*entities.Attempt
}

Jump to

Keyboard shortcuts

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