Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Index ¶
- Variables
- type MockService
- func (m *MockService) DoesPDVExist(ctx context.Context, address string) (bool, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) ReceivePDV(ctx context.Context, address string) ([]byte, error)
- func (m *MockService) SavePDV(ctx context.Context, data []byte, filename string) error
- type MockServiceMockRecorder
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound means that requested object is not found.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) DoesPDVExist ¶
DoesPDVExist mocks base method
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) ReceivePDV ¶
ReceivePDV mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) DoesPDVExist ¶
func (mr *MockServiceMockRecorder) DoesPDVExist(ctx, address interface{}) *gomock.Call
DoesPDVExist indicates an expected call of DoesPDVExist
func (*MockServiceMockRecorder) ReceivePDV ¶
func (mr *MockServiceMockRecorder) ReceivePDV(ctx, address interface{}) *gomock.Call
ReceivePDV indicates an expected call of ReceivePDV
func (*MockServiceMockRecorder) SavePDV ¶
func (mr *MockServiceMockRecorder) SavePDV(ctx, data, filename interface{}) *gomock.Call
SavePDV indicates an expected call of SavePDV
type Service ¶
type Service interface { // SavePDV sends PDV to storage. SavePDV(ctx context.Context, data []byte, filename string) error // ReceivePDV returns slice of bytes of PDV requested by address from storage. ReceivePDV(ctx context.Context, address string) ([]byte, error) // DoesPDVExist checks PDV existence by address in storage. DoesPDVExist(ctx context.Context, address string) (bool, error) }
Service interface provides service's logic's methods.
Click to show internal directories.
Click to hide internal directories.