dbm

package
v0.0.0-...-3b2a3f4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionData

type FunctionData struct {
	Name        string   `bson:"name"`
	Description string   `bson:"description"`
	Websocket   bool     `bson:"websocket"`
	Methods     []string `json:"methods"`
	Code        string   `bson:"code"`
	HashCode    string   `bson:"hashcode"` // code hashcode
	Version     int64    `bson:"version"`
}

type FunctionManager

type FunctionManager struct {
	// contains filtered or unexported fields
}

func NewFunctionManager

func NewFunctionManager(context context.Context, connectionURI string, databaseName string) (*FunctionManager, error)

func (*FunctionManager) Delete

func (f *FunctionManager) Delete(name string) error

func (*FunctionManager) Disconnect

func (f *FunctionManager) Disconnect()

func (*FunctionManager) Get

func (f *FunctionManager) Get(name string) (*FunctionData, error)

func (*FunctionManager) Insert

func (f *FunctionManager) Insert(fd FunctionData) error

func (*FunctionManager) Update

func (f *FunctionManager) Update(name string, update bson.M) error

Jump to

Keyboard shortcuts

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