Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocationService ¶
type LocationService struct {
// contains filtered or unexported fields
}
func NewLocationService ¶
func NewLocationService(token string) *LocationService
func (*LocationService) Read ¶
func (t *LocationService) Read(request *ReadRequest) (*ReadResponse, error)
Read an entity by its ID
func (*LocationService) Save ¶
func (t *LocationService) Save(request *SaveRequest) (*SaveResponse, error)
Save an entity's current position
func (*LocationService) Search ¶
func (t *LocationService) Search(request *SearchRequest) (*SearchResponse, error)
Search for entities in a given radius
type ReadRequest ¶
type ReadRequest struct { // the entity id Id string `json:"id"` }
type ReadResponse ¶
type ReadResponse struct {
Entity *Entity `json:"entity"`
}
type SaveRequest ¶
type SaveRequest struct {
Entity *Entity `json:"entity"`
}
type SaveResponse ¶
type SaveResponse struct { }
type SearchRequest ¶
type SearchResponse ¶
type SearchResponse struct {
Entities []Entity `json:"entities"`
}
Click to show internal directories.
Click to hide internal directories.