Documentation ¶
Index ¶
- type CryptoCurrencyService
- func (_m *CryptoCurrencyService) ExchangeFiatToCrypto(ctx context.Context, in *cryptocurrenciespb.ExchangeRequest, ...) (*cryptocurrenciespb.ExchangeResponse, error)
- func (_m *CryptoCurrencyService) GetAmountCryptoToFiat(ctx context.Context, in *cryptocurrenciespb.GetAmountRequest, ...) (*cryptocurrenciespb.GetAmountResponse, error)
- type CryptoCurrencyServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoCurrencyService ¶
CryptoCurrencyService is an autogenerated mock type for the CryptoCurrencyService type
func NewCryptoCurrencyService ¶
func NewCryptoCurrencyService(t mockConstructorTestingTNewCryptoCurrencyService) *CryptoCurrencyService
NewCryptoCurrencyService creates a new instance of CryptoCurrencyService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CryptoCurrencyService) ExchangeFiatToCrypto ¶
func (_m *CryptoCurrencyService) ExchangeFiatToCrypto(ctx context.Context, in *cryptocurrenciespb.ExchangeRequest, opts ...client.CallOption) (*cryptocurrenciespb.ExchangeResponse, error)
ExchangeFiatToCrypto provides a mock function with given fields: ctx, in, opts
func (*CryptoCurrencyService) GetAmountCryptoToFiat ¶
func (_m *CryptoCurrencyService) GetAmountCryptoToFiat(ctx context.Context, in *cryptocurrenciespb.GetAmountRequest, opts ...client.CallOption) (*cryptocurrenciespb.GetAmountResponse, error)
GetAmountCryptoToFiat provides a mock function with given fields: ctx, in, opts
type CryptoCurrencyServiceHandler ¶
CryptoCurrencyServiceHandler is an autogenerated mock type for the CryptoCurrencyServiceHandler type
func NewCryptoCurrencyServiceHandler ¶
func NewCryptoCurrencyServiceHandler(t mockConstructorTestingTNewCryptoCurrencyServiceHandler) *CryptoCurrencyServiceHandler
NewCryptoCurrencyServiceHandler creates a new instance of CryptoCurrencyServiceHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CryptoCurrencyServiceHandler) ExchangeFiatToCrypto ¶
func (_m *CryptoCurrencyServiceHandler) ExchangeFiatToCrypto(_a0 context.Context, _a1 *cryptocurrenciespb.ExchangeRequest, _a2 *cryptocurrenciespb.ExchangeResponse) error
ExchangeFiatToCrypto provides a mock function with given fields: _a0, _a1, _a2
func (*CryptoCurrencyServiceHandler) GetAmountCryptoToFiat ¶
func (_m *CryptoCurrencyServiceHandler) GetAmountCryptoToFiat(_a0 context.Context, _a1 *cryptocurrenciespb.GetAmountRequest, _a2 *cryptocurrenciespb.GetAmountResponse) error
GetAmountCryptoToFiat provides a mock function with given fields: _a0, _a1, _a2