middleware

package
v0.0.0-...-cba9ae1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessions

type Sessions struct{}

func (*Sessions) AuthRequired

func (sm *Sessions) AuthRequired() gin.HandlerFunc

AuthRequired はgoogle_idがセッションにない場合、ゲストとして扱いリクエストを拒否 POST,PUT,DELETEメソッドにのみ適応し、フロントで適所UIを切り替える

func (*Sessions) LoginStateSessions

func (sm *Sessions) LoginStateSessions() gin.HandlerFunc

LoginStateSessions はクッキーストアを使用してセッションミドルウェアを初期化 セッション名としてgoogle_idを使用

Jump to

Keyboard shortcuts

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