Documentation
¶
Index ¶
- Variables
- func AdminClient() *resty.Client
- func AdminTLSClient() *resty.Client
- func DB() *db.DB
- func FileCountLine(filename string) (int, error)
- func FileHasLine(filename string, regex string) (bool, error)
- func FileLine(filename string, n int) (string, error)
- func GenerateTraceID() string
- func GetDeafultWorkspace() (*entities.Workspace, error)
- func InitDB(truncated bool, entities *EntitiesConfig) *db.DB
- func InitOtelOutput()
- func PathExist(_path string) bool
- func ProxyClient() *resty.Client
- func ProxyTLSClient() *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 ( OtelCollectorTracesFile = "../output/otel/traces.json" OtelCollectorMetricsFile = "../output/otel/metrics.json" )
Functions ¶
func AdminClient ¶
func AdminClient() *resty.Client
func AdminTLSClient ¶ added in v0.5.0
func AdminTLSClient() *resty.Client
func FileCountLine ¶ added in v0.3.0
func GenerateTraceID ¶ added in v0.4.0
func GenerateTraceID() string
func GetDeafultWorkspace ¶ added in v0.4.0
func InitOtelOutput ¶ added in v0.4.0
func InitOtelOutput()
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 TruncateFile ¶
func TruncateFile(filename string)
Types ¶
Click to show internal directories.
Click to hide internal directories.