Skip to main content

Connect config

CONNECT_TO_LOCAL_FEDERATION​

connect_to_local_federation(Charstring name)
STABLE

No description.


connect_to_local_federation(Charstring name, Charstring new_server_name)
STABLE

No description.


CONNECT_USING_CONFIG​

connect_using_config(Record config, Boolean as_edge)
STABLE

Connect to a federation using the config if as_edge is false this call

will only register the process as a client.


CONNECT_USING_CONFIG_BLOB​

connect_using_config_blob(Charstring blob, Charstring peername, Boolean as_edge)
STABLE

Same as connect_using_config but the blob is a Base64 encoded string

representation of the config Record and peername is overridden


connect_using_config_blob(Charstring blob, Boolean as_edge)
STABLE

Same as connect_using_config but the blob is a Base64 encoded string

representation of the config Record.


CONNECT_USING_CONFIG_FILE​

connect_using_config_file(Charstring config, Boolean as_edge)
STABLE

Same as connect_using_config but will read JSON-config from file on disk


FEDERATION:CONNECT​

federation:connect(Charstring name, Charstring peername, Boolean reregister, Boolean as_edge)
STABLE

No description.


FEDERATION:GET_CURRENT​

federation:get_current( ) -> Charstring
STABLE

No description.


FEDERATION:LIST​

federation:list( ) -> Bag of Charstring file
STABLE

No description.


FEDERATION:SAVE​

federation:save(Charstring name, Charstring blob) -> Charstring
STABLE

Save blob into federation file with name name


FEDERATION:SET_CURRENT​

federation:set_current(Charstring name) -> Charstring
STABLE

No description.


GET_ALL_ADDRS​

get_all_addrs( ) -> Bag of Vector
STABLE

No description.


GET_CONNECT_CONFIG​

get_connect_config(Charstring peer, Record extras) -> Record
STABLE

No description.


get_connect_config(Charstring peer) -> Record
STABLE

Retrieve a connection config to connect as peer to this federation.

Use this record in a call to connect_using_config in another sa.engine to connect. This record contains address, port, host and cryptographic information neccessary to connect.


GET_CONNECT_CONFIG_BLOB​

get_connect_config_blob(Charstring peer) -> Charstring
STABLE

No description.


get_connect_config_blob(Charstring peer, Record extras) -> Charstring
STABLE

Base64 encoded string of get_connect_config. can be used in conjunction

with connect_using_config_blob


LOAD_CONNECT_CONFIG​

load_connect_config(Record config) -> Json
STABLE

No description.


READ_CONNECT_CONFIG_FILE​

read_connect_config_file(Charstring file) -> Json
STABLE

No description.


RECONNECT_USING_CONFIG_BLOB​

reconnect_using_config_blob(Charstring blob, Boolean as_edge)
STABLE

Same as connect_using_config but the blob is a Base64 encoded string

representation of the config Record where reregister is enabled


reconnect_using_config_blob(Charstring blob, Charstring peername, Boolean as_edge)
STABLE

Same as connect_using_config but the blob is a Base64 encoded string

representation of the config Record and peername is overridden and reregister is enabled


SERVER_ADDRS​

server_addrs()->Bag of (Charstring, Integer)
STABLE

Set of configurable server addresses.