Instream v0.12.0 Instream.Query.URL

URL Utility.

Summary

Functions

Appends authentication credentials to an URL

Appends a database to an URL

Appends an epoch value to an URL

Appends a precision value to an URL

Appends a query to an URL

Returns the proper URL for a :ping request

Returns the proper URL for a :query request

Returns the proper URL for a :status request

Returns the proper URL for a :write request

Functions

append_auth(url, auth)

Specs

append_auth(String.t, Keyword.t) :: String.t

Appends authentication credentials to an URL.

append_database(url, database)

Specs

append_database(String.t, String.t) :: String.t

Appends a database to an URL.

append_epoch(url, epoch)

Appends an epoch value to an URL.

The allowed values are identical to the precision parameters of write queries.

append_precision(url, precision)

Specs

Appends a precision value to an URL.

append_query(url, query)

Specs

append_query(String.t, String.t) :: String.t

Appends a query to an URL.

ping(conn, host \\ nil)

Specs

ping(Keyword.t, String.t | nil) :: String.t

Returns the proper URL for a :ping request.

query(conn)

Specs

query(Keyword.t) :: String.t

Returns the proper URL for a :query request.

status(conn, host \\ nil)

Specs

Returns the proper URL for a :status request.

write(conn)

Specs

write(Keyword.t) :: String.t

Returns the proper URL for a :write request.