package
23.1.1+incompatible
Repository: https://github.com/dgraph-io/dgraph.git
Documentation: pkg.go.dev
# Functions
CompareBetween compares if the dst value lie between two values val1 and val2(both inclusive).
CompareVals compares two values using the given comparison type.
Contains checks whether loop A contains loop B.
Convert converts the value to given scalar type.
EarthAngle converts a to distance on earth in meters to an angle.
EarthArea converts an area on the unit sphere to an area on earth in sq.
EarthDistance converts an angle to distance on earth in meters.
Encrypt encrypts the given plain-text password.
Equal returns true if a is equal to b.
GetGeoTokens returns the corresponding index keys based on the type of function.
GoodTimeZone returns true if timezone (provided in offset format in seconds) is valid according to RFC3339.
IndexGeoTokens returns the tokens to be used in a geospatial index for the given geometry.
Intersects returns true if the two loops intersect.
IsGeoFunc returns if a function is of geo type.
IsSortable returns true, if tid is sortable.
Less returns true if a is strictly less than b.
MatchGeo matches values and GeoQueryData and ensures that the value actually matches the query criteria.
ObjectValue converts into api.Value.
ParseTime parses the time from string trying various datetime formats.
Sort sorts the given array in-place.
SortWithFacet sorts the given array in-place and considers the given facets to calculate the proper ordering.
TypeForName returns the type corresponding to the given name.
TypeForValue tries to determine the most likely type based on a value.
ValueForType returns the zero value for a type id.
VerifyPassword checks that the plain-text password matches the encrypted password.
# Constants
BinaryID represents the binary data type.
BoolID represents the boolean type.
DateTimeID represents the datetime type.
DefaultID represents the default type.
EarthRadiusMeters is the radius of the earth in meters (in a spherical earth model).
FloatID represents the floating-point number type.
GeoID represents the geo-location data type.
IntID represents the integer type.
Approx 120m x 180m.
MaxCells is the maximum number of cells to use when indexing regions.
Approx 250km x 380km.
PasswordID represents the password type.
QueryTypeContains finds all polygons that contain the given point.
QueryTypeIntersects finds all objects that intersect the given geometry.
QueryTypeNear finds all points that are within the given distance from the given point.
QueryTypeWithin finds all points that are within the given geometry.
StringID represents the string type.
UidID represents the uid type.
UndefinedID represents the undefined type.
# Structs
GeoQueryData is pb.data used by the geo query filter to additionally filter the geometries.
Val is a value with type information.