rpc

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCConfig

type RPCConfig struct {
	InfoFile  string
	ErrorFile string
	Level     string
}

RPCConfig is used to parse configuration file logger should be controlled with Options

type RPCLogger

type RPCLogger struct {
	*zapLogger.ZapLogger
	// contains filtered or unexported fields
}

RPCLogger is go-redis logger Hook

func NewRPCLogger

func NewRPCLogger(config *RPCConfig, opts ...RPCOption) (rl *RPCLogger, err error)

NewRPCLogger

func (*RPCLogger) Error

func (rl *RPCLogger) Error(ctx context.Context, msg string, fields ...logger.Field)

func (*RPCLogger) Info

func (rl *RPCLogger) Info(ctx context.Context, msg string, fields ...logger.Field)

type RPCOption

type RPCOption func(rl *RPCLogger)

Jump to

Keyboard shortcuts

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