api

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfile

func GetProfile(c *gin.Context)

GetProfile handles the /profile endpoint

func GetToken

func GetToken(c *gin.Context)

func HealthCheck

func HealthCheck(c *gin.Context)

HealthCheck handles the /health endpoint

func Ping

func Ping(c *gin.Context)

Ping handles the /ping endpoint

func Register

func Register(c *gin.Context)

Register handles the /register endpoint

func SetupRouter

func SetupRouter(router *gin.Engine, cfg *config.Config, logger *logger.Logger, opts ...RouterOption)

Types

type RouterOption

type RouterOption func(*routerOptions)

func WithoutRateLimiting

func WithoutRateLimiting() RouterOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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