mongo

package
v0.0.0-...-eae6339 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string, ident string, col string) error

Delete removes the given id from the given collection

func DeleteHost

func DeleteHost(id string, col string) error

DeleteHost removes the given id from the given collection

func Deserialize

func Deserialize(id string, parm string, col string, t reflect.Type) (interface{}, error)

Deserialize read interface from disk

func ReadAllAccounts

func ReadAllAccounts(email string) ([]*model.Account, error)

ReadAllAccounts from MongoDB

func ReadAllAccountsForID

func ReadAllAccountsForID(id string) ([]*model.Account, error)

ReadAllAccountsForID from MongoDB

func ReadAllHosts

func ReadAllHosts(param string, id string) ([]*model.Host, error)

ReadAllHosts from MongoDB

func ReadAllMeshes

func ReadAllMeshes(param string, id string) []*model.Mesh

ReadAllMeshes from MongoDB

func ReadAllServers

func ReadAllServers() ([]*model.Server, error)

ReadAllServers from MongoDB

func ReadAllServices

func ReadAllServices(email string) ([]*model.Service, error)

ReadAllServices from MongoDB

func ReadAllSubscriptions

func ReadAllSubscriptions(email string) ([]*model.Subscription, error)

ReadAllSubscriptions from MongoDB

func ReadAllUsers

func ReadAllUsers() []*model.User

ReadAllUsers from MongoDB

func ReadServiceHost

func ReadServiceHost(id string) ([]*model.Service, error)

ReadServiceHost from MongoDB

func Serialize

func Serialize(id string, parm string, col string, c interface{}) error

Serialize write interface to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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