type Bus struct { SendCall struct { Endpoint string Method string BodyJSON []byte Result string Err error } }
func (b *Bus) Send(method, endpoint string, body, result interface{}) error
type Service struct { URLCall struct { ReturnURL string } StartCall struct { Debug bool Called bool Err error } StopCall struct { Called bool Err error } WaitForBootCall struct { Timeout time.Duration Err error } }
func (s *Service) Start(debug bool) error
func (s *Service) Stop() error
func (s *Service) URL() string
func (s *Service) WaitForBoot(timeout time.Duration) error