Versions in this module Expand all Collapse all v0 v0.5.0 Oct 28, 2019 v0.4.0 Oct 7, 2019 Changes in this version type Register + Description string + Name string v0.3.2 Apr 4, 2018 v0.3.1 Oct 30, 2017 v0.3.0 Oct 28, 2017 Changes in this version + func JSONResponse(w http.ResponseWriter, data Response, code int) (int, error) + type APIProxy struct + ID string + Msg string + Request interface{} + Success bool + type Capabilities map[string]interface + type ClientFactoryInterface interface + Create func(address string) ClientInterface + type ClientFactoryMock struct + func (cf *ClientFactoryMock) Create(address string) ClientInterface + type ClientInterface interface + Address func() string + CloseSession func(sessionID string) (*Message, error) + Health func() (*Message, error) + Sessions func() (*Sessions, error) + type ClientMock struct + func (c *ClientMock) Address() string + func (c *ClientMock) CloseSession(sessionID string) (*Message, error) + func (c *ClientMock) Health() (*Message, error) + func (c *ClientMock) Sessions() (*Sessions, error) + type Configuration struct + CapabilitiesList []Capabilities + Host string + Hub string + HubHost string + HubPort int + ID string + MaxSession int + Port int + Proxy string + Register bool + RegisterCycle int + RemoteHost string + Role string + URL string + type Message struct + SessionID string + Status int + Value interface{} + type NewSession struct + Value struct{ ... } + type Register struct + CapabilitiesList []Capabilities + Class string + Configuration *Configuration + type Response struct + SessionID *string + Status ResponseStatus + Value json.RawMessage + func NewResponse(sessionID *string, status ResponseStatus, value json.RawMessage) *Response + type ResponseStatus int + const ResponseStatusSuccess + const ResponseStatusUnknownErr + type Sessions struct + Value []struct{ ... }