Documentation ¶
Index ¶
- func AccountBalanceHandler(w http.ResponseWriter, r *http.Request)
- func AccountErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
- func AccountNotFoundErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
- func AccountTransactionsHandler(w http.ResponseWriter, r *http.Request)
- func AccountUnlockedErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
- func CreateSignedMessageHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func ErrorHandler(w http.ResponseWriter, r *http.Request, m string, e error, statusCode int)
- func GetContentLinksHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func GetContentNeededHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func GetFullStateHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func GetNodeStateHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func GetSignatureListHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func JoinHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func KeystoreAccountCreationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func KeystoreAccountRetrievalHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func KeystoreAccountUnlockHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func LeaveHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func MarketPoolsCreateHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func MarketPoolsHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func MarketPoolsOwnedHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func NodeNewApplicationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func NodeViewAllApplicationsHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func NodeViewApplicationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func PoolContainsNode(database *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolEditApplicationHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolNewApplicationHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolNodes(database *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolPublicDataHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
- func PoolResponseForAddress(poolAddress string, ga *blockchain.GladiusAccountManager) (blockchain.PoolResponse, error)
- func PoolRetrieveApprovedApplicationsHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolRetrievePendingNodeConfirmationApplicationsHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolRetrievePendingPoolConfirmationApplicationsHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolRetrieveRejectedApplicationsHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolStatusViewHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PoolViewApplicationHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PublicPoolInformationHandler(database *gorm.DB) func(w http.ResponseWriter, r *http.Request)
- func PushStateMessageHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func ResponseHandler(w http.ResponseWriter, r *http.Request, m string, success bool, err *string, ...)
- func SetStateDebugHandler(p *peer.Peer) func(w http.ResponseWriter, r *http.Request)
- func StatusHandler(w http.ResponseWriter, r *http.Request)
- func StatusTxHandler(w http.ResponseWriter, r *http.Request)
- func VerifySignedMessageHandler(w http.ResponseWriter, r *http.Request)
- type PoolContainsWallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountBalanceHandler ¶
func AccountBalanceHandler(w http.ResponseWriter, r *http.Request)
func AccountErrorHandler ¶
func AccountErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
Account Manager Error Handler, checks required account permissions prior to accessing API endpoints
func AccountNotFoundErrorHandler ¶
func AccountNotFoundErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
func AccountTransactionsHandler ¶
func AccountTransactionsHandler(w http.ResponseWriter, r *http.Request)
func AccountUnlockedErrorHandler ¶
func AccountUnlockedErrorHandler(w http.ResponseWriter, r *http.Request, ga *blockchain.GladiusAccountManager) error
func CreateSignedMessageHandler ¶
func CreateSignedMessageHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func ErrorHandler ¶
ErrorHandler - Default Error Handler
func GetContentLinksHandler ¶
GetContentLinksHandler gets the links to the given list of files from random nodes in the network
func GetContentNeededHandler ¶
GetContentNeededHandler compares the content provided with what is required by the pool and returns the deltas in the format website/<asset or route/filename
func GetFullStateHandler ¶
GetFullStateHandler gets the current state the node has access to.
func GetNodeStateHandler ¶
GetNodeStateHandler gets the current state of a specific node
func GetSignatureListHandler ¶
GetSignatureListHandler gets the list of signatures used to create the current state
func JoinHandler ¶
JoinHandler takes in an IP and tries to join it's cluster
func KeystoreAccountCreationHandler ¶
func KeystoreAccountCreationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func KeystoreAccountRetrievalHandler ¶
func KeystoreAccountRetrievalHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func KeystoreAccountUnlockHandler ¶
func KeystoreAccountUnlockHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func LeaveHandler ¶
func MarketPoolsCreateHandler ¶
func MarketPoolsCreateHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
MarketPoolsCreateHandler - Create a new Pool
func MarketPoolsHandler ¶
func MarketPoolsHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
MarketPoolsHandler - Returns all Pools
func MarketPoolsOwnedHandler ¶
func MarketPoolsOwnedHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func NodeNewApplicationHandler ¶
func NodeNewApplicationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
New Routes
func NodeViewAllApplicationsHandler ¶
func NodeViewAllApplicationsHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func NodeViewApplicationHandler ¶
func NodeViewApplicationHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request)
func PoolContainsNode ¶
func PoolPublicDataHandler ¶
func PoolPublicDataHandler(ga *blockchain.GladiusAccountManager) func(w http.ResponseWriter, r *http.Request)
func PoolResponseForAddress ¶
func PoolResponseForAddress(poolAddress string, ga *blockchain.GladiusAccountManager) (blockchain.PoolResponse, error)
func PoolStatusViewHandler ¶
func PublicPoolInformationHandler ¶
Retrieve Pool Information
func PushStateMessageHandler ¶
PushStateMessageHandler updates state with signed update and pushes state to a set of random peers. They then propigate it to their peers until the network has a consistent state
func ResponseHandler ¶
func ResponseHandler(w http.ResponseWriter, r *http.Request, m string, success bool, err *string, res interface{}, transaction *types.Transaction)
ResponseHandler - Default Response Handler
func SetStateDebugHandler ¶
func StatusHandler ¶
func StatusHandler(w http.ResponseWriter, r *http.Request)
StatusHandler Main Status API route handler
func StatusTxHandler ¶
func StatusTxHandler(w http.ResponseWriter, r *http.Request)
StatusTxHandler - Checks Status of txHash
func VerifySignedMessageHandler ¶
func VerifySignedMessageHandler(w http.ResponseWriter, r *http.Request)
VerifySignedMessageHandler verifies the incoming message with takes the form of: {"message": "b64string", "hash": "b64string", "signature": "b64string", "address": ""}
Types ¶
type PoolContainsWallet ¶
type PoolContainsWallet struct {
ContainsWallet bool
}