utils

package
v0.0.0-...-ba70d0f Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package utils provides utility functions for the service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallBack

func CallBack(fn func() error)

CallBack calls the function and ignores the error.

func Filter

func Filter[T any](slice []T, fn func(T) bool) []T

Filter is a function that filters a slice of object generically

func NewPgxConn

func NewPgxConn(ctx context.Context, conf *celestinal.Config) (*pgx.Conn, error)

NewPgxConn create new connection for single query

func NewPgxPool

func NewPgxPool(conf *celestinal.Config) (*pgxpool.Pool, error)

NewPgxPool create new pool connection for multiple query

Types

This section is empty.

Jump to

Keyboard shortcuts

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