mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
21 lines
373 B
Go
21 lines
373 B
Go
package requests
|
|
|
|
import "github.com/owncast/owncast/services/apfederation/workerpool"
|
|
|
|
type Requests struct {
|
|
outboundWorkerPool *workerpool.WorkerPool
|
|
}
|
|
|
|
func New() *Requests {
|
|
return &Requests{}
|
|
}
|
|
|
|
var temporaryGlobalInstance *Requests
|
|
|
|
func Get() *Requests {
|
|
if temporaryGlobalInstance == nil {
|
|
temporaryGlobalInstance = New()
|
|
}
|
|
return temporaryGlobalInstance
|
|
}
|