oficina / sheets Public

Clone
git clone https://amadan.net/oficina/sheets

Plain git — no account needed to clone.

Download

Download this file

1package sheets
2
3import (
4 "net/http"
5
6 "amadan.net/oficina/home/teammode"
7)
8
9// teamProbePath is the readiness probe Alta polls at provisioning step 11
10// before it activates this instance in Home's directory: teammode's
11// Probe, unauthenticated, no-store, {team_mode, consumer, roster} and no
12// account data, {"team_mode":false} with team mode off.
13const teamProbePath = teammode.ProbePath
14
15func (a *App) handleTeamProbe(w http.ResponseWriter, r *http.Request) {
16 var rt *teammode.Runtime
17 if a.team != nil {
18 rt = a.team.Runtime
19 }
20 teammode.Probe(rt).ServeHTTP(w, r)
21}
22