Documentation ¶ Index ¶ Variables func New(cfg *Config) *echo.Echo func Start(e *echo.Echo, isDevelopment bool) type Config Constants ¶ This section is empty. Variables ¶ View Source var ( // DefaultConfig for the API server DefaultConfig = Config{ Stage: "development", Port: 8080, ReadTimeout: 10, WriteTimeout: 5, Debug: true, AllowOrigins: []string{"*"}, } ) Functions ¶ func New ¶ func New(cfg *Config) *echo.Echo New instantates new Echo server func Start ¶ func Start(e *echo.Echo, isDevelopment bool) Start starts echo server Types ¶ type Config ¶ type Config struct { Stage string Port int ReadTimeout int WriteTimeout int Debug bool AllowOrigins []string IsEnableSwagger bool SwaggerPath string } Config represents server specific config Source Files ¶ View all Source files server.go Directories ¶ Show internal Expand all Path Synopsis apperr binder middleware jwt logger secure Click to show internal directories. Click to hide internal directories.