cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPassword = "OpenDEX!Rocks"
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func Export

func Export(services []service.Service) string

func Export2

func Export2(services []service.Service) string

func ExportCompose

func ExportCompose(services []service.Service)

func ExportConfig

func ExportConfig(services []service.Service)

func GetBuildTime

func GetBuildTime() string

func GetVersion

func GetVersion() string

Types

type Config

type Config struct {
	Timestamp string        `json:"timestamp"`
	Network   string        `json:"network"`
	Services  []interface{} `json:"services"`
}

type Error

type Error struct {
	Message string `json:"message"`
}

type Service

type Service struct {
	Name     string      `json:"name"`
	Rpc      interface{} `json:"rpc"`
	Disabled bool        `json:"disabled"`
	Mode     string      `json:"mode"`
}

type StatusResponse

type StatusResponse struct {
	Service string `json:"service"`
	Status  string `json:"status"`
}

Jump to

Keyboard shortcuts

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