app

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(logFilePath string) (*zap.SugaredLogger, error)

Types

type Context

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

Context implements types.Context for sharing the log, env, and config with all code.

func NewContext

func NewContext(ctx context.Context, config *config.Config, env *types.Env, log *zap.SugaredLogger) *Context

func (*Context) Config

func (c *Context) Config() *config.Config

func (*Context) Context

func (c *Context) Context() context.Context

func (*Context) Env

func (c *Context) Env() *types.Env

func (*Context) Logger

func (c *Context) Logger() *zap.SugaredLogger

func (Context) WithTimeout

func (c Context) WithTimeout(d time.Duration) (*Context, context.CancelFunc)

WithTimeout returns a derived context with a deadline. Call cancel to release resources associated with the context as soon as the operation running in the context complete.

Jump to

Keyboard shortcuts

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