maps

package
v0.0.0-...-34cb6d9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 28 Imported by: 6

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DecorateMap

func DecorateMap(ctx context.Context, avatarReader, mapReader io.Reader) (res io.ReadCloser, length int64, err error)

func GetCustomMapURL

func GetCustomMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, lat, lon float64,
	width, height int) (string, 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, g *globals.Context, url string) (res io.ReadCloser, length int64, err error)

func ServiceInit

func ServiceInit(g *globals.Context, httpSrv *manager.Srv)

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) GetEndTime

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)

type Srv

type Srv struct {
	globals.Contextified
	// contains filtered or unexported fields
}

func NewSrv

func NewSrv(g *globals.Context, httpSrv *manager.Srv) *Srv

Jump to

Keyboard shortcuts

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