Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP server
func NewServer ¶
func NewServer(config *ServerConfig) *Server
NewServer creates a new server instance
type ServerConfig ¶
type ServerConfig struct { Port string Host string Debug bool CORSEnabled bool SwaggerEnabled bool }
ServerConfig holds the server configuration
func DefaultConfig ¶
func DefaultConfig() *ServerConfig
DefaultConfig returns a default server configuration
Click to show internal directories.
Click to hide internal directories.