Documentation
¶
Index ¶
- Constants
- func Debugf(ctx context.Context, tpl string, args ...any)
- func DefaultLogger(reqId string) *zap.Logger
- func Errorf(ctx context.Context, tpl string, args ...any)
- func Infof(ctx context.Context, tpl string, args ...any)
- func WithDefaultLogger(parent context.Context, reqId string) context.Context
- func WithLogger(parent context.Context, logger *zap.Logger) context.Context
- type QueryClient
Constants ¶
View Source
const LoggerKey = "LOGGER"
Variables ¶
This section is empty.
Functions ¶
func DefaultLogger ¶
func WithDefaultLogger ¶
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
Click to show internal directories.
Click to hide internal directories.