service

package
v0.0.0-...-8626062 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s datastore.Storage, a authorization.Authorizer) *service

Types

type DisputeService

type DisputeService interface {
	Healthy() bool
	SetAuthData(data authentication.AuthData)
	CreateDispute(dispute.Dispute) (dispute.Dispute, error)
	GetDisputesByStatus(status string) (dispute.Disputes, error)
	GetDisputesByWorkerID(id uint64) (dispute.Disputes, error)
	ResolveDispute(dispute.Resolution) (dispute.Resolved, error)
}

type MockDisputeService

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

MockDisputeService is a mock of DisputeService interface

func NewMockDisputeService

func NewMockDisputeService(ctrl *gomock.Controller) *MockDisputeService

NewMockDisputeService creates a new mock instance

func (*MockDisputeService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDisputeService) Healthy

func (m *MockDisputeService) Healthy() bool

Healthy mocks base method

type MockDisputeServiceMockRecorder

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

MockDisputeServiceMockRecorder is the mock recorder for MockDisputeService

func (*MockDisputeServiceMockRecorder) Healthy

Healthy indicates an expected call of Healthy

Jump to

Keyboard shortcuts

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