agouti: github.com/sclevine/agouti/api/internal/mocks Index | Files

package mocks

import "github.com/sclevine/agouti/api/internal/mocks"

Index

Package Files

bus.go service.go

type Bus Uses

type Bus struct {
    SendCall struct {
        Endpoint string
        Method   string
        BodyJSON []byte
        Result   string
        Err      error
    }
}

func (*Bus) Send Uses

func (b *Bus) Send(method, endpoint string, body, result interface{}) error

type Service Uses

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 (*Service) Start Uses

func (s *Service) Start(debug bool) error

func (*Service) Stop Uses

func (s *Service) Stop() error

func (*Service) URL Uses

func (s *Service) URL() string

func (*Service) WaitForBoot Uses

func (s *Service) WaitForBoot(timeout time.Duration) error

Package mocks imports 2 packages (graph). Updated 2016-07-31. Refresh now. Tools for package owners.