services

package
v0.0.0-...-c225d3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2018 License: GPL-2.0 Imports: 10 Imported by: 2

Documentation

Overview

* Service responsible for taking one or more REST requests and running them concurrently, then streaming their responses back on a common channel.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationService

type AggregationService interface {
	FanOutRequests(context.Context, models.AggRequest) *models.AggResponse
}

* aggregation of call from the backend.

type AggregationServiceInstance

type AggregationServiceInstance struct {
	// contains filtered or unexported fields
}

* aggregation of call from the backend.

func InitializeAggregationService

func InitializeAggregationService(aggThreadCount int) (*AggregationServiceInstance, error)

* Spin up the Aggregation service

func (*AggregationServiceInstance) FanOutRequests

func (service *AggregationServiceInstance) FanOutRequests(cxt context.Context, aggReq models.AggRequest) *models.AggResponse

* Given a request fan it out.

func (AggregationServiceInstance) RequestConcurrent

func (service AggregationServiceInstance) RequestConcurrent(requestChan chan models.RequestInstance, responseChan chan models.RequestsPipelineInstance)

func (AggregationServiceInstance) RequestTimeLatch

func (service AggregationServiceInstance) RequestTimeLatch(timeout int, timeChan chan bool)

type VariableResponseTestService

type VariableResponseTestService interface {
	VariableResponse(context.Context, models.TriggerRequest) *models.TriggerResponse
}

type VariableResponseTestServiceInstance

type VariableResponseTestServiceInstance struct {
	ResponseTimeDelayMs int
}

func InitializeVariableResponseTestService

func InitializeVariableResponseTestService(Delay int) (*VariableResponseTestServiceInstance, error)

func (*VariableResponseTestServiceInstance) VariableResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL