Versions in this module Expand all Collapse all v1 v1.5.1 Apr 23, 2018 Changes in this version + func AdminAuthMiddleware(ct CheckToken) func(http.Handler) http.Handler + func RatesShow(store RateStore, rateInterval time.Duration) http.Handler + type CheckToken func(token, scope string) bool + type RateStore interface + Rate func(int64) (store.Rate, error) + type Server struct + func NewServer(port uint16, ct CheckToken, rs RateStore, rateInterval time.Duration, ...) *Server + func (s *Server) Addr() string + func (s *Server) Serve() + func (s *Server) Stop() + type ServerOption func(*Server) + func WithLogWriter(w io.Writer) ServerOption