helper

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OtelCollectorMetricsFile = "/tmp/otel/metrics.json"
)

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 FileCountLine added in v0.3.0

func FileCountLine(filename string) (int, error)

func FileHasLine added in v0.3.0

func FileHasLine(filename string, regex string) (bool, error)

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
	AttemptDetails []*entities.AttemptDetail
	Plugins        []*entities.Plugin
}

Jump to

Keyboard shortcuts

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