params

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.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 CommandParams

type CommandParams struct {
	Module string
	Task   string
}

type IPayload

type IPayload interface {
	Set(key string, value interface{})
	Get(key string, def interface{}) (value interface{})
	Has(key string) bool
}

载荷

type InputParams

type InputParams struct {
	InputNum  int
	FileList  []string
	ParamsMap map[string]interface{}
}

func NewInputParams

func NewInputParams() InputParams

func (InputParams) GetFileList

func (mine InputParams) GetFileList() []string

func (InputParams) GetInputNum

func (mine InputParams) GetInputNum() int

func (InputParams) GetInputPrefix

func (mine InputParams) GetInputPrefix() string

func (InputParams) GetString

func (mine InputParams) GetString(key string) string

type InputParamsInterface

type InputParamsInterface interface {
	GetInputNum() int
	GetFileList() []string
	GetInputPrefix() string
	GetString(key string) string
}

type Payload

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

实现IPayload

func NewPayload

func NewPayload() *Payload

func (*Payload) Get

func (mine *Payload) Get(key string, def interface{}) (value interface{})

根据传入的默认值的类型判断

func (*Payload) Has

func (mine *Payload) Has(key string) bool

func (*Payload) Set

func (mine *Payload) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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