Documentation ¶
Index ¶
- type NonceGenerator
- type NonceGeneratorInterface
- type RequestHandler
- func (rh *RequestHandler) HandlerAllowAccess(w http.ResponseWriter, r *http.Request)
- func (rh *RequestHandler) HandlerAuth(w http.ResponseWriter, r *http.Request)
- func (rh *RequestHandler) HandlerReceive(w http.ResponseWriter, r *http.Request)
- func (rh *RequestHandler) HandlerRemoveAccess(w http.ResponseWriter, r *http.Request)
- func (rh *RequestHandler) HandlerSend(w http.ResponseWriter, r *http.Request)
- func (rh *RequestHandler) HandlerTxStatus(w http.ResponseWriter, r *http.Request)
- type TestNonceGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NonceGenerator ¶
type NonceGenerator struct{}
func (*NonceGenerator) Generate ¶
func (n *NonceGenerator) Generate() string
type NonceGeneratorInterface ¶
type NonceGeneratorInterface interface {
Generate() string
}
type RequestHandler ¶
type RequestHandler struct { Config *config.Config `inject:""` Client http.SimpleHTTPClientInterface `inject:""` Database db.Database `inject:""` SignatureSignerVerifier crypto.SignerVerifierInterface `inject:""` StellarTomlResolver stellartoml.ClientInterface `inject:""` FederationResolver federation.ClientInterface `inject:""` NonceGenerator NonceGeneratorInterface `inject:""` }
RequestHandler implements compliance server request handlers
func (*RequestHandler) HandlerAllowAccess ¶
func (rh *RequestHandler) HandlerAllowAccess(w http.ResponseWriter, r *http.Request)
HandlerAllowAccess implements /allow_access endpoint
func (*RequestHandler) HandlerAuth ¶
func (rh *RequestHandler) HandlerAuth(w http.ResponseWriter, r *http.Request)
HandlerAuth implements authorize endpoint
func (*RequestHandler) HandlerReceive ¶
func (rh *RequestHandler) HandlerReceive(w http.ResponseWriter, r *http.Request)
HandlerReceive implements /receive endpoint
func (*RequestHandler) HandlerRemoveAccess ¶
func (rh *RequestHandler) HandlerRemoveAccess(w http.ResponseWriter, r *http.Request)
HandlerRemoveAccess implements /remove_access endpoint
func (*RequestHandler) HandlerSend ¶
func (rh *RequestHandler) HandlerSend(w http.ResponseWriter, r *http.Request)
HandlerSend implements /send endpoint
func (*RequestHandler) HandlerTxStatus ¶
func (rh *RequestHandler) HandlerTxStatus(w http.ResponseWriter, r *http.Request)
HandlerTxStatus implements /tx_status endpoint
type TestNonceGenerator ¶
type TestNonceGenerator struct{}
func (*TestNonceGenerator) Generate ¶
func (n *TestNonceGenerator) Generate() string
Click to show internal directories.
Click to hide internal directories.