Documentation ¶ Index ¶ func NewHandler(db model.DataStore, ttl uint32) (*handler, error) type Server func NewServer(db model.DataStore, address string, ttl int) (*Server, error) func (s *Server) Serve() error func (s *Server) Shutdown(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewHandler ¶ func NewHandler(db model.DataStore, ttl uint32) (*handler, error) Types ¶ type Server ¶ type Server struct { Address string // contains filtered or unexported fields } func NewServer ¶ func NewServer(db model.DataStore, address string, ttl int) (*Server, error) func (*Server) Serve ¶ func (s *Server) Serve() error func (*Server) Shutdown ¶ func (s *Server) Shutdown(ctx context.Context) error Source Files ¶ View all Source files handler.go server.go Click to show internal directories. Click to hide internal directories.