mock

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	pgxmock.PgxPoolIface
}

func NewMockClient

func NewMockClient() *Client

type Handler added in v0.8.0

type Handler struct {
	mock.Mock
}

func NewHandler added in v0.8.0

func NewHandler() *Handler

func (*Handler) DebugContext added in v0.8.0

func (h *Handler) DebugContext(ctx context.Context, msg string, args ...any)

func (*Handler) ErrorContext added in v0.8.0

func (h *Handler) ErrorContext(ctx context.Context, msg string, args ...any)

type Logger added in v0.8.0

type Logger struct {
	mock.Mock
}

func NewLogger added in v0.8.0

func NewLogger() *Logger

func (*Logger) Log added in v0.8.0

func (l *Logger) Log(ctx context.Context, sqlString string, args pgx.NamedArgs)

func (*Logger) LogError added in v0.8.0

func (l *Logger) LogError(ctx context.Context, sqlString string, args pgx.NamedArgs, err error)

Jump to

Keyboard shortcuts

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