cmd

package
v0.0.0-...-ab4bdeb Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTiDBEncoder

func NewTiDBEncoder(cfg zapcore.EncoderConfig) *tidbEncoder

func RunRootCommand

func RunRootCommand(rootCmd *cobra.Command)

Types

type AtomicWriteSyncer

type AtomicWriteSyncer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

AtomicWriteSyncer is a WriteSyncer that can be updated online.

func BuildLogger

func BuildLogger(cfg *config.Log) (*zap.Logger, *AtomicWriteSyncer, zap.AtomicLevel, error)

func (*AtomicWriteSyncer) Close

func (ws *AtomicWriteSyncer) Close() error

Close closes logger.

func (*AtomicWriteSyncer) Rebuild

func (ws *AtomicWriteSyncer) Rebuild(cfg *config.LogOnline) error

Rebuild creates a new output and replaces the current one.

func (*AtomicWriteSyncer) Sync

func (ws *AtomicWriteSyncer) Sync() error

Sync implements WriteSyncer.Sync().

func (*AtomicWriteSyncer) Write

func (ws *AtomicWriteSyncer) Write(p []byte) (n int, err error)

Write implements WriteSyncer.Write().

Jump to

Keyboard shortcuts

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