cli

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL