Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONError ¶
func JSONError(w http.ResponseWriter, err interface{}, code int)
Types ¶
type ConfirmationsHandler ¶
type ConfirmationsHandler struct {
// contains filtered or unexported fields
}
func NewConfirmationsHandler ¶
func NewConfirmationsHandler(confirmationsByChain map[uint64]map[uint64]uint64) *ConfirmationsHandler
func (*ConfirmationsHandler) HandleRequest ¶
func (h *ConfirmationsHandler) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest returns confirmations by value buckets for the requested chain
type SignatureCacher ¶
type SigningBody ¶
type SigningHandler ¶
type SigningHandler struct {
// contains filtered or unexported fields
}
func NewSigningHandler ¶
func NewSigningHandler(msgChan chan []*message.Message, chains map[uint64]struct{}) *SigningHandler
func (*SigningHandler) HandleSigning ¶
func (h *SigningHandler) HandleSigning(w http.ResponseWriter, r *http.Request)
HandleSigning sends a message to the across message handler and returns status code 202 if the deposit has been accepted for the signing process
type StatusHandler ¶
type StatusHandler struct {
// contains filtered or unexported fields
}
func NewStatusHandler ¶
func NewStatusHandler(cache SignatureCacher, chains map[uint64]struct{}) *StatusHandler
func (*StatusHandler) HandleRequest ¶
func (h *StatusHandler) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest is an sse handler that waits until the signing signature is ready and returns it
Click to show internal directories.
Click to hide internal directories.