common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error, msg string)

Types

type Cmd

type Cmd struct {
	Action      string           `yaml:"action,omitempty"`
	Request     string           `yaml:"request,omitempty"`
	Description string           `yaml:"description,omitempty"`
	Service     string           `yaml:"service,omitempty"`
	Path        map[string]Param `yaml:"path,omitempty"`
	Query       map[string]Param `yaml:"query,omitempty"`
	Body        map[string]Param `yaml:"body,omitempty"`
	Insecurity  bool             `yaml:"insecurity,omitempty"`
}

type Cmds

type Cmds []Cmd

func (Cmds) Len

func (cs Cmds) Len() int

func (Cmds) Less

func (cs Cmds) Less(i, j int) bool

func (Cmds) Swap

func (cs Cmds) Swap(i, j int)

type Param

type Param struct {
	Shorthand string      `yaml:"shorthand,omitempty"`
	Help      string      `yaml:"help,omitempty"`
	Type      string      `yaml:"type,omitempty"`
	Default   interface{} `yaml:"default,omitempty"`
}

Jump to

Keyboard shortcuts

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