gluamongo_mongo

package
v0.0.0-...-6b8647c Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIENT_TYPENAME = "mongo{client}"
)
View Source
const (
	COLLECTION_TYPENAME = "mongo{collection}"
)
View Source
const (
	DATABASE_TYPENAME = "mongo{database}"
)

Variables

This section is empty.

Functions

func Loader

func Loader(L *lua.LState) int

Loader mongo module loader

func RegisterType

func RegisterType(L *lua.LState)

RegisterType registers mongo types

Types

type Client

type Client struct {
	Client  *mongo.Client
	Timeout time.Duration
}

Client mongo

func (*Client) Context

func (client *Client) Context() (context.Context, context.CancelFunc)

type Collection

type Collection struct {
	Client     *Client
	Collection *mongo.Collection
}

Collection mongo

type Database

type Database struct {
	Client   *Client
	Database *mongo.Database
}

Database mongo

Jump to

Keyboard shortcuts

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