Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsStore ¶
type ArgumentsStore ¶
type Dependencies ¶
Dependencies for all the server's endpoints
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server runs the service. Use NewServer() to construct one from an app config, and Start() to make it start listening and serving requests.
func NewServer ¶
func NewServer(key *ecdsa.PrivateKey, store Dependencies) *Server
NewServer makes a server which defines REST endpoints for the service.
type ServerDependencies ¶
type ServerDependencies struct { email.Emailer AccountsStore ArgumentsStore }
Click to show internal directories.
Click to hide internal directories.