Documentation ¶
Index ¶
- Constants
- Variables
- func NewHTTPClient(timeout time.Duration) *http.Client
- func NewHTTPClientWithTransport(timeout time.Duration, transport *http.Transport) *http.Client
- func NewService(host, wsHost string, conn *Connection) service
- func ResultWriter(w io.Writer, results []TestCase)
- type Connection
- type Service
- type TestCase
- type TestCaseResult
- type VersionResponse
Constants ¶
View Source
const (
DefaultTimeout = time.Second * 25
)
Variables ¶
View Source
var ErrInsecure = errors.New("this client connection is insecure")
Functions ¶
func NewHTTPClient ¶
NewHTTPClient returns a more appropriate HTTP client as opposed the default provided by `net/http`
func NewHTTPClientWithTransport ¶
NewHTTPClientWithTransport returns a more appropriate HTTP client as opposed the default provided by `net/http`
func NewService ¶
func NewService(host, wsHost string, conn *Connection) service
func ResultWriter ¶
ResultWriter writes testcase results to a writer
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection() (*Connection, error)
type Service ¶
type Service interface { Version() (VersionResponse, error) Run(discoveryFile, configFile, exportConfig string) ([]TestCase, error) }
Service is a gateway to backend services provided by FCS
type TestCase ¶
type TestCase struct { Id string `json:"id"` Pass bool `json:"pass"` Fail string `json:"fail,omitempty"` }
TestCase result for a run
type TestCaseResult ¶
type VersionResponse ¶
Click to show internal directories.
Click to hide internal directories.