api

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(
	config *config.ServerConfiguration,
	storage strgtyp.Storage,
	metrics metrics.MetricsProvider,
	foodLogs foodlogs.FoodLogService,
	r *gin.Engine,
) error

Types

type ApiState

type ApiState struct {
	Config   *config.ServerConfiguration
	Storage  strgtyp.Storage
	Metrics  metrics.MetricsProvider
	FoodLogs foodlogs.FoodLogService
}

func (*ApiState) AsGeneratedInterface

func (srvst *ApiState) AsGeneratedInterface() generated.ServerInterface

func (*ApiState) CreateFoodLog

func (g *ApiState) CreateFoodLog(c *gin.Context)

CreateFoodLog implements generated.ServerInterface.

func (*ApiState) DeleteFoodLog

func (g *ApiState) DeleteFoodLog(c *gin.Context, itemId string)

DeleteFoodLog implements generated.ServerInterface.

func (*ApiState) ExportFoodLogs

func (g *ApiState) ExportFoodLogs(c *gin.Context)

ExportFoodLogs implements generated.ServerInterface.

func (*ApiState) GetFoodLog

func (g *ApiState) GetFoodLog(c *gin.Context, itemId string)

GetFoodLog implements generated.ServerInterface.

func (*ApiState) GetUserConfig

func (g *ApiState) GetUserConfig(c *gin.Context, configId string)

GetUserConfig implements generated.ServerInterface.

func (*ApiState) PurgeFoodLogs

func (g *ApiState) PurgeFoodLogs(c *gin.Context)

PurgeFoodLogs implements generated.ServerInterface.

func (*ApiState) QueryFoodLogs

func (g *ApiState) QueryFoodLogs(c *gin.Context, params generated.QueryFoodLogsParams)

QueryFoodLogs implements generated.ServerInterface.

func (*ApiState) StoreUserConfig

func (g *ApiState) StoreUserConfig(c *gin.Context, configId string)

StoreUserConfig implements generated.ServerInterface.

func (*ApiState) TestEndpoint

func (g *ApiState) TestEndpoint(c *gin.Context)

TestEndpoint implements generated.ServerInterface.

func (*ApiState) UpdateFoodLog

func (g *ApiState) UpdateFoodLog(c *gin.Context, itemId string)

UpdateFoodLog implements generated.ServerInterface.

Directories

Path Synopsis
Package generated provides primitives to interact with the openapi HTTP API.
Package generated provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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