コード例 #1
0
ファイル: api.go プロジェクト: sellweek/TOGY-server
//Activated is called by clients to announce that
//they have activated the broadcast.
func Activated(c util.Context) (err error) {
	p, err := getPresentation(c)
	if err != nil {
		return
	}

	action.Log(p, action.Activated, c.R.FormValue("client"), c)
	return
}
コード例 #2
0
ファイル: api.go プロジェクト: sellweek/TOGY-server
//GotConfig is called by clients to announce that
//they have downloaded the broadcast.
func GotConfig(c util.Context) (err error) {
	conf, err := config.Get(c)
	if err != nil {
		return
	}

	action.Log(conf, action.Activated, c.R.FormValue("client"), c)
	return
}