scenarioType

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLTypeProvider

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

GraphQLTypeProvider

func NewGraphQLTypeProvider

func NewGraphQLTypeProvider(w http.ResponseWriter, req *http.Request) *GraphQLTypeProvider

NewGraphQLTypeProvider

func (*GraphQLTypeProvider) Retrieve

func (g *GraphQLTypeProvider) Retrieve(scenarioNumber int)

func (*GraphQLTypeProvider) Unmarshal

func (g *GraphQLTypeProvider) Unmarshal(rawScenarios []map[string]interface{}) error

type HTTPTypeProvider

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

HTTPTypeProvider

func NewHTTPTypeProvider

func NewHTTPTypeProvider(w http.ResponseWriter) *HTTPTypeProvider

NewHTTPTypeProvider

func (*HTTPTypeProvider) Retrieve

func (hp *HTTPTypeProvider) Retrieve(scenarioNumber int)

Retrieve

func (*HTTPTypeProvider) Unmarshal

func (hp *HTTPTypeProvider) Unmarshal(rawScenarios []map[string]interface{}) error

func (HTTPTypeProvider) Validate

func (hp HTTPTypeProvider) Validate() error

Validate

type KafkaProvider added in v0.1.2

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

func NewKafkaProvider added in v0.1.2

func NewKafkaProvider(w http.ResponseWriter, lgr *logrus.Entry) *KafkaProvider

func (*KafkaProvider) Retrieve added in v0.1.2

func (k *KafkaProvider) Retrieve(scenarioNumber int)

Retrieve is a main function to run a scenario

func (*KafkaProvider) Unmarshal added in v0.1.2

func (k *KafkaProvider) Unmarshal(rawScenarios []map[string]interface{}) error

func (KafkaProvider) Validate added in v0.1.2

func (k KafkaProvider) Validate() error

type TypeProvider

type TypeProvider interface {
	// Unmarshal
	Unmarshal([]map[string]interface{}) error
	Retrieve(scenarioNumber int)
	validation.Validatable
}

TypeProvider

func Factory

func Factory(
	scenarioType string,
	w http.ResponseWriter,
	req *http.Request,
	lgr *logrus.Entry,
) (TypeProvider, error)

Jump to

Keyboard shortcuts

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