Documentation ¶ Index ¶ type Duration func (d Duration) String() string type Server func NewServer(cfg config.WEBAPIConfig, store storage.Storage) *Server func (s *Server) Run(ctx context.Context) type Stats func (s *Stats) Convert(endpoints []*storage.Endpoint) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Duration ¶ added in v1.0.2 type Duration int func (Duration) String ¶ added in v1.0.2 func (d Duration) String() string type Server ¶ type Server struct { config.WEBAPIConfig Store storage.Storage } func NewServer ¶ func NewServer(cfg config.WEBAPIConfig, store storage.Storage) *Server func (*Server) Run ¶ func (s *Server) Run(ctx context.Context) type Stats ¶ type Stats struct { Name string `json:"name"` URL string `json:"url"` Hours []int `json:"hours"` Points []int `json:"points"` } func (*Stats) Convert ¶ func (s *Stats) Convert(endpoints []*storage.Endpoint) Source Files ¶ View all Source files handers.go server.go types.go Click to show internal directories. Click to hide internal directories.