durable

package
v0.0.0-...-6a014dc Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDatabaseClient

func OpenDatabaseClient(ctx context.Context) *sql.DB

Types

type Logger

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

func BuildLogger

func BuildLogger(client *LoggerClient, name string, r *http.Request) *Logger

func (*Logger) Debug

func (logger *Logger) Debug(v ...interface{})

func (*Logger) Debugf

func (logger *Logger) Debugf(format string, v ...interface{})

func (*Logger) Error

func (logger *Logger) Error(v ...interface{})

func (*Logger) Errorf

func (logger *Logger) Errorf(format string, v ...interface{})

func (*Logger) FillResponse

func (logger *Logger) FillResponse(status int, responseSize int64, latency time.Duration)

func (*Logger) Info

func (logger *Logger) Info(v ...interface{})

func (*Logger) Infof

func (logger *Logger) Infof(format string, v ...interface{})

func (*Logger) Panicln

func (logger *Logger) Panicln(v ...interface{})

type LoggerClient

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

func NewLoggerClient

func NewLoggerClient(project string, syslog bool) (*LoggerClient, error)

func (*LoggerClient) Close

func (client *LoggerClient) Close() error

Jump to

Keyboard shortcuts

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