Documentation ¶
Index ¶
- type API
- func (api *API) Cors() router.Handler
- func (api *API) HandleGetIdentities(c *router.Context)
- func (api *API) HandleGetIdentity(c *router.Context)
- func (api *API) HandleGetLocal(c *router.Context)
- func (api *API) HandleGetLookup(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) HandlePostIdentities(c *router.Context)
- func (api *API) HandlePostObject(c *router.Context)
- func (api *API) HandlePostObjects(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( cfg *config.Config, k crypto.PrivateKey, n net.Network, d discovery.Discoverer, x exchange.Exchange, linf *peer.LocalPeer, sst *sqlobjectstore.Store, or orchestrator.Orchestrator, version string, commit string, buildDate string, token string, ) *API
New HTTP API
func (*API) HandleGetIdentities ¶
func (*API) HandleGetIdentity ¶
func (*API) HandleGetLocal ¶
func (*API) HandleGetLookup ¶
func (*API) HandleGetObject ¶
func (*API) HandleGetObjects ¶
func (*API) HandleGetPeer ¶
func (*API) HandleGetPeers ¶
func (*API) HandleGetStreams ¶
func (*API) HandlePostIdentities ¶
func (*API) HandlePostObject ¶
func (*API) HandlePostObjects ¶
func (*API) HandleVersion ¶
Click to show internal directories.
Click to hide internal directories.