This adds an action to the API that allows pulling out an activation token that can be given to a worker in its config (directly or via env or file). The worker can pass this along with its normal request in place of its normal nonce and the server will automatically accept it. Co-authored-by: Irena Rindos <irenarindos@users.noreply.github.com>
12 lines
307 B
Go
12 lines
307 B
Go
package store
|
|
|
|
// TableName overrides the table name used by Controller to `server_controller`
|
|
func (*Controller) TableName() string {
|
|
return "server_controller"
|
|
}
|
|
|
|
// TableName overrides the table name used by WorkerTag to `worker_tag`
|
|
func (*WorkerTag) TableName() string {
|
|
return "server_worker_tag"
|
|
}
|