log

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(r *http.Request) interface{}

{'url': 'http://0.0.0.0:8080/iam/v3/oauth/token', 'method': 'POST', 'headers': {'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'Basic YWRtaW46YWRtaW4=', 'X-Amzn-Trace-Id': '1-6216c182-06289f1aed29205b69ab4e09', 'User-Agent': 'AccelBytePythonSDK/0.8.0', 'Content-Length': '29'}, 'data': 'grant_type=client_credentials'}

func LogResponse

func LogResponse(r *http.Response) interface{}

{'url': 'http://0.0.0.0:8080/iam/v3/oauth/token', 'status_code': 200, 'elapsed': 0.002655, 'headers': {'Content-Type': 'application/json', 'Content-Length': '687', 'Server': 'Werkzeug/2.0.3 Python/3.9.10', 'Date': 'Wed, 23 Feb 2022 23:21:38 GMT'}, 'body': b'{\n "access_token": "foo",\n "bans": [\n {\n "ban": "jKUcwRKClLLG",\n "enabled": false,\n "endDate": "1990-01-01T00:00:00Z",\n "targetedNamespace": "lmhhvRFqRgrR"\n }\n ],\n "display_name": "jNSIUroJbsXE",\n "expires_in": 92,\n "namespace": "rlOjmchlzPOa",\n "namespace_roles": [\n {\n "namespace": "MtIscOfPDVqr",\n "roleId": "hGKaTerQApXc"\n }\n ],\n "permissions": [\n {\n "action": 89,\n "resource": "lzHsFDbXwjZQ"\n }\n ],\n "refresh_expires_in": 48,\n "refresh_token": "aXhexIRwabJB",\n "roles": [\n "HGgylJYeQIst"\n ],\n "scope": "vIYYfFIePDqe",\n "token_type": "RaDCpoEnacra",\n "user_id": "RnQUcDSIszGi",\n "xuid": "mazukDglGYCe"\n}\n'}

Types

This section is empty.

Jump to

Keyboard shortcuts

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