handlers

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAssets added in v0.0.32

func DeleteAssets(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc

DeleteAssets delete multiple assets from the graph of the data source

func DeleteRelations added in v0.0.32

func DeleteRelations(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc

DeleteRelations remove multiple relations from 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 PostQuery added in v0.0.31

func PostQuery(database knowledge.GraphDB, queryHistorizer history.Historizer) http.HandlerFunc

PostQuery post endpoint to query the graph

func PutAssets added in v0.0.32

func PutAssets(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc

PutAssets upsert several assets into the graph of the data source

func PutRelations added in v0.0.32

func PutRelations(registry sources.Registry, graphUpdater *knowledge.GraphUpdater, sem *semaphore.Weighted) http.HandlerFunc

PutRelations upsert multiple relations 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 ReplyWithBadRequest added in v0.0.40

func ReplyWithBadRequest(w http.ResponseWriter, err error)

ReplyWithBadRequest send response with bad request.

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