core

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerKey = "LOGGER"

Variables

This section is empty.

Functions

func Debugf

func Debugf(ctx context.Context, tpl string, args ...any)

func DefaultLogger

func DefaultLogger(reqId string) *zap.Logger

func Errorf

func Errorf(ctx context.Context, tpl string, args ...any)

func Infof

func Infof(ctx context.Context, tpl string, args ...any)

func WithDefaultLogger

func WithDefaultLogger(parent context.Context, reqId string) context.Context

func WithLogger

func WithLogger(parent context.Context, logger *zap.Logger) context.Context

Types

type QueryClient

type QueryClient interface {
	// Query executes a query and returns the results
	Query(ctx context.Context, query, dbName string) ([]map[string]interface{}, error)

	// Initialize sets up the query client
	Initialize() error

	// Close releases resources
	Close() error
}

QueryClient defines the interface for querying data

Jump to

Keyboard shortcuts

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