Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `env:"HCMS_HOST"`
Port string `env:"HCMS_PORT"`
LogLevel string `env:"HCMS_LOG_LEVEL"`
TextLogging bool `env:"HCMS_TEXT_LOGGING"`
JwtSecret string `env:"HCMS_JWT_SECRET"`
JwtCookieName string `env:"HCMS_JWT_COOKIE_NAME"`
}
var DefaultConfig Config
func ReadConfig ¶
func ReadConfig() *Config
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(config *Config, store cms.Repository) *Handler
NewHandler creates a new top level api handler
Click to show internal directories.
Click to hide internal directories.