core

package
v0.0.0-...-7fb09d6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingSetup

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

func NewLoggingSetup

func NewLoggingSetup() (*LoggingSetup, error)

func (*LoggingSetup) Logger

func (s *LoggingSetup) Logger() *zap.Logger

func (*LoggingSetup) ReplaceGlobals

func (s *LoggingSetup) ReplaceGlobals() func()

ReplaceGlobals replaces the global zap and standard loggers before returning a function to restore the original values.

func (*LoggingSetup) SetLevel

func (s *LoggingSetup) SetLevel(level zapcore.Level)

type Program

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

func NewProgram

func NewProgram(ctx context.Context, logger *zap.Logger, app *kingpin.Application) (*Program, error)

func (*Program) Run

func (p *Program) Run(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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