Documentation
¶
Index ¶
Constants ¶
View Source
const ( SSL_DIR = "/etc/ssl" JWT_SECRET = "There is a mouse in my house" HOST = "localhost" PORT = "8081" USEHTTPS = false TLSMINVERSION = "1.2" STRICTCIPHERS = false ENABLECORS = false )
Variables ¶
This section is empty.
Functions ¶
func NewBaseHandler ¶
Types ¶
type BaseHandler ¶
func (BaseHandler) GetPrefix ¶
func (bh BaseHandler) GetPrefix() string
func (BaseHandler) GetRoutes ¶
func (bh BaseHandler) GetRoutes() []models.Route
func (BaseHandler) GetService ¶
func (bh BaseHandler) GetService() models.Service
type Server ¶
type Server struct {
Config *ServerConfig
Logger *log.Logger
Context context.Context
Router *chi.Mux
Handlers []models.HandlerIFace
}
type ServerConfig ¶
type ServerConfig struct {
Hostname string
Port string
UseHttps bool
TLSMinVersion string
HttpTLSStrictCiphers bool
TLSCert string
TLSKey string
EnableCORS bool
JWTSecret string
LoggingConfig *httplogging.HttpLoggingConfig //api/logging/config
}
func InitServerConfig ¶
func InitServerConfig() (config *ServerConfig, err error)
Click to show internal directories.
Click to hide internal directories.