biz_context

package
v0.0.0-...-443efec Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizContext

type BizContext struct {
	context.Context
	User
	Resources []string
}

func Background

func Background() *BizContext

func NewBizContext

func NewBizContext(ctx context.Context, c *app.RequestContext) (*BizContext, error)

func (*BizContext) GlobalCollection

func (b *BizContext) GlobalCollection(collection string) string

func (*BizContext) UserCollection

func (b *BizContext) UserCollection(collection string) string

type User

type User struct {
	UserID   string
	UserName string
}

Jump to

Keyboard shortcuts

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