Documentation
¶
Index ¶
- Variables
- func HTTPListenAndServe(srv *service.Service, log librefund.Logger) error
- type HTTPServer
- func (h *HTTPServer) Contribute(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) ContributeBitcoin(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) ContributePost(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetAbout(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetProject(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetProjectContributions(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetProjectUpdates(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetTermsAndConditions(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetTransaction(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) GetURL(name string, attrs ...string) (string, error)
- func (h *HTTPServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *HTTPServer) SetLogger(log librefund.Logger)
- func (h *HTTPServer) WriteQRCode(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryKeyPaymentID = "paymentID"
View Source
var QueryKeyProject = "project"
Functions ¶
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPService ¶
func NewHTTPService(srv *service.Service) (*HTTPServer, error)
NewHTTPServer serves the daemon to clients over HTTP.
func (*HTTPServer) Contribute ¶
func (h *HTTPServer) Contribute( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) ContributeBitcoin ¶
func (h *HTTPServer) ContributeBitcoin( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) ContributePost ¶
func (h *HTTPServer) ContributePost( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetAbout ¶
func (h *HTTPServer) GetAbout( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetProject ¶
func (h *HTTPServer) GetProject( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetProjectContributions ¶
func (h *HTTPServer) GetProjectContributions( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetProjectUpdates ¶
func (h *HTTPServer) GetProjectUpdates( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetTermsAndConditions ¶
func (h *HTTPServer) GetTermsAndConditions( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetTransaction ¶
func (h *HTTPServer) GetTransaction( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) GetURL ¶
func (h *HTTPServer) GetURL(name string, attrs ...string) (string, error)
url returns the URL path for the given route.
func (*HTTPServer) ServeHTTP ¶
func (h *HTTPServer) ServeHTTP( w http.ResponseWriter, r *http.Request, )
func (*HTTPServer) SetLogger ¶
func (h *HTTPServer) SetLogger(log librefund.Logger)
func (*HTTPServer) WriteQRCode ¶
func (h *HTTPServer) WriteQRCode( w http.ResponseWriter, r *http.Request, )
Click to show internal directories.
Click to hide internal directories.