wfb

package
v0.0.0-...-2b7f6e1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentLocation

func AgentLocation(gid model.GoogleID)

AgentLocation alerts all appropriate teams about an agent's moving Do not send to topic since this hits the fanout-quota quickly We do the fanout manually, sending directly to tokens has a much higher quota

func AgentLogin

func AgentLogin(teams []model.TeamID, gid model.GoogleID) error

AgentLogin alerts a team of an agent on that team logging in

func AssignLink(gid model.GoogleID, linkID model.TaskID, opID model.OperationID, updateID string) error

AssignLink lets an agent know they have a new assignment on a given operation

func AssignMarker

func AssignMarker(gid model.GoogleID, markerID model.TaskID, opID model.OperationID, updateID string) error

AssignMarker lets an gent know they have a new assignment on a given operation

func AssignTask

func AssignTask(gid model.GoogleID, taskID model.TaskID, opID model.OperationID, updateID string) error

AssignTask lets an gent know they have a new assignment on a given operation

func LinkStatus

func LinkStatus(linkID model.TaskID, opID model.OperationID, teams []model.TeamID, status string, updateID string) error

LinkStatus reports a link update to a team/topic

func MapChange

func MapChange(teams []model.TeamID, opID model.OperationID, updateID string) error

MapChange alerts teams of the need to need to refresh map data

func MarkerStatus

func MarkerStatus(markerID model.TaskID, opID model.OperationID, teams []model.TeamID, status string, updateID string) error

MarkerStatus reports a marker update to a team/topic

func ResetDefaultRateLimits

func ResetDefaultRateLimits()

func Resubscribe

func Resubscribe()

Resubscribe refreshes all the topic subscriptions for every team

func Start

func Start(ctx context.Context)

Start is the main startup function for the Firebase subsystem

func TaskStatus

func TaskStatus(taskID model.TaskID, opID model.OperationID, teams []model.TeamID, status string, updateID string) error

TaskStatus reports a task update to a team/topic

Types

This section is empty.

Jump to

Keyboard shortcuts

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