maps

package
v4.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 26 Imported by: 0

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