moralisnft

package
v0.0.0-...-d989180 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package moralisnft is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(apiKey string) *http.Client

Types

type HttpTransport

type HttpTransport struct {
	ApiKey string
	// contains filtered or unexported fields
}

func NewHttpTransport

func NewHttpTransport(apiKey string) *HttpTransport

func (*HttpTransport) RoundTrip

func (t *HttpTransport) RoundTrip(r *http.Request) (*http.Response, error)

func (*HttpTransport) Transport

func (t *HttpTransport) Transport() http.RoundTripper

type MockMoralisNFT

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

MockMoralisNFT is a mock of MoralisNFT interface.

func NewMockMoralisNFT

func NewMockMoralisNFT(ctrl *gomock.Controller) *MockMoralisNFT

NewMockMoralisNFT creates a new mock instance.

func (*MockMoralisNFT) EXPECT

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

func (*MockMoralisNFT) GetList

func (m *MockMoralisNFT) GetList(addressWallet, addressNFT, chain, format, cursor string, limit int) ([]byte, error)

GetList mocks base method.

func (*MockMoralisNFT) GetWalletBalance

func (m *MockMoralisNFT) GetWalletBalance(addressWallet, chain, tokenAddress string) ([]byte, error)

GetWalletBalance mocks base method.

type MockMoralisNFTMockRecorder

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

MockMoralisNFTMockRecorder is the mock recorder for MockMoralisNFT.

func (*MockMoralisNFTMockRecorder) GetList

func (mr *MockMoralisNFTMockRecorder) GetList(addressWallet, addressNFT, chain, format, cursor, limit interface{}) *gomock.Call

GetList indicates an expected call of GetList.

func (*MockMoralisNFTMockRecorder) GetWalletBalance

func (mr *MockMoralisNFTMockRecorder) GetWalletBalance(addressWallet, chain, tokenAddress interface{}) *gomock.Call

GetWalletBalance indicates an expected call of GetWalletBalance.

type MoralisNFT

type MoralisNFT interface {
	GetList(addressWallet, addressNFT, chain, format, cursor string, limit int) ([]byte, error)
	GetWalletBalance(addressWallet, chain, tokenAddress string) ([]byte, error)
}

func NewMoralisNFT

func NewMoralisNFT(opt Options) MoralisNFT

type Options

type Options struct {
	ApiUrl     string
	ApiKey     string
	HttpClient *http.Client
}

func (*Options) SetDefault

func (o *Options) SetDefault()

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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