auth

package
v0.0.0-...-7eeeacd Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Require

func Require(ctx context.Context, permission string) error

func Sign

func Sign(user model.User, secret []byte, expiresIn time.Duration) (string, time.Time, error)

func Subject

func Subject(ctx context.Context) string

func UnaryInterceptor

func UnaryInterceptor() grpc.UnaryServerInterceptor

Types

This section is empty.

Jump to

Keyboard shortcuts

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