Documentation ¶ Index ¶ type Config type Server func NewServer(config *Config, db *database.DataBase, redis *hiredis.Redis) *Server func (s *Server) ListenAndServer() error func (s *Server) Shutdown() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { BindAddress string `json:"bind_address,default:localhost:8080"` ReadTimeout int `json:"read_timeout,default:10"` WriteTimeout int `json:"write_timeout,default:10"` } type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(config *Config, db *database.DataBase, redis *hiredis.Redis) *Server func (*Server) ListenAndServer ¶ func (s *Server) ListenAndServer() error func (*Server) Shutdown ¶ func (s *Server) Shutdown() error Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.