helper

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OtelCollectorTracesFile  = test.FilePath("output/otel/traces.json")
	OtelCollectorMetricsFile = test.FilePath("output/otel/metrics.json")
)

Functions

func AdminClient

func AdminClient() *resty.Client

func AdminTLSClient added in v0.5.0

func AdminTLSClient() *resty.Client

func DB

func DB() *db.DB

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 GenerateTraceID added in v0.4.0

func GenerateTraceID() string

func GetDeafultWorkspace added in v0.4.0

func GetDeafultWorkspace() (*entities.Workspace, error)

func InitDB

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

func InitOtelOutput added in v0.4.0

func InitOtelOutput()

func PathExist added in v0.4.0

func PathExist(_path string) bool

func ProxyClient

func ProxyClient() *resty.Client

func ProxyTLSClient added in v0.5.0

func ProxyTLSClient() *resty.Client

func Start

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

Start starts WebhookX with given environment variables

func StatusClient added in v0.8.0

func StatusClient() *resty.Client

func TruncateFile

func TruncateFile(filename string) error

Types

type EntitiesConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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