settings

package
v0.0.0-...-62531ef Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Extensions = validExtensions.EnumType("RasterExtension")
)

Functions

This section is empty.

Types

type Commands

type Commands map[string]command.Command

func (Commands) Get

func (cs Commands) Get(name string) (c command.Command, err error)

func (Commands) Must

func (cs Commands) Must(name string) (c command.Command)

func (Commands) Select

func (cs Commands) Select(names ...string) (c command.Command, err error)

type Common

type Common struct {
	RasterExtension RasterExtension `json:"raster_extension"`
	GammaDirectory  path.Dir        `json:"gamma_directory"`
	CachePath       path.Dir        `json:"cache_path"`
	Logging         Logger          `json:"logging"`
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

type Payload

type Payload struct {
	Common
	Modules  []string     `json:"modules"`
	Executor json.Payload `json:"executor"`
}

func (Payload) MakeCommands

func (p Payload) MakeCommands() (c Commands, err error)

func (Payload) ToSettings

func (p Payload) ToSettings() (s Settings, err error)

type RasterExtension

type RasterExtension string

func (*RasterExtension) UnmarshalJSON

func (r *RasterExtension) UnmarshalJSON(b []byte) (err error)

func (RasterExtension) Validate

func (r RasterExtension) Validate() (err error)

type Settings

type Settings struct {
	Common
	Executor command.Executor
	Commands Commands
	Logger   log.Logger
}

Jump to

Keyboard shortcuts

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