api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAPI

func RunAPI(ctx context.Context, wg *sync.WaitGroup, log *zap.Logger, db *database.Database, cfg *config.Config, st *strava.Strava, im *importer.Importer, q *queue.Queue)

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func (*API) GetPageAndSize

func (a *API) GetPageAndSize(c echo.Context, defaultPageSize int64) (int64, int64, error)

type PaginatedResponse

type PaginatedResponse struct {
	Results interface{} `json:"results"`
	Count   int64       `json:"count"`
}

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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