package
0.0.0-20220518083256-2e7d28ad5f2e
Repository: https://github.com/diwise/ngsi-ld-golang.git
Documentation: pkg.go.dev
# Functions
NewContextRegistry initializes and returns a new default context registry withoutany registered context sources.
NewCreateEntityHandler handles incoming POST requests for NGSI entities.
No description provided by the author
NewCsourceRegistration creates and returns a concrete implementation of the CsourceRegistration interface.
NewCsourceRegistrationFromJSON unpacks a byte buffer into a CsourceRegistration and validates its contents.
NewQueryEntitiesHandler handles GET requests for NGSI entities.
NewRegisterContextSourceHandler handles POST requests for csource registrations.
NewRemoteContextSource creates an instance of a ContextSource by wrapping a CsourceRegistration.
NewRetrieveEntityHandler retrieves entity by ID.
NewUpdateEntityAttributesHandler handles PATCH requests for NGSI entitity attributes.
NewUpdateEntityAttributesHandlerWithCallback handles PATCH requests for NGSI entitityattributes and calls a callback on successful completion.
# Constants
GeoSpatialRelationNearPoint describes a relation as a max or min distance from a Point.
GeoSpatialRelationWithinRect describes a relation as an overlapping polygon.
QueryDefaultPaginationLimit defines the limit that should be used for GET operationswhen the client does not supply a value.
TemporalRelationAfterTime describes a relation where observedAt >= timeAt.
TemporalRelationBeforeTime describes a relation where observedAt < timeAt.
TemporalRelationBetweenTimes describes a relation where timeAt <= observedAt < endTimeAt.
TemporalRelationTimeProperty contains the temporal property to which the query can be applied.
# Structs
ContextSourceMock is a mock implementation of ContextSource.
GeoQuery contains information about a geo-query that may be used for subscriptionsor when querying entities.
No description provided by the author
# Interfaces
ContextRegistry is where Context Sources register the information that they can provide.
ContextSource provides query and subscription support for a set of entities.
CsourceRegistration is a wrapper for information about a registered context source.
Entity is an informational representative of something that is supposed to exist in the real world, physically or conceptually.
Query is an interface to be used when passing queries to context registries and sources.
Request is an interface to be used when passing header and body information for NGSI-LD API requests.
# Type aliases
No description provided by the author
QueryEntitiesCallback is used when queried context sources should pass back anyentities matching the query that has been passed in.
No description provided by the author