vars

package
v2.3.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Fake fakedata.DataFaker
}

Fake parses the data looking for fake data tags or request data tags

func (Fake) Fill

func (fv Fake) Fill(holders []string) map[string]string

type Filler

type Filler interface {
	Fill(holders []string) map[string]string
}

type FillerFactory

type FillerFactory interface {
	CreateRequestFiller(req *definition.Request, mock *definition.Mock) Filler
	CreateFakeFiller() Filler
	CreateStreamFiller() Filler
}

type MockFillerFactory

type MockFillerFactory struct {
	FakeAdapter fakedata.DataFaker
}

func (MockFillerFactory) CreateFakeFiller

func (mff MockFillerFactory) CreateFakeFiller() Filler

func (MockFillerFactory) CreateRequestFiller

func (mff MockFillerFactory) CreateRequestFiller(req *definition.Request, mock *definition.Mock) Filler

func (MockFillerFactory) CreateStreamFiller

func (mff MockFillerFactory) CreateStreamFiller() Filler

type Processor

type Processor struct {
	FillerFactory FillerFactory
}

func (Processor) Eval

func (fp Processor) Eval(req *definition.Request, m *definition.Mock)

type Request

type Request struct {
	Mock    *definition.Mock
	Request *definition.Request
}

func (Request) Fill

func (rp Request) Fill(holders []string) map[string]string

type Stream

type Stream struct {
}

func (Stream) Fill

func (st Stream) Fill(holders []string) map[string]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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