Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Version used on test server
Version = "test-version"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestAPI ¶
type TestAPI struct {
// contains filtered or unexported fields
}
TestAPI is a simple struct to start and stop an API for testing
func (*TestAPI) StartAPI ¶
func (ta *TestAPI) StartAPI(t *testing.T, apiIPPort string, cert, key, caCert string, remaining int, requireClientCert bool)
StartAPI is exported to be useful on other libraries tests. Starts the api in testing mode
func (*TestAPI) StartAPIWithService ¶ added in v0.2.0
func (ta *TestAPI) StartAPIWithService(t *testing.T, apiIPPort string, cert, key, caCert string, remaining int, requireClientCert bool, srv *service.Service)
StartAPIWithService is exported to be useful on other libraries tests. Starts the api in testing mode
Click to show internal directories.
Click to hide internal directories.