handlers

package
v0.0.0-...-821bc58 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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