Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMakingRequest = errors.New("failed to make request") ErrNotOkResponse = errors.New("response not ok") )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(log *logrus.Entry, queue *RemoteQueue) *Controller
func (*Controller) RelayRequest ¶
func (c *Controller) RelayRequest(w http.ResponseWriter, r *http.Request)
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func NewOrchestrator ¶
func NewOrchestrator(log *logrus.Entry, queue *RemoteQueue, server *Server, selfProfiler StartStopper) *Orchestrator
func (*Orchestrator) Shutdown ¶
func (o *Orchestrator) Shutdown() error
func (*Orchestrator) Start ¶
func (o *Orchestrator) Start() error
type RemoteClient ¶
type RemoteClient struct {
// contains filtered or unexported fields
}
func NewRemoteClient ¶
func NewRemoteClient(log *logrus.Entry, config *RemoteClientCfg) *RemoteClient
type RemoteClientCfg ¶
type RemoteQueue ¶
type RemoteQueue struct {
// contains filtered or unexported fields
}
func NewRemoteQueue ¶
func NewRemoteQueue(log *logrus.Entry, config *RemoteQueueCfg, relayer Relayer) *RemoteQueue
func (*RemoteQueue) Flush ¶ added in v1.3.0
func (r *RemoteQueue) Flush()
func (*RemoteQueue) Send ¶
func (r *RemoteQueue) Send(req *http.Request) error
Send adds a request to the queue to be processed later
func (*RemoteQueue) Start ¶
func (r *RemoteQueue) Start() error
type RemoteQueueCfg ¶
type RemoteQueueCfg struct {
NumWorkers int
}
Click to show internal directories.
Click to hide internal directories.