live

package
v0.2.32 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: AGPL-3.0 Imports: 35 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 CreateAuthToken added in v0.2.18

func CreateAuthToken(user string, secret string, expHours float64) (string, error)

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"`
	Orders    []*ormo.InOutOrder `json:"-"`
}

type GroupSta added in v0.2.1

type GroupSta struct {
	*GroupItem
	Nums    []int `json:"nums"`
	MinTime int64 `json:"minTime"`
	MaxTime int64 `json:"maxTime"`
}

Jump to

Keyboard shortcuts

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