improve shutdown and app service boilerplate
This commit is contained in:
@ -1,13 +1,14 @@
|
||||
// This serves as a reference sample configuration
|
||||
// to show how to merge custom config fields into
|
||||
// go-app configuration
|
||||
// Package config contains ServiceConfig, which is intended
|
||||
// to extend go-app/pkg/config.AppConfig. Add any custom fields
|
||||
// here, and it will automatically be handled by go-app, including
|
||||
// overrides by environment, and json schema generation
|
||||
package config
|
||||
|
||||
import (
|
||||
"gitea.libretechconsulting.com/rmcguire/go-app/pkg/config"
|
||||
)
|
||||
|
||||
type DemoConfig struct {
|
||||
type ServiceConfig struct {
|
||||
Timezone string `yaml:"timezone" json:"timezone,omitempty" default:"UTC"`
|
||||
Opts *DemoOpts `yaml:"opts" json:"opts,omitempty"`
|
||||
|
||||
|
Reference in New Issue
Block a user