Documentation ¶
Index ¶
- Constants
- func DecorateMap(ctx context.Context, avatarReader, mapReader io.Reader) (res io.ReadCloser, length int64, err error)
- func GetCustomMapURL(ctx context.Context, apiKeySource types.ExternalAPIKeySource, lat, lon float64, ...) (string, 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, g *globals.Context, url string) (res io.ReadCloser, length int64, err error)
- func ServiceInit(g *globals.Context, httpSrv *manager.Srv)
- 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) GetEndTime(ctx context.Context, key types.LiveLocationKey) *time.Time
- 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)
- type Srv
Constants ¶
View Source
const MapsProxy = "maps-proxy.core.keybaseapi.com"
Variables ¶
This section is empty.
Functions ¶
func DecorateMap ¶
func GetCustomMapURL ¶
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) GetEndTime ¶
func (l *LiveLocationTracker) GetEndTime(ctx context.Context, key types.LiveLocationKey) *time.Time
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.