1package backend
2
3// ServerBackend is an interface that handles server configuration.
4type ServerBackend interface {
5 // ServerName returns the server's name.
6 ServerName() string
7 // SetServerName sets the server's name.
8 SetServerName(name string) error
9 // ServerHost returns the server's host.
10 ServerHost() string
11 // SetServerHost sets the server's host.
12 SetServerHost(host string) error
13 // ServerPort returns the server's port.
14 ServerPort() string
15 // SetServerPort sets the server's port.
16 SetServerPort(port string) error
17
18 // AnonAccess returns the access level for anonymous users.
19 AnonAccess() AccessLevel
20 // SetAnonAccess sets the access level for anonymous users.
21 SetAnonAccess(level AccessLevel) error
22 // AllowKeyless returns true if keyless access is allowed.
23 AllowKeyless() bool
24 // SetAllowKeyless sets whether or not keyless access is allowed.
25 SetAllowKeyless(allow bool) error
26}