Documentation
¶
Index ¶
- func AddApiKeyTransport(t http.RoundTripper) http.RoundTripper
- func AddHttpHeaderTransport(t http.RoundTripper, name, value string) http.RoundTripperdeprecated
- func AddUserAgentTransport(t http.RoundTripper, userAgent string) http.RoundTripper
- func AnyToStruct[T any](obj interface{}) (*T, error)
- func GenerateRandomString(n int) string
- func GetEnv(key, fallback string) string
- func JWSToText(jwsData string) string
- func OpenBrowser(url string)
- func RandomJWK() (jwk.Key, error)
- func ResponseToText(resp *http.Response) string
- type Jwk
- type Jwks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApiKeyTransport ¶
func AddApiKeyTransport(t http.RoundTripper) http.RoundTripper
func AddHttpHeaderTransport
deprecated
func AddHttpHeaderTransport(t http.RoundTripper, name, value string) http.RoundTripper
Deprecated: do not use commons/util package
func AddUserAgentTransport ¶
func AddUserAgentTransport(t http.RoundTripper, userAgent string) http.RoundTripper
func AnyToStruct ¶
func GenerateRandomString ¶
func OpenBrowser ¶
func OpenBrowser(url string)
func ResponseToText ¶
Types ¶
type Jwk ¶
small trick to make jwk.Key JSON-serializable
func (*Jwk) MarshalJSON ¶
func (*Jwk) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.