...

/

Tidying up the Interface

Tidying up the Interface

Learn how to make our server code clean and easy to use.

We'll cover the following...

As we saw, our server works but is complicated to use. Our callers have to make explicit GenServer calls, and they have to know the registered name for our server process. We can do better.

Major functions

Let’s wrap this interface in a set of three functions in our server module:

  • start_link
...