Documentation ¶
Index ¶
- type HandlerFunc
- type HandlerPrivateFunc
- type Server
- func (server *Server) DashboardAPI() webdashboard.WebDashboard
- func (server *Server) LicenseAPI() weblicense.WebLicense
- func (server *Server) PublicationAPI() webpublication.WebPublication
- func (server *Server) PurchaseAPI() webpurchase.WebPurchase
- func (server *Server) RepositoryAPI() webrepository.WebRepository
- func (server *Server) UserAPI() webuser.WebUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
HandlerFunc defines a function handled by the server
type HandlerPrivateFunc ¶
type HandlerPrivateFunc func(w http.ResponseWriter, r *auth.AuthenticatedRequest, s staticapi.IServer)
type Server ¶
Server struct contains server info and db interfaces
func New ¶
func New( bindAddr string, tplPath string, repositoryAPI webrepository.WebRepository, publicationAPI webpublication.WebPublication, userAPI webuser.WebUser, dashboardAPI webdashboard.WebDashboard, licenseAPI weblicense.WebLicense, purchaseAPI webpurchase.WebPurchase, basicAuth *auth.BasicAuth) *Server
New creates a new webserver (basic user interface)
func (*Server) DashboardAPI ¶
func (server *Server) DashboardAPI() webdashboard.WebDashboard
DashboardAPI ( staticapi.IServer )returns DB interface for dashboard
func (*Server) LicenseAPI ¶
func (server *Server) LicenseAPI() weblicense.WebLicense
LicenseAPI ( staticapi.IServer )returns DB interface for license
func (*Server) PublicationAPI ¶
func (server *Server) PublicationAPI() webpublication.WebPublication
PublicationAPI ( staticapi.IServer )returns DB interface for users
func (*Server) PurchaseAPI ¶
func (server *Server) PurchaseAPI() webpurchase.WebPurchase
PurchaseAPI ( staticapi.IServer )returns DB interface for purchases
func (*Server) RepositoryAPI ¶
func (server *Server) RepositoryAPI() webrepository.WebRepository
RepositoryAPI ( staticapi.IServer ) returns interface for repositories
Click to show internal directories.
Click to hide internal directories.