package
2023.10.0+incompatible
Repository: https://github.com/hiveot/hub.git
Documentation: pkg.go.dev

# Functions

ConnectTLS creates a TLS connection to a server, optionally using a client certificate.
NewTLSClient creates a new TLS Client instance.

# Constants

basic auth for backwards compatibility when connecting.
digest auth for backwards compatibility when connecting.
JSON web token for use with WoST server (default).
disable authentication, for testing.
DefaultJWTConfigPath for storing client configuration on the auth service.
DefaultJWTLoginPath for obtaining access & refresh tokens.
DefaultJWTRefreshPath for refreshing tokens with the auth service.
ParamLimit contains maximum number of results.
ParamOffset offset in case of multiple requests.
ParamQuery contains a query.
ParamThings contains a list of Thing IDs to query for.
ParamUpdatedSince contains a ISO8601 datetime.

# Structs

JwtAuthLogin defines the login request message to sent when using JWT authentication.
JwtAuthResponse defines the login or refresh response.
TLSClient is a simple TLS Client with authentication using certificates or JWT authentication with login/pw.