Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(conf Config, cs ...Controller) *httputil.Server
NewServer creates a new http server
@title Chatyx REST API @version 1.0 @description REST API for Chatyx backend application @contact.name Pavel Korchagin @contact.email mortalis94@gmail.com @license.name MIT @license.url https://opensource.org/license/mit/ @host localhost:8080 @BasePath /api/v1 @securityDefinitions.apikey JWTAuth @in header @name Authorization
Types ¶
type Controller ¶
type Controller interface {
Register(mux *httprouter.Router)
}
Click to show internal directories.
Click to hide internal directories.