config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoConfigArgs

type ProtoConfigArgs struct {
	ID       int    // The ID of the task
	HttpAddr string // Usually used to save the address of the master
	Callback string // If it is asynchronous mode, the response
	// will be sent to the address specified by Callback
	Options interface{}
}

func NewConfigArgs added in v0.1.1

func NewConfigArgs(opts interface{}) *ProtoConfigArgs

type WebOptions

type WebOptions struct {
	DSN  string `json:"dsn,omitempty"`
	File string `json:"file,omitempty"`
	Type string `json:"type,omitempty"`
}

WebOptions contains options of the web command

func NewWebOptions added in v0.1.1

func NewWebOptions() *WebOptions

func (*WebOptions) Validate added in v0.1.1

func (webOptions *WebOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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