hawk

package
v0.0.0-...-4009bfd Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HawkCatcher *hawkGo.Catcher

Global catcher instance

Functions

func Catch

func Catch(incomingError error)

func Init

func Init() error

Initialize global Hawk Catcher

Types

type HawkCatcherConfig

type HawkCatcherConfig struct {
	// Hawk token
	Token string `env:"HAWK_TOKEN"`

	// Cache size
	BulkSize int `env:"HAWK_BULK_SIZE" envDefault:"10"`

	// Whether enable source code reading
	SourceCodeEnabled bool `env:"HAWK_SOURCE_CODE_ENABLED"  envDefault:"false"`

	// Hawk collector URL
	URL string `env:"HAWK_URL"`
}

HawkCatcherConfig is loaded from environment (ex: .env file)

Jump to

Keyboard shortcuts

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