Documentation ¶
Index ¶
- type MonoModelDesc
- type Option
- type Override
- type Overrides
- type Server
- func (srv *Server) Handle(w http.ResponseWriter, r *http.Request)
- func (srv *Server) InitExecution(ov []Override)
- func (srv *Server) InitVibration(vibrate *Vibration)
- func (srv *Server) Records() []swagger.JSONValue
- func (srv *Server) Sequences() []MonoModelDesc
- func (srv *Server) Start() error
- func (srv *Server) Stop(ctx context.Context) error
- func (srv *Server) VibrationRecord() *swagger.JSONValue
- type Vibration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonoModelDesc ¶
MonoModelDesc specifies a monomorphiszed API model. It is mainly used to determine the API invocation sequence of one execution.
type Override ¶
type Override struct { PathPattern regexp.Regexp RequestModify *swagger.RequestDescriptor ResponseSelectorMerge string ResponseSelectorJSON string ResponseBody string ResponsePatchMerge string ResponsePatchJSON string ResponseHeader map[string]string ResponseStatusCode int SynthOption *swagger.SynthesizerOption ExpanderOption *swagger.ExpanderOption }
type Server ¶
type Server struct { Addr string Port int Idx azidx.Index Specdir string // contains filtered or unexported fields }
func New ¶
New creates a new (uninitialized) mockserver, which can be started, but needs to be initiated in order to work as expected.
func (*Server) InitExecution ¶
InitExecution initiates for each execution, for resetting the overrides and the rnd.
func (*Server) InitVibration ¶
func (*Server) Sequences ¶
func (srv *Server) Sequences() []MonoModelDesc
func (*Server) VibrationRecord ¶
Click to show internal directories.
Click to hide internal directories.