v3

package
v0.0.0-...-f43e618 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncrementalInvalidVersions = pgerr.ErrInvalidReq.Msg("invalid versions: `versions` after /patch shall be two `from` and `to` versions, respectively, separated by three dots")

Functions

func Module

func Module() fx.Option

func RegisterDataset

func RegisterDataset(v3 *svr.V3, c Dataset)

func RegisterIncremental

func RegisterIncremental(v3 *svr.V3, c IncrementalController)

func RegisterInit

func RegisterInit(v3 *svr.V3, c InitController)

func RegisterItem

func RegisterItem(v3 *svr.V3, c ItemController)

func RegisterLive

func RegisterLive(v3 *svr.V3)

func RegisterStage

func RegisterStage(v3 *svr.V3, c StageController)

func RegisterZone

func RegisterZone(v3 *svr.V3, c ZoneController)

Types

type Dataset

type Dataset struct {
	fx.In

	AccountService       *service.Account
	DropMatrixService    *service.DropMatrix
	TrendService         *service.Trend
	PatternMatrixService *service.PatternMatrix
}

func (Dataset) AggregatedItem

func (c Dataset) AggregatedItem(ctx *fiber.Ctx) error

func (Dataset) AggregatedStage

func (c Dataset) AggregatedStage(ctx *fiber.Ctx) error

type IncrementalController

type IncrementalController struct {
	fx.In

	SnapshotService *service.Snapshot
}

func (*IncrementalController) GetDiffBetweenVersions

func (c *IncrementalController) GetDiffBetweenVersions(ctx *fiber.Ctx) error

func (*IncrementalController) GetLatestIncrementalVersion

func (c *IncrementalController) GetLatestIncrementalVersion(ctx *fiber.Ctx) error

func (*IncrementalController) GetSnapshotKeyFromPathParams

func (c *IncrementalController) GetSnapshotKeyFromPathParams(ctx *fiber.Ctx) string

type InitController

type InitController struct {
	fx.In

	InitService *service.Init
}

func (*InitController) Init

func (c *InitController) Init(ctx *fiber.Ctx) error

type ItemController

type ItemController struct {
	fx.In

	ItemService *service.Item
}

func (*ItemController) GetItemById

func (c *ItemController) GetItemById(ctx *fiber.Ctx) error

func (*ItemController) GetItems

func (c *ItemController) GetItems(ctx *fiber.Ctx) error

type LiveController

type LiveController struct{}

func (*LiveController) Live

func (c *LiveController) Live() func(ctx *fiber.Ctx) error

type StageController

type StageController struct {
	fx.In

	StageService *service.Stage
}

func (*StageController) GetStageById

func (c *StageController) GetStageById(ctx *fiber.Ctx) error

func (*StageController) GetStages

func (c *StageController) GetStages(ctx *fiber.Ctx) error

type ZoneController

type ZoneController struct {
	fx.In

	ZoneService *service.Zone
}

func (*ZoneController) GetZoneById

func (c *ZoneController) GetZoneById(ctx *fiber.Ctx) error

func (*ZoneController) GetZones

func (c *ZoneController) GetZones(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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