middleware

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtAuthMiddleware

type JwtAuthMiddleware struct {
	// contains filtered or unexported fields
}

func NewJwtAuthMiddleware

func NewJwtAuthMiddleware(
	getImUserRpc func() imuserservice.ImUserService,
	getLimit func() *limit.PeriodLimit,
) *JwtAuthMiddleware

func (*JwtAuthMiddleware) Handle

func (*JwtAuthMiddleware) RateLimit

func (m *JwtAuthMiddleware) RateLimit(ctx context.Context, ip string) bool

Jump to

Keyboard shortcuts

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