Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fakeserver ¶ added in v1.16.0
type Fakeserver struct {
// contains filtered or unexported fields
}
Fakeserver represents a HTTP server with objects to hold and return
func NewFakeServer ¶
func NewFakeServer(iPort int, iObjects map[string]map[string]interface{}, iStart bool, iDebug bool, dir string) *Fakeserver
NewFakeServer creates a HTTP server used for tests and debugging
func (*Fakeserver) GetServer ¶ added in v1.16.0
func (svr *Fakeserver) GetServer() *http.Server
GetServer returns the server object itself
func (*Fakeserver) Running ¶ added in v1.16.0
func (svr *Fakeserver) Running() bool
Running returns whether the server is running
func (*Fakeserver) Shutdown ¶ added in v1.16.0
func (svr *Fakeserver) Shutdown()
Shutdown closes the server
func (*Fakeserver) StartInBackground ¶ added in v1.16.0
func (svr *Fakeserver) StartInBackground()
StartInBackground starts the HTTP server in the background
Click to show internal directories.
Click to hide internal directories.