maps

package
v4.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MapsProxy = "maps-proxy.core.keybaseapi.com"

Variables

This section is empty.

Functions

func CombineMaps

func CombineMaps(ctx context.Context, locReader, liveReader io.Reader) (res io.ReadCloser, length int64, err error)

func GetExternalMapURL

func GetExternalMapURL(ctx context.Context, lat, lon float64) string

func GetLiveMapURL

func GetLiveMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, coords []chat1.Coordinate) (string, error)

func GetMapURL

func GetMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, lat, lon float64) (string, error)

func MapReaderFromURL

func MapReaderFromURL(ctx context.Context, url string) (res io.ReadCloser, length int64, err error)

Types

type LiveLocationTracker

type LiveLocationTracker struct {
	globals.Contextified
	utils.DebugLabeler
	sync.Mutex

	// testing only
	TestingCoordsAddedCh chan struct{}
	// contains filtered or unexported fields
}

func NewLiveLocationTracker

func NewLiveLocationTracker(g *globals.Context) *LiveLocationTracker

func (*LiveLocationTracker) ActivelyTracking

func (l *LiveLocationTracker) ActivelyTracking(ctx context.Context) bool

func (*LiveLocationTracker) GetCoordinates

func (l *LiveLocationTracker) GetCoordinates(ctx context.Context, key types.LiveLocationKey) (res []chat1.Coordinate)

func (*LiveLocationTracker) GetCurrentPosition

func (l *LiveLocationTracker) GetCurrentPosition(ctx context.Context, convID chat1.ConversationID,
	msgID chat1.MessageID)

func (*LiveLocationTracker) LocationUpdate

func (l *LiveLocationTracker) LocationUpdate(ctx context.Context, coord chat1.Coordinate)

func (*LiveLocationTracker) SetClock

func (l *LiveLocationTracker) SetClock(clock clockwork.Clock)

func (*LiveLocationTracker) Start

func (l *LiveLocationTracker) Start(ctx context.Context, uid gregor1.UID)

func (*LiveLocationTracker) StartTracking

func (l *LiveLocationTracker) StartTracking(ctx context.Context, convID chat1.ConversationID,
	msgID chat1.MessageID, endTime time.Time)

func (*LiveLocationTracker) Stop

func (l *LiveLocationTracker) Stop(ctx context.Context) chan struct{}

func (*LiveLocationTracker) StopAllTracking

func (l *LiveLocationTracker) StopAllTracking(ctx context.Context)

Jump to

Keyboard shortcuts

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