Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a mock conduit server.
func (*Server) Close ¶
func (s *Server) Close()
Close shuts down the server. This should be called at the end of every test or by using defer.
func (*Server) RegisterCapabilities ¶
func (s *Server) RegisterCapabilities()
RegisterCapabilities adds a default handler for the `conduit.getcapabilities` API endpoint.
func (*Server) RegisterMethod ¶
RegisterMethod adds a handler for a specific conduit API method.
func (*Server) RegisterMethodResponse ¶ added in v0.4.0
func (s *Server) RegisterMethodResponse( method string, httpCode int, response map[string]interface{}, )
RegisterMethodResponse adds a response to return from the conduit API method. Call this multiple times to register multiple responses from the API server.
Click to show internal directories.
Click to hide internal directories.