types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvSlackWebhook = "GHNOTIFY_SLACK_WEBHOOK"
)

Variables

View Source
var (
	ErrInvalidWebhookRequest = goerr.New("invalid webhook request")

	ErrInvalidConfig = goerr.New("invalid config")
)

Functions

This section is empty.

Types

type Context

type Context struct {
	context.Context
	// contains filtered or unexported fields
}

func NewContext

func NewContext(options ...ContextOption) *Context

func (*Context) Log

func (x *Context) Log() *slog.Logger

type ContextOption

type ContextOption func(c *Context)

func WithCtx

func WithCtx(ctx context.Context) ContextOption

func WithLogger

func WithLogger(logger *slog.Logger) ContextOption

Jump to

Keyboard shortcuts

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