Documentation ¶
Index ¶
- type JsonDB
- func (o *JsonDB) DeleteClient(clientID string) error
- func (o *JsonDB) DeleteWakeOnHost(host model.WakeOnLanHost) error
- func (o *JsonDB) DeleteWakeOnHostLanHost(macAddress string) error
- func (o *JsonDB) GetClientByID(clientID string, qrCodeSettings model.QRCodeSettings) (model.ClientData, error)
- func (o *JsonDB) GetClients(hasQRCode bool) ([]model.ClientData, error)
- func (o *JsonDB) GetGlobalSettings() (model.GlobalSetting, error)
- func (o *JsonDB) GetServer() (model.Server, error)
- func (o *JsonDB) GetUser() (model.User, error)
- func (o *JsonDB) GetWakeOnLanHost(macAddress string) (*model.WakeOnLanHost, error)
- func (o *JsonDB) GetWakeOnLanHosts() ([]model.WakeOnLanHost, error)
- func (o *JsonDB) Init() error
- func (o *JsonDB) SaveClient(client model.Client) error
- func (o *JsonDB) SaveGlobalSettings(globalSettings model.GlobalSetting) error
- func (o *JsonDB) SaveServerInterface(serverInterface model.ServerInterface) error
- func (o *JsonDB) SaveServerKeyPair(serverKeyPair model.ServerKeypair) error
- func (o *JsonDB) SaveWakeOnLanHost(host model.WakeOnLanHost) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonDB ¶
type JsonDB struct {
// contains filtered or unexported fields
}
func (*JsonDB) DeleteClient ¶
func (*JsonDB) DeleteWakeOnHost ¶
func (o *JsonDB) DeleteWakeOnHost(host model.WakeOnLanHost) error
func (*JsonDB) DeleteWakeOnHostLanHost ¶
func (*JsonDB) GetClientByID ¶
func (o *JsonDB) GetClientByID(clientID string, qrCodeSettings model.QRCodeSettings) (model.ClientData, error)
func (*JsonDB) GetClients ¶
func (o *JsonDB) GetClients(hasQRCode bool) ([]model.ClientData, error)
func (*JsonDB) GetGlobalSettings ¶
func (o *JsonDB) GetGlobalSettings() (model.GlobalSetting, error)
GetGlobalSettings func to query global settings from the database
func (*JsonDB) GetWakeOnLanHost ¶
func (o *JsonDB) GetWakeOnLanHost(macAddress string) (*model.WakeOnLanHost, error)
func (*JsonDB) GetWakeOnLanHosts ¶
func (o *JsonDB) GetWakeOnLanHosts() ([]model.WakeOnLanHost, error)
func (*JsonDB) SaveGlobalSettings ¶
func (o *JsonDB) SaveGlobalSettings(globalSettings model.GlobalSetting) error
func (*JsonDB) SaveServerInterface ¶
func (o *JsonDB) SaveServerInterface(serverInterface model.ServerInterface) error
func (*JsonDB) SaveServerKeyPair ¶
func (o *JsonDB) SaveServerKeyPair(serverKeyPair model.ServerKeypair) error
func (*JsonDB) SaveWakeOnLanHost ¶
func (o *JsonDB) SaveWakeOnLanHost(host model.WakeOnLanHost) error
Click to show internal directories.
Click to hide internal directories.