Documentation ¶
Index ¶
Constants ¶
View Source
const AppCtxValuesKey = "AppCtxValuesKey"
Variables ¶
This section is empty.
Functions ¶
func EmptyAppCtx ¶
Types ¶
type AppCtxValues ¶
type AppCtxValues struct { context_enum.ContextValues StartTime time.Time //开始调用时间 LastTime time.Time //调用结束时间 Tx interface{} // 数据库事务对象 可有可无 跟随ctx下发 线程不安全 }
func GetAppValues ¶
func GetAppValues(ctx context.Context) *AppCtxValues
func MustGetAppValues ¶
func MustGetAppValues(ctx context.Context) *AppCtxValues
func NewAppCtxValues ¶
func NewAppCtxValues() *AppCtxValues
func (*AppCtxValues) Clone ¶
func (a *AppCtxValues) Clone(tx interface{}) *AppCtxValues
func (*AppCtxValues) CopyFrom ¶
func (a *AppCtxValues) CopyFrom(p *AppCtxValues)
Click to show internal directories.
Click to hide internal directories.