Documentation
¶
Index ¶
- func ConfigApplier(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime, ...) servercfg.Applier
- func Init(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime) (http.Handler, error)
- func InitIPRegister(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime) http.Handler
- type State
- func (s *State) AdminUsername() string
- func (s *State) Authorization() webservice.AuthorizationService
- func (s *State) AvailablePageSpecs(specs []webapi.PageSpec) []webapi.PageSpec
- func (s *State) BaseURL() string
- func (s *State) CurrentConfig() *servercfg.Snapshot
- func (s *State) LoginPolicy() webservice.LoginPolicyService
- func (s *State) LoginURL() string
- func (s *State) PermissionResolver() webservice.PermissionResolver
- func (s *State) System() webservice.SystemService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigApplier ¶ added in v0.35.0
func ConfigApplier(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime, set func(http.Handler)) servercfg.Applier
ConfigApplier returns the applier of the settings of the web manager: when one changes, it builds the handler again as Init does and hands it to set. The handler is built once the new settings are current, from the same arguments as Init.
func Init ¶
func Init(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime) (http.Handler, error)
Init returns the handler of the web manager acting on the store db and on runtime, the running server; the login encrypts credentials to identity.
func InitIPRegister ¶ added in v0.34.9
func InitIPRegister(db *file.DbUtils, identity *crypt.Identity, runtime webservice.Runtime) http.Handler
InitIPRegister returns the handler of the registration page on its own listener and behind bridge://ipreg: the page at / and /ip/register, its static files and captcha, behind the global access lists.
Types ¶
type State ¶ added in v0.34.8
State centralizes router-side dependencies so transport code does not reach into global singletons directly.
func (*State) AdminUsername ¶ added in v0.34.8
func (*State) Authorization ¶ added in v0.34.8
func (s *State) Authorization() webservice.AuthorizationService
func (*State) AvailablePageSpecs ¶ added in v0.34.8
func (*State) CurrentConfig ¶ added in v0.34.8
func (*State) LoginPolicy ¶ added in v0.34.8
func (s *State) LoginPolicy() webservice.LoginPolicyService
func (*State) PermissionResolver ¶ added in v0.34.8
func (s *State) PermissionResolver() webservice.PermissionResolver
func (*State) System ¶ added in v0.34.8
func (s *State) System() webservice.SystemService