Translixir.Client (translixir v0.1.1) View Source

Módule containing the Client configurations

Link to this section Summary

Functions

auth includes field :auth at struct Client contained at <PID>, it is the authorization token

endpoint returns the endpoin for Client at <PID>. :tx_log -> "http://base_url/tx-log" :entity -> "http://#base_url/entity"

get returns struct Client contained at <PID>

headers returns the request headers for Client at <PID>. If :auth is present returns [{"Content-Type", "application/edn"}, {"Authorization", "Bearer token"}] else returns [{"Content-Type", "application/edn"}]

new creates an Agent that contains structs Client with fields :host, :port

Link to this section Functions

auth includes field :auth at struct Client contained at <PID>, it is the authorization token

endpoint returns the endpoin for Client at <PID>. :tx_log -> "http://base_url/tx-log" :entity -> "http://#base_url/entity"

get returns struct Client contained at <PID>

headers returns the request headers for Client at <PID>. If :auth is present returns [{"Content-Type", "application/edn"}, {"Authorization", "Bearer token"}] else returns [{"Content-Type", "application/edn"}]

new creates an Agent that contains structs Client with fields :host, :port