Versions in this module Expand all Collapse all v0 v0.7.1 Dec 26, 2016 Changes in this version + const BinaryID + const EarthRadiusMeters + const MaxCellLevel + const MaxCells + const MinCellLevel + const UidID + var ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + var Posting_ValType_name = map[int32]string + var Posting_ValType_value = map[string]int32 + func Convert(from Val, to *Val) error + func EarthAngle(dist float64) s1.Angle + func FilterGeoUids(uids *task.List, values []*task.Value, q *GeoQueryData) *task.List + func IndexGeoTokens(g geom.T) ([]string, error) + func IndexTokens(sv Val) ([]string, error) + func Intersects(l1 *s2.Loop, l2 *s2.Loop) bool + func IsGeoFunc(str string) bool + func Less(a, b Val) bool + func Marshal(from Val, to *Val) error + func ObjectValue(id TypeID, value interface{}) (*graph.Value, error) + func Sort(sID TypeID, v []Val, ul *task.List, desc bool) error + func WithinCapPolygon(g1 *s2.Loop, g2 *s2.Cap) bool + func WithinPolygon(g1 *s2.Loop, g2 *s2.Loop) bool + type Area float64 + func EarthArea(a float64) Area + func (a Area) String() string + type GeoQueryData struct + func GetGeoTokens(funcArgs []string) ([]string, *GeoQueryData, error) + func (q GeoQueryData) MatchesFilter(g geom.T) bool + type Length float64 + func EarthDistance(angle s1.Angle) Length + func (l Length) String() string + type Posting struct + Commit uint64 + Label string + Op uint32 + Uid uint64 + ValType Posting_ValType + Value []byte + func (*Posting) Descriptor() ([]byte, []int) + func (*Posting) ProtoMessage() + func (m *Posting) Marshal() (data []byte, err error) + func (m *Posting) MarshalTo(data []byte) (int, error) + func (m *Posting) Reset() + func (m *Posting) Size() (n int) + func (m *Posting) String() string + func (m *Posting) Unmarshal(data []byte) error + type PostingList struct + Checksum []byte + Commit uint64 + Postings []*Posting + func (*PostingList) Descriptor() ([]byte, []int) + func (*PostingList) ProtoMessage() + func (m *PostingList) GetPostings() []*Posting + func (m *PostingList) Marshal() (data []byte, err error) + func (m *PostingList) MarshalTo(data []byte) (int, error) + func (m *PostingList) Reset() + func (m *PostingList) Size() (n int) + func (m *PostingList) String() string + func (m *PostingList) Unmarshal(data []byte) error + type Posting_ValType int32 + const Posting_BINARY + const Posting_BOOL + const Posting_DATE + const Posting_DATETIME + const Posting_FLOAT + const Posting_GEO + const Posting_INT32 + const Posting_STRING + const Posting_UID + func (Posting_ValType) EnumDescriptor() ([]byte, []int) + func (x Posting_ValType) String() string + type QueryType byte + const QueryTypeContains + const QueryTypeIntersects + const QueryTypeNear + const QueryTypeWithin type TypeID + func (t TypeID) IsScalar() bool + func (t TypeID) Name() string + type Val struct + Tid TypeID + Value interface{} + func (v Val) MarshalJSON() ([]byte, error) v0.7.0 Dec 8, 2016 Changes in this version + func DateIndex(attr string, val *Date) ([]string, error) + func DefaultIndexKeys(attr string, val *String) []string + func FloatIndex(attr string, val *Float) ([]string, error) + func IntIndex(attr string, val *Int32) ([]string, error) + func TimeIndex(attr string, val *Time) ([]string, error) + type Bool bool + func (v *Bool) UnmarshalBinary(data []byte) error + func (v *Bool) UnmarshalText(text []byte) error + func (v Bool) MarshalBinary() ([]byte, error) + func (v Bool) MarshalJSON() ([]byte, error) + func (v Bool) MarshalText() ([]byte, error) + func (v Bool) String() string + func (v Bool) Type() Scalar + type Bytes []byte + func (v *Bytes) UnmarshalBinary(data []byte) error + func (v *Bytes) UnmarshalText(text []byte) error + func (v Bytes) MarshalBinary() ([]byte, error) + func (v Bytes) MarshalJSON() ([]byte, error) + func (v Bytes) MarshalText() ([]byte, error) + func (v Bytes) String() string + func (v Bytes) Type() Scalar + type Date struct + func (v *Date) UnmarshalBinary(data []byte) error + func (v *Date) UnmarshalText(text []byte) error + func (v Date) MarshalBinary() ([]byte, error) + func (v Date) MarshalJSON() ([]byte, error) + func (v Date) MarshalText() ([]byte, error) + func (v Date) String() string + func (v Date) Type() Scalar + type Float float64 + func (v *Float) UnmarshalBinary(data []byte) error + func (v *Float) UnmarshalText(text []byte) error + func (v Float) MarshalBinary() ([]byte, error) + func (v Float) MarshalJSON() ([]byte, error) + func (v Float) MarshalText() ([]byte, error) + func (v Float) String() string + func (v Float) Type() Scalar + type Geo struct + func (v *Geo) UnmarshalBinary(data []byte) error + func (v *Geo) UnmarshalText(text []byte) error + func (v Geo) MarshalBinary() ([]byte, error) + func (v Geo) MarshalJSON() ([]byte, error) + func (v Geo) MarshalText() ([]byte, error) + func (v Geo) String() string + func (v Geo) Type() Scalar + type Int32 int32 + func (v *Int32) UnmarshalBinary(data []byte) error + func (v *Int32) UnmarshalText(text []byte) error + func (v Int32) MarshalBinary() ([]byte, error) + func (v Int32) MarshalJSON() ([]byte, error) + func (v Int32) MarshalText() ([]byte, error) + func (v Int32) String() string + func (v Int32) Type() Scalar + type Object struct + Fields map[string]string + Name string + func (o Object) IsScalar() bool + type Scalar struct + Name string + func (s Scalar) ID() TypeID + func (s Scalar) IsScalar() bool + func (s Scalar) Sort(v []Value, ul *task.List) error + func (s Scalar) String() string + func (to Scalar) Convert(value Value) (Value, error) + type String string + func (v *String) UnmarshalBinary(data []byte) error + func (v *String) UnmarshalText(text []byte) error + func (v String) MarshalBinary() ([]byte, error) + func (v String) MarshalJSON() ([]byte, error) + func (v String) MarshalText() ([]byte, error) + func (v String) String() string + func (v String) Type() Scalar + type Time struct + func (v *Time) UnmarshalText(text []byte) error + func (v Time) Type() Scalar + type Type interface + IsScalar func() bool + func TypeForName(name string) (Type, bool) + type TypeID byte + const BoolID + const BytesID + const DateID + const DateTimeID + const FloatID + const GeoID + const Int32ID + const StringID + type Value interface + Type func() Scalar + func ValueForType(id TypeID) Value