caller

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller struct {
	// contains filtered or unexported fields
}

Caller struct encapsulates the surgery software bridge

func NewCaller

func NewCaller(s service.PatientService, bridge SoftwareBridge) *Caller

NewCaller returns a surgery software bridge struct

func (*Caller) Run

func (c *Caller) Run(every time.Duration, stop <-chan struct{}) error

Run runs the bridge functionality in a new goroutine repeated by given every every

type MockSoftwareBridge

type MockSoftwareBridge struct {
	mock.Mock
}

MockSoftwareBridge is an autogenerated mock type for the SoftwareBridge type

func (*MockSoftwareBridge) GetExaminedPatients

func (_m *MockSoftwareBridge) GetExaminedPatients() ([]*model.Patient, error)

GetExaminedPatients provides a mock function with given fields:

func (*MockSoftwareBridge) GetToBeExaminedPatients

func (_m *MockSoftwareBridge) GetToBeExaminedPatients() ([]*model.Patient, error)

GetToBeExaminedPatients provides a mock function with given fields:

type SoftwareBridge

type SoftwareBridge interface {
	GetToBeExaminedPatients() ([]*model.Patient, error)
	GetExaminedPatients() ([]*model.Patient, error)
}

SoftwareBridge provides abstraction for different practitioner software

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL