app

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterceptorLogger

func InterceptorLogger(l log.FieldLogger) logging.Logger

InterceptorLogger adapts logrus logger to interceptor logger. This code is simple enough to be copied and not imported.

Types

type App

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

func NewApp

func NewApp(cnf *config.Config, onlyServeDns, noServeDns bool) (*App, error)

func (*App) Config

func (a *App) Config() *config.Config

func (*App) Run

func (a *App) Run() error

type Closeable

type Closeable interface {
	Close() error
}

type Runnable

type Runnable interface {
	Run(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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