handlers

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func IsTokenValid(registry sources.Registry, r *http.Request) (bool, string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL