routes

package
v0.0.0-...-74f3d50 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaginationContextKey key = "pagination"
)

Variables

This section is empty.

Functions

func FindHelpTopicByName

func FindHelpTopicByName(name string) (models.HelpTopic, error)

func FindQuickstartById

func FindQuickstartById(id int) (models.Quickstart, error)

func GetAllFavoriteQuickstarts

func GetAllFavoriteQuickstarts(w http.ResponseWriter, r *http.Request)

func GetAllHelpTopics

func GetAllHelpTopics(w http.ResponseWriter, r *http.Request)

func GetAllQuickstarts

func GetAllQuickstarts(w http.ResponseWriter, r *http.Request)

func GetFavoriteQuickstarts

func GetFavoriteQuickstarts(accountId string) ([]models.FavoriteQuickstart, error)

func GetFilters

func GetFilters(w http.ResponseWriter, r *http.Request)

func GetHelpTopicByName

func GetHelpTopicByName(w http.ResponseWriter, r *http.Request)

func GetQuickstartById

func GetQuickstartById(w http.ResponseWriter, r *http.Request)

func HelpTopicEntityContext

func HelpTopicEntityContext(next http.Handler) http.Handler

func MakeFavoriteQuickstartsRouter

func MakeFavoriteQuickstartsRouter(sub chi.Router)

func MakeHelpTopicsRouter

func MakeHelpTopicsRouter(sub chi.Router)

MakeHelpTopicsRouter creates a router handles for /helptopics group

func MakeQuickstartsProgressRouter

func MakeQuickstartsProgressRouter(sub chi.Router)

func MakeQuickstartsRouter

func MakeQuickstartsRouter(sub chi.Router)

MakeQuickstartsRouter creates a router handles for /quickstarts group

func PaginationContext

func PaginationContext(next http.Handler) http.Handler

func PrometheusMiddleware

func PrometheusMiddleware(next http.Handler) http.Handler

func QuickstartEntityContext

func QuickstartEntityContext(next http.Handler) http.Handler

func SwitchFavorite

func SwitchFavorite(accountId string, quickstartName string, favorite bool) (models.FavoriteQuickstart, error)

func UpdateFavoriteQuickstart

func UpdateFavoriteQuickstart(w http.ResponseWriter, r *http.Request)

Types

type FavQuickstartPayload

type FavQuickstartPayload struct {
	QuickstartName string `json:"quickstartName"`
	Favorite       bool   `json:"favorite"`
}

type Pagination

type Pagination struct {
	Limit  int
	Offset int
}

Jump to

Keyboard shortcuts

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