Documentation ¶ Index ¶ Constants func IPAddress() config.IPAddress func Port() config.Port func SetIPAddress(newIP config.IPAddress) func SetPort(newPort config.Port) type Handler type Option type Service func New() *Service func (s *Service) Shutdown(ctx context.Context, wg *sync.WaitGroup) error Constants ¶ View Source const ( RouteAPIRegister string = "/api/register" RouteAPISend string = "/api/send" RouteAPIPosts string = "/api" PostsPerPage int = 30 ) Variables ¶ This section is empty. Functions ¶ func IPAddress ¶ func IPAddress() config.IPAddress func Port ¶ func Port() config.Port func SetIPAddress ¶ func SetIPAddress(newIP config.IPAddress) func SetPort ¶ func SetPort(newPort config.Port) Types ¶ type Handler ¶ type Handler struct{} type Option ¶ type Option func(*Service) error type Service ¶ type Service struct { *http.Server Errors chan error } func New ¶ func New() *Service func (*Service) Shutdown ¶ func (s *Service) Shutdown(ctx context.Context, wg *sync.WaitGroup) error Source Files ¶ View all Source files config.go handler.go server.go Directories ¶ Show internal Expand all Path Synopsis models Click to show internal directories. Click to hide internal directories.