middleware

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Subscriptions = make([]subscribe.Subscription, 0)

Functions

func AddSubscription

func AddSubscription(sub subscribe.Subscription)

func Auth

func Auth(ctx *gin.Context)

func DetectLanguage

func DetectLanguage(ctx *gin.Context)

func HandleSubscribeRequest

func HandleSubscribeRequest(ctx *gin.Context)

func IntegrationId

func IntegrationId(ctx *gin.Context)

func Plan

func Plan(ctx *gin.Context)

Types

type AccessResult

type AccessResult struct {
	AccessToken      string `json:"access_token"`
	ExpiresIn        int    `json:"expires_in"`
	RefreshExpiresIn int    `json:"refresh_expires_in"`
	RefreshToken     string `json:"refresh_token"`
	TokenType        string `json:"token_type"`
	NotBeforePolicy  int    `json:"not-before-policy"`
	SessionState     string `json:"session_state"`
	Scope            string `json:"scope"`
}

Jump to

Keyboard shortcuts

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