live

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(secret string) fiber.Handler

func StartApi

func StartApi() *errs.Error

Types

type AuthClaims

type AuthClaims struct {
	User string `json:"user"`
	jwt.RegisteredClaims
}

type FnAccCB

type FnAccCB = func(acc string) error

type FnAccDbCB

type FnAccDbCB = func(acc string, sess *orm.Queries) error

type GroupItem

type GroupItem struct {
	Key       string  `json:"key"`
	HoldHours float64 `json:"holdHours"`
	TotalCost float64 `json:"totalCost"`
	ProfitSum float64 `json:"profitSum"`
	ProfitPct float64 `json:"profitPct"`
	CloseNum  int     `json:"closeNum"`
	WinNum    int     `json:"winNum"`
}

Jump to

Keyboard shortcuts

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