appcontext

package
v0.0.0-...-f316938 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(ctx context.Context, actx *AppContext) context.Context

Types

type AppContext

type AppContext struct {
	Now time.Time
	// contains filtered or unexported fields
}

func Extract

func Extract(ctx context.Context) *AppContext

func (*AppContext) GetUser

func (actx *AppContext) GetUser() (entity.User, error)

func (*AppContext) SetUser

func (actx *AppContext) SetUser(user entity.User)

Jump to

Keyboard shortcuts

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