Documentation
¶
Index ¶
- Variables
- func AdminClient() *resty.Client
- func DB() *db.DB
- func DefaultEndpoint() *entities.Endpoint
- func DefaultEvent() *entities.Event
- func DefaultSource() *entities.Source
- func FileCountLine(filename string) (int, error)
- func FileHasLine(filename string, regex string) (bool, error)
- func FileLine(filename string, n int) (string, error)
- func InitDB(truncated bool, entities *EntitiesConfig) *db.DB
- func ProxyClient() *resty.Client
- func ResetDB() error
- func Start(envs map[string]string) (*app.Application, error)
- func TruncateFile(filename string)
- type EntitiesConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OtelCollectorMetricsFile = "/tmp/otel/metrics.json"
)
Functions ¶
func AdminClient ¶
func AdminClient() *resty.Client
func DefaultEndpoint ¶
func DefaultEvent ¶
func DefaultSource ¶
func FileCountLine ¶ added in v0.3.0
func ProxyClient ¶
func ProxyClient() *resty.Client
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 ¶
Click to show internal directories.
Click to hide internal directories.