Documentation ¶
Index ¶
- type AdminServer
- func NewTcpAdminServer(addr string, usrRepo *authStuff.UserRepo, accRepo *accounts.AccountRepo, ...) (*AdminServer, error)
- func NewTlsAdminServer(addr, certPath, keyPath, caCertPath string, tlsClientcertRequired bool, ...) (*AdminServer, error)
- func NewUnixAdminServer(pathToSocket string, usrRepo *authStuff.UserRepo, ...) (*AdminServer, error)
- type Command
- type DeleteUserCommand
- type ListAccountsCommand
- type ListBeveragesCommand
- type ListTransactionssCommand
- type ListUsersCommand
- type PerformBackupCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminServer ¶
type AdminServer struct {
// contains filtered or unexported fields
}
func NewTcpAdminServer ¶
func NewTcpAdminServer(addr string, usrRepo *authStuff.UserRepo, accRepo *accounts.AccountRepo, bevRepo *beverages.BeverageRepo, perms *permissions.Permissions) (*AdminServer, error)
func NewTlsAdminServer ¶
func NewTlsAdminServer(addr, certPath, keyPath, caCertPath string, tlsClientcertRequired bool, usrRepo *authStuff.UserRepo, accRepo *accounts.AccountRepo, bevRepo *beverages.BeverageRepo, perms *permissions.Permissions) (*AdminServer, error)
func NewUnixAdminServer ¶
func NewUnixAdminServer(pathToSocket string, usrRepo *authStuff.UserRepo, accRepo *accounts.AccountRepo, bevRepo *beverages.BeverageRepo, perms *permissions.Permissions) (*AdminServer, error)
func (*AdminServer) Close ¶
func (as *AdminServer) Close() error
func (*AdminServer) StartAccepting ¶
func (as *AdminServer) StartAccepting()
type Command ¶
type Command struct { Type string `json:"type"` Payload json.RawMessage `json:"cmd"` }
type DeleteUserCommand ¶
type DeleteUserCommand struct {
Name string
}
type ListAccountsCommand ¶
type ListAccountsCommand struct {
Name string //Username optional to filter for
}
type ListBeveragesCommand ¶
type ListBeveragesCommand struct {
Name string //Username optional to filter for
}
type ListUsersCommand ¶
type ListUsersCommand struct { }
type PerformBackupCommand ¶
type PerformBackupCommand struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.