Documentation ¶
Index ¶
- Constants
- Variables
- func CastBSON(L *lua.LState, idx int) interface{}
- func GetValue(l *lua.LState, idx int) interface{}
- func LDateTime(L *lua.LState, dt primitive.DateTime) *lua.LUserData
- func LNull(L *lua.LState) *lua.LUserData
- func LObjectID(L *lua.LState, oid primitive.ObjectID) *lua.LUserData
- func LTimestamp(L *lua.LState, ts primitive.Timestamp) *lua.LUserData
- func NewDateTime(L *lua.LState) int
- func NewObjectID(L *lua.LState) int
- func NewTimestamp(L *lua.LState) int
- func RegisterType(L *lua.LState)
- func ToBSON(L *lua.LState, idx int) interface{}
- func ToLuaValue(l *lua.LState, i interface{}) lua.LValue
- func UnmarshalBSON(str string) (interface{}, error)
- func Value(l *lua.LState, v lua.LValue) interface{}
- type DateTime
- type Null
- type ObjectID
- type Timestamp
Constants ¶
View Source
const ( DATETIME_TYPENAME = "bson{datetime}" TIMESTAMP_TYPENAME = "bson{timestamp}" NULL_TYPENAME = "bson{null}" )
bson types
View Source
const (
OBJECTID_TYPENAME = "bson{objectid}"
)
bson types
Variables ¶
View Source
var ErrInvalidBSON = errors.New("invalid BSON")
Functions ¶
func LTimestamp ¶
LTimestamp creates Timestamp value for glua
func ToLuaValue ¶
ToLuaValue converts go value to glua vm value
func UnmarshalBSON ¶
UnmarshalBSON unmarshals extended json to bson
Types ¶
Click to show internal directories.
Click to hide internal directories.