Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestingCaddy ¶
NewTestingCaddy creates a new instance of a caddy with a testing resource for testing purposes.
func TestingPathOfResource ¶
TestingPathOfResource returns a path for a testing resource by resources/test/<name>
func TestingResourceContentOf ¶
TestingResourceContentOf load the content of a named testing resource from resources/test/<name>
func TestingResourceOf ¶
TestingResourceOf load testing resource as stream from resources/test/<name>
Types ¶
type TestingFcgiServer ¶
type TestingFcgiServer struct {
// contains filtered or unexported fields
}
TestingFcgiServer represents a http server for testing purposes
func NewTestingFcgiServer ¶
func NewTestingFcgiServer(port int) *TestingFcgiServer
NewTestingFcgiServer creates a new http server for testing purposes
func (*TestingFcgiServer) Close ¶
func (instance *TestingFcgiServer) Close()
Close closes the testing server graceful.
type TestingHttpServer ¶
type TestingHttpServer struct {
// contains filtered or unexported fields
}
TestingHttpServer represents a http server for testing purposes
func NewTestingHttpServer ¶
func NewTestingHttpServer(port int, gzipEnabled bool) *TestingHttpServer
NewTestingHttpServer creates a new http server for testing purposes
func (*TestingHttpServer) Close ¶
func (instance *TestingHttpServer) Close()
Close closes the testing server graceful.