Documentation
¶
Overview ¶
Package cli implements the CLI of the CEEMS API server app
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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) Validate ¶ added in v0.5.2
func (c *CEEMSAPIAppConfig) Validate() error
Validate validates the config.
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.