nsOutput

package
v0.0.0-...-1c95f08 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const NS_OUTPUT_ERROR = "nsOutput error: "

Variables

View Source
var (
	Print              = nsOutput.NewCounter("Print")
	Printf             = nsOutput.NewCounter("Printf")
	ValueCounter       = nsOutput.NewCounter("Value")
	ValueDirectCounter = nsOutput.NewCounter("ValueDirect")
	TableCounter       = nsOutput.NewCounter("Table")
	TableDirectCounter = nsOutput.NewCounter("TableDirect")
	MapCounter         = nsOutput.NewCounter("Map")
	MapDirectCounter   = nsOutput.NewCounter("MapDirect")
	HTMLCounter        = nsOutput.NewCounter("HTML")
	HTMLDirectCounter  = nsOutput.NewCounter("HTMLDirect")
	TableToCsv         = nsOutput.NewCounter("TableToCsv")
	ErrTableToCsv      = nsOutput.NewCounter("ErrTableToCsv")
	ErrPrint           = nsOutput.NewCounter("ErrPrint")
	ErrPrintf          = nsOutput.NewCounter("ErrPrintf")
	ErrValue           = nsOutput.NewCounter("ErrValue")
	ErrValueDirect     = nsOutput.NewCounter("ErrValueDirect")
	ErrTable           = nsOutput.NewCounter("ErrTable")
	ErrTableDirect     = nsOutput.NewCounter("ErrTableDirect")
	ErrMap             = nsOutput.NewCounter("ErrMap")
	ErrMapDirect       = nsOutput.NewCounter("ErrMapDirect")
	ErrHTML            = nsOutput.NewCounter("ErrHTML")
	ErrHTMLDirect      = nsOutput.NewCounter("ErrHTMLDirect")
)
View Source
var (
	NsOutputPrintLimit, _ = config.GetInt("NS_OUTPUT_PRINT_LIMIT", 10000)
)

Functions

This section is empty.

Types

type Item

type Item struct {
	Label     string      `json:"label"`
	Locations []*Location `json:"locations"`
}

type Location

type Location struct {
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type Map

type Map struct {
	Type   string    `json:"type"`
	Center *Location `json:"center"`
	Zoom   int       `json:"zoom"`
	Items  []*Item   `json:"items"`
}

type NsOutputModule

type NsOutputModule struct {
	Limit   int
	Rolling int
	Stdout  []string
	Result  string
}

func NewNsOutputModule

func NewNsOutputModule() *NsOutputModule

func (*NsOutputModule) Loader

func (nsOutput *NsOutputModule) Loader(L *lua.LState) int

func (*NsOutputModule) Reset

func (nsOutput *NsOutputModule) Reset()

type Output

type Output struct {
	Type    string      `json:"type"`
	Content interface{} `json:"content"`
}

type Table

type Table struct {
	Columns []string        `json:"columns"`
	Types   []string        `json:"types"`
	Rows    [][]interface{} `json:"rows"`
}

type Value

type Value struct {
	Type       string `json:"type"`
	Value      string `json:"value"`
	Semantic   string `json:"semantic"`
	Background string `json:"background"`
}

Jump to

Keyboard shortcuts

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