Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotEnabled = errors.New("feature not enabled")
Functions ¶
func ReadCustomConfig ¶
Types ¶
type PostgresApi ¶
type ScaffoldLifecycle ¶
type WebappScaffold ¶
type WebappScaffold struct {
// contains filtered or unexported fields
}
func NewFromConfigFile ¶
func NewFromConfigFile(file string) (*WebappScaffold, error)
func (*WebappScaffold) GetGin ¶
func (w *WebappScaffold) GetGin() *gin.Engine
func (*WebappScaffold) GetPostgresPool ¶
func (w *WebappScaffold) GetPostgresPool() *pgxpool.Pool
func (*WebappScaffold) PreInitDb ¶
func (w *WebappScaffold) PreInitDb() error
func (*WebappScaffold) Shutdown ¶
func (w *WebappScaffold) Shutdown() error
func (*WebappScaffold) SyncStart ¶
func (w *WebappScaffold) SyncStart() error
type WebappScaffoldConfig ¶
type WebappScaffoldConfig struct {
GlobalConfig struct {
Debug bool `toml:"debug"`
} `toml:"global"`
GinConfig struct {
ReleaseMode bool `toml:"release_mode"`
HtmlGlobPaths []string `toml:"html_glob_paths"`
Listen string `toml:"listen" default:":6001"`
StaticPathMapping map[string]string `toml:"static_path_mapping"`
} `toml:"gin"`
PgConfig struct {
Enable bool `toml:"enable" default:"false"`
PostgresConnectString string `toml:"connstring"`
} `toml:"postgres"`
}
Click to show internal directories.
Click to hide internal directories.