Documentation ¶
Index ¶
- type API
- func (api *API) Cors() router.Handler
- func (api *API) HandleGetGraph(c *router.Context)
- func (api *API) HandleGetGraphs(c *router.Context)
- func (api *API) HandleGetIdentities(c *router.Context)
- func (api *API) HandleGetIdentity(c *router.Context)
- func (api *API) HandleGetLocal(c *router.Context)
- func (api *API) HandleGetObject(c *router.Context)
- func (api *API) HandleGetObjects(c *router.Context)
- func (api *API) HandleGetPeer(c *router.Context)
- func (api *API) HandleGetPeers(c *router.Context)
- func (api *API) HandleGetStreams(c *router.Context)
- func (api *API) HandlePostGraph(c *router.Context)
- func (api *API) HandlePostGraphs(c *router.Context)
- func (api *API) HandlePostIdentities(c *router.Context)
- func (api *API) HandlePostObject(c *router.Context)
- func (api *API) HandleVersion(c *router.Context)
- func (api *API) Serve(address string) error
- func (api *API) Stop(c *router.Context)
- func (api *API) TokenAuth() router.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API for HTTP
func New ¶
func New( k *crypto.PrivateKey, n net.Network, d discovery.Discoverer, x exchange.Exchange, linf *peer.LocalPeer, bls graph.Store, dag dag.Manager, version string, commit string, buildDate string, token string, ) *API
New HTTP API
func (*API) HandleGetGraph ¶
func (*API) HandleGetGraphs ¶
func (*API) HandleGetIdentities ¶ added in v0.3.2
func (*API) HandleGetIdentity ¶ added in v0.3.2
func (*API) HandleGetLocal ¶
func (*API) HandleGetObject ¶
func (*API) HandleGetObjects ¶
func (*API) HandleGetPeer ¶
func (*API) HandleGetPeers ¶
func (*API) HandleGetStreams ¶
func (*API) HandlePostGraph ¶
func (*API) HandlePostGraphs ¶
func (*API) HandlePostIdentities ¶ added in v0.3.2
func (*API) HandlePostObject ¶
func (*API) HandleVersion ¶
Click to show internal directories.
Click to hide internal directories.