common

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserNoTraceKey   = "x-userno"
	UsernameTraceKey = "x-username"
	RoleNoTraceKey   = "x-roleno"
)

Variables

This section is empty.

Functions

func LoadBuiltinPropagationKeys

func LoadBuiltinPropagationKeys()

load builtin propagation keys, so all dependents get the same behaviour

func StoreUser

func StoreUser(rail miso.Rail, u User) miso.Rail

Store User in Rail (trace).

Types

type User

type User struct {
	UserNo   string
	Username string
	RoleNo   string
	IsNil    bool
}

func GetUser

func GetUser(rail miso.Rail) User

Get User from Rail (trace).

func NilUser

func NilUser() User

Get a 'nil' User.

Jump to

Keyboard shortcuts

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