Writing the Proctor Boundary Server
Let’s start implementing a GenServer in our newly created Proctor module.
We'll cover the following...
We’ll create a new Proctor module in the Boundary namespace to implement a GenServer to schedule quizzes. It’s a single API, Proctor.schedule_quiz, but a complex one. Let’s walk through it step by step.
Establishing our GenServer
Create a new file /lib/mastery/boundary/proctor.ex so we can establish our GenServer:
Press + to interact
defmodule Mastery.Boundary.Proctor douse GenServerrequire Loggeralias Mastery.Boundary.{QuizManager, QuizSession}end
We create the usual ceremonial module definition and a few aliases. We’ll need access to ...
Ask