Documentation ¶
Index ¶
- type Server
- func (s *Server) DELETE(url string, viewFn sa.View) *sa.Path
- func (s *Server) GET(url string, viewFn sa.View) *sa.Path
- func (s *Server) ListenAndServe() error
- func (s *Server) POST(url string, viewFn sa.View) *sa.Path
- func (s *Server) PUT(url string, viewFn sa.View) *sa.Path
- func (s *Server) StaticCustom() *sa.Path
- func (s *Server) UseBefore(fns sa.Middleware) *sa.Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Cache *cache.Redis Dao *domain.DAO PoolRo *pgxpool.Pool PoolRw *pgxpool.Pool Server *sa.Atreugo }
Server определяет параметры для запуска HTTP-сервера.
func (*Server) ListenAndServe ¶
ListenAndServe запускает сервер для ответа на сетевые запросы HTTP.
func (*Server) StaticCustom ¶
Click to show internal directories.
Click to hide internal directories.