Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEndpoints ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a handler that returns peers of the account
func NewHandler ¶
func NewHandler(accountManager server.AccountManager, authCfg configs.AuthCfg) *Handler
NewHandler creates a new peers Handler
func (*Handler) GetAccessiblePeers ¶
func (h *Handler) GetAccessiblePeers(w http.ResponseWriter, r *http.Request)
GetAccessiblePeers returns a list of all peers that the specified peer can connect to within the network.
func (*Handler) GetAllPeers ¶
func (h *Handler) GetAllPeers(w http.ResponseWriter, r *http.Request)
GetAllPeers returns a list of all peers associated with a provided account
func (*Handler) HandlePeer ¶
func (h *Handler) HandlePeer(w http.ResponseWriter, r *http.Request)
HandlePeer handles all peer requests for GET, PUT and DELETE operations
Click to show internal directories.
Click to hide internal directories.