Caracola.Tutorial (Caracola v0.1.0-rc.1)

Copy Markdown View Source

Code of the tutorial. launch/0 runs all its steps.

Summary

Functions

Runs all the steps of the tutorial, checking the results.

Starts the server and the two clients. TLS uses certificates generated for the tutorial (see tls_config/0).

Stops the services.

A certificate authority and a certificate signed by it, for the TLS listeners (:tls), and the options for the clients to trust it (:tls_client). Only for testing!

Functions

launch()

@spec launch() :: :ok

Runs all the steps of the tutorial, checking the results.

start()

@spec start() :: :ok

Starts the server and the two clients. TLS uses certificates generated for the tutorial (see tls_config/0).

stop()

@spec stop() :: :ok

Stops the services.

tls_config()

@spec tls_config() :: {keyword(), keyword()}

A certificate authority and a certificate signed by it, for the TLS listeners (:tls), and the options for the clients to trust it (:tls_client). Only for testing!