datamantype

package
v0.0.0-...-49e5460 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DateTimeFormatStr = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type DatamanType

type DatamanType string

TODO: rename to SchemaMan Type?

const (
	Document DatamanType = "document"
	String   DatamanType = "string" // max len 4096
	Text     DatamanType = "text"
	Serial   DatamanType = "serial"
	// We should support converting anything to an int that doesn't lose data
	Int DatamanType = "int"
	// TODO: int64
	// TODO: uint
	// TODO: uint64
	Float DatamanType = "float"
	Bool  DatamanType = "bool"
	// TODO: actually implement
	DateTime DatamanType = "datetime"
	JSON     DatamanType = "json"
)

func (DatamanType) Normalize

func (f DatamanType) Normalize(val interface{}) (interface{}, error)

Normalize the given interface into what we want/expect

Jump to

Keyboard shortcuts

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