http

package
v0.0.0-...-8f31e64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryKeyPaymentID = "paymentID"
View Source
var QueryKeyProject = "project"

Functions

func HTTPListenAndServe

func HTTPListenAndServe(
	srv *service.Service,
	log librefund.Logger,
) error

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,
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL