Documentation ¶
Index ¶
- func ContextWithTarsCurrent(ctx context.Context) context.Context
- func GetClientIPFromContext(ctx context.Context) (string, bool)
- func GetClientPortFromContext(ctx context.Context) (string, bool)
- func GetRequestContext(ctx context.Context) (map[string]string, bool)
- func GetRequestStatus(ctx context.Context) (map[string]string, bool)
- func GetResponseContext(ctx context.Context) (map[string]string, bool)
- func GetResponseStatus(ctx context.Context) (map[string]string, bool)
- func SetClientIPWithContext(ctx context.Context, IP string) bool
- func SetClientPortWithContext(ctx context.Context, port string) bool
- func SetRequestContext(ctx context.Context, c map[string]string) bool
- func SetRequestStatus(ctx context.Context, s map[string]string) bool
- func SetResponseContext(ctx context.Context, c map[string]string) bool
- func SetResponseStatus(ctx context.Context, s map[string]string) bool
- type Current
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithTarsCurrent ¶
ContextWithTarsCurrent set TarsCurrent
func GetClientIPFromContext ¶
GetClientIPFromContext gets the client ip from the context.
func GetClientPortFromContext ¶
GetClientPortFromContext gets the client ip from the context.
func GetRequestContext ¶
GetRequestContext get request context set by user.
func GetRequestStatus ¶
GetRequestStatus get request status set by user.
func GetResponseContext ¶
GetResponseContext get response context set by user.
func GetResponseStatus ¶
GetResponseStatus get response status set by user.
func SetClientIPWithContext ¶
SetClientIPWithContext set Client IP to the tars current.
func SetClientPortWithContext ¶
SetClientPortWithContext set client port to the tars current.
func SetRequestContext ¶
SetRequestContext set the request package' context .
func SetRequestStatus ¶
SetRequestStatus set the request package' status .
func SetResponseContext ¶
SetResponseContext set the response package' context .
Types ¶
Click to show internal directories.
Click to hide internal directories.