Documentation ¶
Index ¶
- Constants
- func AddStackTrace(e error) error
- func EnableErrorStackTrace()
- func Filter[T any](slice []T, f func(T) bool) []T
- func GetConfigEmail() string
- func GetStackTrace(e error) string
- func PrintStackTrace(e error, w io.Writer)
- func SendAllFromSlice[T any](ctx context.Context, out chan<- T, items []T) error
- func SendEvent(ctx context.Context, logger *zap.Logger, eventType string, ...)
- func SessionId() int64
- func StartProfiler()
Constants ¶
View Source
const (
BaseEvent = "BASE_EVENT"
)
View Source
const MEGABYTE = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func AddStackTrace ¶ added in v0.0.10
func EnableErrorStackTrace ¶ added in v0.0.10
func EnableErrorStackTrace()
func GetConfigEmail ¶ added in v0.0.10
func GetConfigEmail() string
func GetStackTrace ¶ added in v0.0.10
func PrintStackTrace ¶ added in v0.0.10
func SendAllFromSlice ¶ added in v0.0.10
SendAllFromSlice iterates over `items` and sends each one over `out` unless `ctx` is cancelled. Returns ctx.Err() if not all items were written to the channel.
func StartProfiler ¶
func StartProfiler()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.