Documentation ¶
Index ¶
- func Agg(dbConn *db.DB, optionsList ...func(*ListOptions)) ([]*map[string]interface{}, error)
- func From(i time.Time) func(*ListOptions)
- func IsValidKey(str string, list []string) bool
- func Keys(i string) func(*ListOptions)
- func Limit(i int) func(*ListOptions)
- func List(dbConn *db.DB, optionsList ...func(*ListOptions)) ([]*map[string]interface{}, error)
- func NewListOpts() []func(*ListOptions)
- func Sum(dbConn *db.DB, optionsList ...func(*ListOptions)) ([]*map[string]interface{}, error)
- func To(i time.Time) func(*ListOptions)
- func UID(i string) func(*ListOptions)
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Agg ¶
func Agg(dbConn *db.DB, optionsList ...func(*ListOptions)) ([]*map[string]interface{}, error)
Agg Aggregate Data
func From ¶
func From(i time.Time) func(*ListOptions)
From sets the start date to retrieve data from
func IsValidKey ¶
IsValidKey checks if a string is in an array
func List ¶
func List(dbConn *db.DB, optionsList ...func(*ListOptions)) ([]*map[string]interface{}, error)
List Endpoint
func NewListOpts ¶
func NewListOpts() []func(*ListOptions)
NewListOpts create a new ListOptions struct
Types ¶
type ListOptions ¶
ListOptions represents the filter structure to query the database
Click to show internal directories.
Click to hide internal directories.