Documentation ¶
Index ¶
- Constants
- func CombineMaps(ctx context.Context, locReader, liveReader io.Reader) (res io.ReadCloser, length int64, err error)
- func GetExternalMapURL(ctx context.Context, lat, lon float64) string
- func GetLiveMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, ...) (string, error)
- func GetMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, lat, lon float64) (string, error)
- func MapReaderFromURL(ctx context.Context, url string) (res io.ReadCloser, length int64, err error)
- type LiveLocationTracker
- func (l *LiveLocationTracker) ActivelyTracking(ctx context.Context) bool
- func (l *LiveLocationTracker) GetCoordinates(ctx context.Context, key types.LiveLocationKey) (res []chat1.Coordinate)
- func (l *LiveLocationTracker) GetCurrentPosition(ctx context.Context, convID chat1.ConversationID, msgID chat1.MessageID)
- func (l *LiveLocationTracker) LocationUpdate(ctx context.Context, coord chat1.Coordinate)
- func (l *LiveLocationTracker) SetClock(clock clockwork.Clock)
- func (l *LiveLocationTracker) Start(ctx context.Context, uid gregor1.UID)
- func (l *LiveLocationTracker) StartTracking(ctx context.Context, convID chat1.ConversationID, msgID chat1.MessageID, ...)
- func (l *LiveLocationTracker) Stop(ctx context.Context) chan struct{}
- func (l *LiveLocationTracker) StopAllTracking(ctx context.Context)
Constants ¶
View Source
const MapsProxy = "maps-proxy.core.keybaseapi.com"
Variables ¶
This section is empty.
Functions ¶
func CombineMaps ¶
func GetLiveMapURL ¶
func GetLiveMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, coords []chat1.Coordinate) (string, error)
func MapReaderFromURL ¶
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)
Click to show internal directories.
Click to hide internal directories.