auth

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package auth provides authentication-related functionality for the application.

Package auth provides authentication-related functionality for the application.

Package auth provides authentication-related functionality for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Create() gin.HandlerFunc
	GetToken() gin.HandlerFunc
	// contains filtered or unexported methods
}

Handler interface defines the methods that should be implemented by the auth handler.

func New

func New(logger *logger.Manager, redis *redis.Manager, i18n *i18n.Manager, db *gorm.DB) Handler

New creates and returns a new Handler instance.

Parameters:

  • logger: *logger.Manager - The logger manager.
  • redis: *redis.Manager - The redis manager.
  • i18n: *i18n.Manager - The i18n manager.
  • db: *gorm.DB - The database connection.

Returns:

  • Handler: A new Handler instance.

type StoreAppRepData

type StoreAppRepData struct {
	AppID     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

StoreAppRepData defines the structure for the response data when storing an app.

type StoreAppReqParams

type StoreAppReqParams struct {
	AppName     string `json:"app_name" form:"app_name" binding:"required"`
	Description string `json:"description" form:"description"`
	RedirectUri string `json:"redirect_uri" form:"redirect_uri"`
}

StoreAppReqParams defines the structure for storing app request parameters.

Jump to

Keyboard shortcuts

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