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 (*Context) Logger ¶
func (c *Context) Logger() *zap.SugaredLogger
func (Context) WithTimeout ¶
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.
Click to show internal directories.
Click to hide internal directories.