api

package
v0.0.0-...-8fdf812 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JwtAuthMiddleware

func JwtAuthMiddleware(auth usecase.Auth) gin.HandlerFunc

func NewApiRoute

func NewApiRoute(cfg *config.Config, engine *gin.Engine) *gin.RouterGroup

func NewEngine

func NewEngine(logger logrus.FieldLogger) *gin.Engine

Types

type APIError

type APIError struct {
	Error     string `json:"error"`
	ErrorCode int    `json:"error_code"`
}

Jump to

Keyboard shortcuts

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