Other(refactor): Remove bridgeWrap from frontend interface

This commit is contained in:
James Houlahan
2022-08-26 15:12:19 +02:00
committed by Jakub
parent 9786deef48
commit 6bbe2d0e00
16 changed files with 307 additions and 168 deletions

View File

@ -46,3 +46,38 @@ type StoreMaker interface {
New(user store.BridgeUser) (*store.Store, error)
Remove(userID string) error
}
type UserInfo struct {
ID string
Username string
Password string
Addresses []string
Primary int
UsedBytes int64
TotalBytes int64
Connected bool
Mode AddressMode
}
type AddressMode int
const (
SplitMode AddressMode = iota
CombinedMode
)
func (mode AddressMode) String() string {
switch mode {
case SplitMode:
return "split mode"
case CombinedMode:
return "combined mode"
default:
return "unknown mode"
}
}