Documentation ¶
Index ¶
- func Delete(id string, ident string, col string) error
- func DeleteVPN(id string, col string) error
- func Deserialize(id string, parm string, col string, t reflect.Type) (interface{}, error)
- func GetDevicesForPushNotifications() ([]*model.Device, error)
- func Initialize() error
- func ReadAccountForUser(email string, accountid string) (*model.Account, error)
- func ReadAllAccounts(email string) ([]*model.Account, error)
- func ReadAllAccountsForID(id string) ([]*model.Account, error)
- func ReadAllDevices(param string, id string) ([]*model.Device, error)
- func ReadAllNetworks(param string, id string) ([]*model.Network, error)
- func ReadAllServers() ([]*model.Server, error)
- func ReadAllServices(accountid string) ([]*model.Service, error)
- func ReadAllSubscriptions(accountid string) ([]*model.Subscription, error)
- func ReadAllUsers() []*model.User
- func ReadAllVPNs(param string, id string) ([]*model.VPN, error)
- func ReadDevicesAndVPNsForAccount(accountid string) ([]*model.Device, error)
- func ReadServiceHost(id string) ([]*model.Service, error)
- func ReadServices(param string, id string) ([]*model.Service, error)
- func ReadVPNsforNetwork(netid string) ([]*model.VPN, error)
- func Serialize(id string, parm string, col string, c interface{}) error
- func UpsertUser(user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize read interface from disk
func GetDevicesForPushNotifications ¶
GetDevicesForPushNotifications from MongoDB
func ReadAccountForUser ¶
ReadAccountForUser from MongoDB
func ReadAllAccounts ¶
ReadAllAccounts from MongoDB
func ReadAllAccountsForID ¶
ReadAllAccountsForID from MongoDB
func ReadAllDevices ¶
ReadAllDevices from MongoDB
func ReadAllNetworks ¶
ReadAllNetworks from MongoDB
func ReadAllServices ¶
ReadAllServices from MongoDB
func ReadAllSubscriptions ¶
func ReadAllSubscriptions(accountid string) ([]*model.Subscription, error)
ReadAllSubscriptions from MongoDB
func ReadAllVPNs ¶
ReadAllHosts from MongoDB
func ReadDevicesAndVPNsForAccount ¶
ReadDevicesAndVPNsForAccount
func ReadServiceHost ¶
ReadServiceHost from MongoDB
func ReadServices ¶
ReadAllServices from MongoDB
func ReadVPNsforNetwork ¶
ReadVPNsforNetwork from MongoDB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.