Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(p datastore.ProposalsStore, f datastore.FundsStore, block0 *[]byte, address string, revProxyAddr string) error
Types ¶
type ApiHandler ¶
type ApiHandler struct {
V0Handler *V0Handler
}
func (*ApiHandler) ServeHTTP ¶
func (h *ApiHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type App ¶
type App struct {
// Not using http.Handler for decoupling
ApiHandler *ApiHandler
}
type Block0Handler ¶
type Block0Handler struct {
}
func (*Block0Handler) ServeHTTP ¶
func (h *Block0Handler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type FundInfoHandler ¶
type FundInfoHandler struct {
}
func (*FundInfoHandler) ServeHTTP ¶
func (h *FundInfoHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type ProposalHandler ¶
type ProposalHandler struct {
ProposalListAll *ProposalListAll
ProposalListSingle *ProposalListSingle
}
func (*ProposalHandler) ServeHTTP ¶
func (h *ProposalHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
type ProposalListAll ¶
type ProposalListAll struct {
}
func (*ProposalListAll) ServeHTTP ¶
func (h *ProposalListAll) ServeHTTP(res http.ResponseWriter, req *http.Request)
type ProposalListSingle ¶
type ProposalListSingle struct {
}
func (*ProposalListSingle) Handler ¶
func (h *ProposalListSingle) Handler(internalID string, res http.ResponseWriter, req *http.Request) http.Handler
type V0Handler ¶
type V0Handler struct {
ProposalHandler *ProposalHandler
Block0Handler *Block0Handler
FundInfoHandler *FundInfoHandler
}
Click to show internal directories.
Click to hide internal directories.