Documentation
¶
Index ¶
- func DeleteAsset(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, ...) http.HandlerFunc
- func DeleteRelation(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, ...) http.HandlerFunc
- func IsTokenValid(registry sources.Registry, r *http.Request) (bool, string, error)
- func PutAsset(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, ...) http.HandlerFunc
- func PutRelation(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, ...) http.HandlerFunc
- func PutSchema(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, ...) http.HandlerFunc
- func ReplyWithInternalError(w http.ResponseWriter, err error)
- func ReplyWithSourceGraph(w http.ResponseWriter, sg *schema.SchemaGraph)
- func ReplyWithTooManyRequests(w http.ResponseWriter)
- func ReplyWithUnauthorized(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteAsset ¶
func DeleteAsset(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc
DeleteAsset delete an asset from the graph of the data source
func DeleteRelation ¶
func DeleteRelation(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc
DeleteRelation upsert a relation into the graph of the data source
func IsTokenValid ¶
IsTokenValid is the token valid
func PutAsset ¶
func PutAsset(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc
PutAsset upsert an asset into the graph of the data source
func PutRelation ¶
func PutRelation(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc
PutRelation upsert a relation into the graph of the data source
func PutSchema ¶
func PutSchema(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc
PutSchema upsert an asset into the graph of the data source
func ReplyWithInternalError ¶
func ReplyWithInternalError(w http.ResponseWriter, err error)
ReplyWithInternalError send response with internal error.
func ReplyWithSourceGraph ¶
func ReplyWithSourceGraph(w http.ResponseWriter, sg *schema.SchemaGraph)
ReplyWithSourceGraph sends a reply containing the schema graph
func ReplyWithTooManyRequests ¶
func ReplyWithTooManyRequests(w http.ResponseWriter)
ReplyWithTooManyRequests send unauthorized response.
func ReplyWithUnauthorized ¶
func ReplyWithUnauthorized(w http.ResponseWriter)
ReplyWithUnauthorized send unauthorized response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.