repositories

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheTokensRepository

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

func NewCacheTokensRepository

func NewCacheTokensRepository(connection string) (*CacheTokensRepository, error)

func (*CacheTokensRepository) GetDecimals

func (r *CacheTokensRepository) GetDecimals(token types.Address) (uint8, error)

type MockCacheTokensRepository

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

func NewMockCacheTokensRepository

func NewMockCacheTokensRepository() *MockCacheTokensRepository

func (*MockCacheTokensRepository) AddToken

func (m *MockCacheTokensRepository) AddToken(token types.Address, decimals uint8)

func (*MockCacheTokensRepository) GetDecimals

func (m *MockCacheTokensRepository) GetDecimals(token types.Address) (uint8, error)

type TokenRepository

type TokenRepository interface {
	GetDecimals(token types.Address) (uint8, error)
}

Jump to

Keyboard shortcuts

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