Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVersionHandler ¶
NewVersionHandler is the bearer-authed inbound endpoint the device farm POSTs to when it detects a new game version.
func Run ¶
func Run(p AppProfile) error
Run stands up the sync server from a profile: optional DB, bot, event routes. It blocks until SIGINT/SIGTERM, then cleans up.
Types ¶
type AppProfile ¶
type AppProfile struct {
Name string
Discord DiscordConfig
Build contract.VerifyInfo
DeployAgent AgentRef
DB *DBConfig
Commands []bot.Command
Events EventHandlers
Mux *http.ServeMux
RepoURL string
}
AppProfile is the single struct a Go consumer fills to stand up a sync server.
type DiscordConfig ¶
type DiscordConfig struct {
Token string
AppID string
GuildID string
OAuthClientID string
OAuthClientSecret string
OAuthRedirectURL string
}
DiscordConfig carries gateway + OAuth identifiers.
type EventHandlers ¶
type EventHandlers struct {
NewVersion func(contract.NewVersionEvent) error
EventSecret string
}
EventHandlers carries optional inbound HTTP event hooks.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package contract holds the stable JSON types shared across the synckit HTTP surface, between the bot, the deploy-agent, and any non-Go consumer such as the .NET app or the device farm.
|
Package contract holds the stable JSON types shared across the synckit HTTP surface, between the bot, the deploy-agent, and any non-Go consumer such as the .NET app or the device farm. |
|
Package db provides generic Postgres plumbing, connection plus migration running, with no app-specific schema.
|
Package db provides generic Postgres plumbing, connection plus migration running, with no app-specific schema. |
Click to show internal directories.
Click to hide internal directories.