test

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSONResponseRecorder

func NewJSONResponseRecorder[T any]() *httptestx.JSONResponseRecorder[Result[T]]

Types

type Result

type Result[T any] struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data T      `json:"data"`
}

type SessionProvider

type SessionProvider struct {
}

func (*SessionProvider) Get

func (s *SessionProvider) Get(ctx *gctx.Context) (session.Session, error)

func (*SessionProvider) NewSession

func (s *SessionProvider) NewSession(ctx *gctx.Context, uid int64, jwtData map[string]string, sessData map[string]any) (session.Session, error)

func (*SessionProvider) RenewAccessToken

func (s *SessionProvider) RenewAccessToken(ctx *gctx.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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