location

package
v0.0.0-...-01a1068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync() (added, updated int, err error)

Types

type Location

type Location struct {
	supercharger.Supercharger

	ID        int64     `db:"id" json:"id"`
	UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
	CreatedAt time.Time `db:"created_at" json:"created_at"`
}

func GetLocation

func GetLocation(locationID int64) (*Location, error)

func Locations

func Locations(scope database.GraphQLScope) ([]*Location, error)

func Near

func Near(scope database.GraphQLScope) ([]*Location, error)

func (Location) Cursor

func (l Location) Cursor() relay.ConnectionCursor

func (Location) ToGlobalID

func (l Location) ToGlobalID() string

func (Location) Update

func (l Location) Update(sc supercharger.Supercharger) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL