Documentation ¶
Overview ¶
Package cli implements the CLI of the CEEMS API server app
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBackupInt = errors.New("back up interval of less than 1 day is not supported")
)
Custom errors.
Functions ¶
This section is empty.
Types ¶
type CEEMSAPIAppConfig ¶
type CEEMSAPIAppConfig struct {
Server CEEMSAPIServerConfig `yaml:"ceems_api_server"`
}
CEEMSAPIAppConfig contains the configuration of CEEMS API server.
func (*CEEMSAPIAppConfig) SetDirectory ¶
func (c *CEEMSAPIAppConfig) SetDirectory(dir string)
SetDirectory joins any relative file paths with dir.
func (*CEEMSAPIAppConfig) UnmarshalYAML ¶
func (c *CEEMSAPIAppConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
type CEEMSAPIServerConfig ¶
type CEEMSAPIServerConfig struct { Data ceems_db.DataConfig `yaml:"data"` Admin ceems_db.AdminConfig `yaml:"admin"` Web ceems_http.WebConfig `yaml:"web"` }
CEEMSAPIServerConfig contains the configuration of CEEMS API server.
type CEEMSServer ¶
type CEEMSServer struct { App kingpin.Application // contains filtered or unexported fields }
CEEMSServer represents the `ceems_server` cli.
func NewCEEMSServer ¶
func NewCEEMSServer() (*CEEMSServer, error)
NewCEEMSServer creates a new CEEMSServer instance.
func (*CEEMSServer) Main ¶
func (b *CEEMSServer) Main() error
Main is the entry point of the `ceems_server` command.
Click to show internal directories.
Click to hide internal directories.