a2fa5c4c5a
* adds enums to nodetype * updating nodetype todos * ran pb updates * reorder nodetypes * adding checks * wip * wip * wip * bug in test-captplanet * wip * add values to storagenode, satellite, captplanet binaries * Cleanup * more cleanup * wip * lint * lint * wip * fixes bug * regenerate protos Change-Id: Id270212e8c7479e52641058042cf23b5317ab773 * limit node type changes to kademlia Change-Id: I9c1a6cc4a79e05086627f0fdeb5028c62ce754f4 * dpanic Change-Id: Id952a2ad13c807ebaea0ec0a875405e267d81c3e * review comments Change-Id: I7f9b77ef22779dd012fd490375b136014f51f834
58 lines
1.5 KiB
Go
58 lines
1.5 KiB
Go
// Copyright (C) 2018 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: storj.io/storj/pkg/transport (interfaces: Client)
|
|
|
|
// Package ecclient is a generated GoMock package.
|
|
package ecclient
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
grpc "google.golang.org/grpc"
|
|
|
|
"storj.io/storj/pkg/pb"
|
|
)
|
|
|
|
// MockClient is a mock of Client interface
|
|
type MockClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockClientMockRecorder
|
|
}
|
|
|
|
// MockClientMockRecorder is the mock recorder for MockClient
|
|
type MockClientMockRecorder struct {
|
|
mock *MockClient
|
|
}
|
|
|
|
// NewMockClient creates a new mock instance
|
|
func NewMockClient(ctrl *gomock.Controller) *MockClient {
|
|
mock := &MockClient{ctrl: ctrl}
|
|
mock.recorder = &MockClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
func (m *MockClient) EXPECT() *MockClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// DialNode mocks base method
|
|
func (m *MockClient) DialNode(arg0 context.Context, arg1 *pb.Node) (*grpc.ClientConn, error) {
|
|
|
|
arg1.Type.DPanicOnInvalid("mockclient dial node")
|
|
|
|
ret := m.ctrl.Call(m, "DialNode", arg0, arg1)
|
|
ret0, _ := ret[0].(*grpc.ClientConn)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// DialNode indicates an expected call of DialNode
|
|
func (mr *MockClientMockRecorder) DialNode(arg0, arg1 interface{}) *gomock.Call {
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DialNode", reflect.TypeOf((*MockClient)(nil).DialNode), arg0, arg1)
|
|
}
|