Documentation ¶
Index ¶
- type SiteAccounts
- func (siteacc *SiteAccounts) AccountsManager() *manager.AccountsManager
- func (siteacc *SiteAccounts) AlertsDispatcher() *alerting.Dispatcher
- func (siteacc *SiteAccounts) GetPublicEndpoints() []string
- func (siteacc *SiteAccounts) RequestHandler() http.Handler
- func (siteacc *SiteAccounts) ShowAccountPanel(w http.ResponseWriter, r *http.Request, session *html.Session) error
- func (siteacc *SiteAccounts) ShowAdministrationPanel(w http.ResponseWriter, r *http.Request, session *html.Session) error
- func (siteacc *SiteAccounts) SitesManager() *manager.SitesManager
- func (siteacc *SiteAccounts) UsersManager() *manager.UsersManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SiteAccounts ¶
type SiteAccounts struct {
// contains filtered or unexported fields
}
SiteAccounts represents the main Site Accounts service object.
func New ¶
func New(conf *config.Configuration, log *zerolog.Logger) (*SiteAccounts, error)
New returns a new Site Accounts service instance.
func (*SiteAccounts) AccountsManager ¶
func (siteacc *SiteAccounts) AccountsManager() *manager.AccountsManager
AccountsManager returns the central accounts manager instance.
func (*SiteAccounts) AlertsDispatcher ¶
func (siteacc *SiteAccounts) AlertsDispatcher() *alerting.Dispatcher
AlertsDispatcher returns the central alerts dispatcher instance.
func (*SiteAccounts) GetPublicEndpoints ¶
func (siteacc *SiteAccounts) GetPublicEndpoints() []string
GetPublicEndpoints returns a list of all public endpoints.
func (*SiteAccounts) RequestHandler ¶
func (siteacc *SiteAccounts) RequestHandler() http.Handler
RequestHandler returns the HTTP request handler of the service.
func (*SiteAccounts) ShowAccountPanel ¶
func (siteacc *SiteAccounts) ShowAccountPanel(w http.ResponseWriter, r *http.Request, session *html.Session) error
ShowAccountPanel writes the account panel HTTP output directly to the response writer.
func (*SiteAccounts) ShowAdministrationPanel ¶
func (siteacc *SiteAccounts) ShowAdministrationPanel(w http.ResponseWriter, r *http.Request, session *html.Session) error
ShowAdministrationPanel writes the administration panel HTTP output directly to the response writer.
func (*SiteAccounts) SitesManager ¶ added in v2.3.0
func (siteacc *SiteAccounts) SitesManager() *manager.SitesManager
SitesManager returns the central sites manager instance.
func (*SiteAccounts) UsersManager ¶
func (siteacc *SiteAccounts) UsersManager() *manager.UsersManager
UsersManager returns the central users manager instance.