utils

package
v0.0.0-...-dcf5b65 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStringArray

func FromStringArray(list []string) []*string

func GetLimitAndSortOrderAndCursor

func GetLimitAndSortOrderAndCursor(first, last *int64, after, before *string) (int64, int, *string, error)

func GetSortOrder

func GetSortOrder(sortBy string, order int) bson.D

func GetSortOrderFromString

func GetSortOrderFromString(order *string) int

func ReverseList

func ReverseList[T interface{}](list []*T) []*T

func ToStringArray

func ToStringArray(list []*string) []string

Types

type DataProcessor

type DataProcessor interface {
	Process(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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