rethinkdb-go.v6gopkg.in/rethinkdb/rethinkdb-go.v6/types Index | Files

package types

import "gopkg.in/rethinkdb/rethinkdb-go.v6/types"

Index

Types

type Geometry

type Geometry struct {
	Type  string
	Point Point
	Line  Line
	Lines Lines
}

func (Geometry) MarshalRQL

func (g Geometry) MarshalRQL() (interface{}, error)

func (*Geometry) UnmarshalRQL

func (g *Geometry) UnmarshalRQL(data interface{}) error

type Line

type Line []Point

func UnmarshalLineString

func UnmarshalLineString(v interface{}) (Line, error)

func (Line) Coords

func (l Line) Coords() interface{}

func (Line) MarshalRQL

func (l Line) MarshalRQL() (interface{}, error)

func (*Line) UnmarshalRQL

func (l *Line) UnmarshalRQL(data interface{}) error

type Lines

type Lines []Line

func UnmarshalPolygon

func UnmarshalPolygon(v interface{}) (Lines, error)

func (Lines) Coords

func (l Lines) Coords() interface{}

func (Lines) MarshalRQL

func (l Lines) MarshalRQL() (interface{}, error)

func (*Lines) UnmarshalRQL

func (l *Lines) UnmarshalRQL(data interface{}) error

type Point

type Point struct {
	Lon float64
	Lat float64
}

func UnmarshalPoint

func UnmarshalPoint(v interface{}) (Point, error)

func (Point) Coords

func (p Point) Coords() interface{}

func (Point) MarshalRQL

func (p Point) MarshalRQL() (interface{}, error)

func (*Point) UnmarshalRQL

func (p *Point) UnmarshalRQL(data interface{}) error

Source Files

geometry.go

Version
v6.2.2 (latest)
Published
Jun 2, 2022
Platform
linux/amd64
Imports
1 packages
Last checked
1 week ago

Tools for package owners.