cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: GPL-3.0 Imports: 26 Imported by: 0

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.

Jump to

Keyboard shortcuts

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