interceptors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRbac

func GetRbac[T primary.Key]() web.Interceptor

Types

type Rbac

type Rbac[T primary.Key] struct {
	*mappers.RbacManageMapper[T]
}

func (*Rbac[T]) After

func (rbac *Rbac[T]) After(ctx web.Context, handler any) error

func (*Rbac[T]) Before

func (rbac *Rbac[T]) Before(ctx web.Context, handle any) (bool, error)

func (*Rbac[T]) Complete

func (rbac *Rbac[T]) Complete(ctx web.Context, handler any) error

type TokenInterceptor

type TokenInterceptor[T primary.Key] struct {
}

func (TokenInterceptor[T]) After

func (receiver TokenInterceptor[T]) After(ctx web.Context, handler any) error

func (TokenInterceptor[T]) Before

func (receiver TokenInterceptor[T]) Before(ctx web.Context, handler any) (bool, error)

func (TokenInterceptor[T]) Complete

func (receiver TokenInterceptor[T]) Complete(ctx web.Context, handler any) error

Jump to

Keyboard shortcuts

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