middleware

package
v0.0.0-...-3ed04b3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessControl

func AccessControl() echo.MiddlewareFunc

AccessControl はIPホワイトリスト以外のアクセスを拒否します。

func ClientVersion

func ClientVersion(repo repository.ClientVersionRepository) echo.MiddlewareFunc

ClientVersion は強制アップデートバージョン未満のアクセスを拒否します。

func DebugMode

func DebugMode() echo.MiddlewareFunc

DebugMode はデバッグ起動時のみアクセスを許可します。

func Logger

func Logger(ep presenter.ErrorPresenter) echo.MiddlewareFunc

Logger はリクエスト/レスポンス情報をログエントリーに追加します。

func Maintenance

func Maintenance(repo repository.MaintenanceRepository) echo.MiddlewareFunc

Maintenance はサーバーメンテナンス中の場合にアクセスを拒否します。

func Recover

func Recover(ep presenter.ErrorPresenter) echo.MiddlewareFunc

Recover は例外をレスポンスに変換します。

Types

This section is empty.

Jump to

Keyboard shortcuts

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