mirror of
https://github.com/ngoduykhanh/wireguard-ui
synced 2024-06-08 08:52:20 +02:00
20 lines
622 B
Go
20 lines
622 B
Go
|
package store
|
||
|
|
||
|
import (
|
||
|
"github.com/ngoduykhanh/wireguard-ui/model"
|
||
|
)
|
||
|
|
||
|
type IStore interface {
|
||
|
Init() error
|
||
|
GetUser() (model.User, error)
|
||
|
GetGlobalSettings() (model.GlobalSetting, error)
|
||
|
GetServer() (model.Server, error)
|
||
|
GetClients(hasQRCode bool) ([]model.ClientData, error)
|
||
|
GetClientByID(clientID string, hasQRCode bool) (model.ClientData, error)
|
||
|
SaveClient(client model.Client) error
|
||
|
DeleteClient(clientID string) error
|
||
|
SaveServerInterface(serverInterface model.ServerInterface) error
|
||
|
SaveServerKeyPair(serverKeyPair model.ServerKeypair) error
|
||
|
SaveGlobalSettings(globalSettings model.GlobalSetting) error
|
||
|
}
|