Create a Client from a config source.
Create a Client from a config source.
A Config object in the shape of colossus.client-defaults
. It is also expected to have the address
and name
fields.
Load a ServiceClient definition from a Config.
Load a ServiceClient definition from a Config. Looks into colossus.clients.clientName
and falls back onto
colossus.client-defaults
The name of the client definition to load
A config object which contains at the least a colossus.clients.clientName
and a colossus.client-defaults
A generic trait for creating clients. There are several more specialized subtypes that make more sense of the type parameters, so this trait should generally not be used unless writing very generic code.
Type Parameters: * P - the protocol used by the client * M[_] - the concurrency wrapper, either Callback or Future * T - the type of the returned client * E - an implicitly required environment type, WorkerRef for Callback and IOSystem for Future