contextutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizationToken

func GetAuthorizationToken(ctx context.Context) (string, bool)

GetAuthorizationToken 尝试从上下文中获取 token 信息

func GetTraceID

func GetTraceID(ctx context.Context) (string, bool)

GetTraceID ...

func WithAuthorizationToken

func WithAuthorizationToken(ctx context.Context, token string) context.Context

WithAuthorizationToken 创建一个带有 Token 信息的上下文

Types

This section is empty.

Jump to

Keyboard shortcuts

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