mapper

package
v0.0.0-...-7fd84a6 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartMapper

type ChartMapper interface {
	MapChartDtoToEntity(dto common.Chart) entity.ChartEntity
	MapChartEntityToDto(entity entity.ChartEntity) common.Chart
	MapIndicatorEntityToDto(entity entity.ChartIndicator) common.ChartIndicator
	MapIndicatorDtoToEntity(dto common.ChartIndicator) entity.ChartIndicator
	MapStrategyEntityToDto(entity entity.ChartStrategy) common.ChartStrategy
	MapStrategyDtoToEntity(dto common.ChartStrategy) entity.ChartStrategy
	MapTradeEntityToDto(entity entity.TradeEntity) common.Trade
	MapTradeDtoToEntity(trade common.Trade) entity.Trade
}

func NewChartMapper

func NewChartMapper(ctx common.Context) ChartMapper

type DefaultChartMapper

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

func (*DefaultChartMapper) MapChartDtoToEntity

func (mapper *DefaultChartMapper) MapChartDtoToEntity(dto common.Chart) entity.ChartEntity

func (*DefaultChartMapper) MapChartEntityToDto

func (mapper *DefaultChartMapper) MapChartEntityToDto(entity entity.ChartEntity) common.Chart

func (*DefaultChartMapper) MapIndicatorDtoToEntity

func (mapper *DefaultChartMapper) MapIndicatorDtoToEntity(dto common.ChartIndicator) entity.ChartIndicator

func (*DefaultChartMapper) MapIndicatorEntityToDto

func (mapper *DefaultChartMapper) MapIndicatorEntityToDto(entity entity.ChartIndicator) common.ChartIndicator

func (*DefaultChartMapper) MapStrategyDtoToEntity

func (mapper *DefaultChartMapper) MapStrategyDtoToEntity(dto common.ChartStrategy) entity.ChartStrategy

func (*DefaultChartMapper) MapStrategyEntityToDto

func (mapper *DefaultChartMapper) MapStrategyEntityToDto(entity entity.ChartStrategy) common.ChartStrategy

func (*DefaultChartMapper) MapTradeDtoToEntity

func (mapper *DefaultChartMapper) MapTradeDtoToEntity(trade common.Trade) entity.Trade

func (*DefaultChartMapper) MapTradeEntityToDto

func (mapper *DefaultChartMapper) MapTradeEntityToDto(entity entity.TradeEntity) common.Trade

type DefaultPluginMapper

type DefaultPluginMapper struct {
	PluginMapper
}

func (*DefaultPluginMapper) MapPluginDtoToEntity

func (mapper *DefaultPluginMapper) MapPluginDtoToEntity(platformPlugin common.Plugin) entity.PluginEntity

func (*DefaultPluginMapper) MapPluginEntityToDto

func (mapper *DefaultPluginMapper) MapPluginEntityToDto(entity entity.PluginEntity) common.Plugin

type DefaultTradeMapper

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

func (*DefaultTradeMapper) MapTradeDtoToEntity

func (mapper *DefaultTradeMapper) MapTradeDtoToEntity(dto common.Trade) entity.TradeEntity

func (*DefaultTradeMapper) MapTradeEntityToDto

func (mapper *DefaultTradeMapper) MapTradeEntityToDto(entity entity.TradeEntity) common.Trade

type DefaultTransactionMapper

type DefaultTransactionMapper struct {
	TransactionMapper
	// contains filtered or unexported fields
}

func (*DefaultTransactionMapper) MapTransactionDtoToEntity

func (mapper *DefaultTransactionMapper) MapTransactionDtoToEntity(dto common.Transaction) entity.TransactionEntity

func (*DefaultTransactionMapper) MapTransactionDtoToViewModel

func (mapper *DefaultTransactionMapper) MapTransactionDtoToViewModel(dto common.Transaction) viewmodel.Transaction

func (*DefaultTransactionMapper) MapTransactionEntityToDto

func (mapper *DefaultTransactionMapper) MapTransactionEntityToDto(entity entity.TransactionEntity) common.Transaction

type DefaultUserMapper

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

func (*DefaultUserMapper) MapUserDtoToEntity

func (mapper *DefaultUserMapper) MapUserDtoToEntity(dto common.UserContext) entity.UserEntity

func (*DefaultUserMapper) MapUserEntityToDto

func (mapper *DefaultUserMapper) MapUserEntityToDto(entity entity.UserEntity) common.UserContext

type PluginMapper

type PluginMapper interface {
	MapPluginEntityToDto(entity entity.PluginEntity) common.Plugin
	MapPluginDtoToEntity(dto common.Plugin) entity.PluginEntity
}

func NewPluginMapper

func NewPluginMapper() PluginMapper

type TradeMapper

type TradeMapper interface {
	MapTradeEntityToDto(entity entity.TradeEntity) common.Trade
	MapTradeDtoToEntity(dto common.Trade) entity.TradeEntity
}

func NewTradeMapper

func NewTradeMapper(ctx common.Context) TradeMapper

type TransactionMapper

type TransactionMapper interface {
	MapTransactionEntityToDto(entity entity.TransactionEntity) common.Transaction
	MapTransactionDtoToEntity(dto common.Transaction) entity.TransactionEntity
	MapTransactionDtoToViewModel(dto common.Transaction) viewmodel.Transaction
}

func NewTransactionMapper

func NewTransactionMapper(ctx common.Context) TransactionMapper

type UserExchangeMapper

type UserExchangeMapper interface {
	MapDtoToViewModel(dto common.UserCryptoExchange) *viewmodel.UserCryptoExchange
	MapDtoToEntity(userCryptoExchange common.UserCryptoExchange) entity.UserExchangeEntity
	MapEntityToDto(entity entity.UserExchangeEntity) common.UserCryptoExchange
	MapEntityToViewModel(entity entity.UserExchangeEntity) *viewmodel.UserCryptoExchange
	MapViewModelToEntity(vm viewmodel.UserCryptoExchange) entity.UserExchangeEntity
}

func NewUserExchangeMapper

func NewUserExchangeMapper() UserExchangeMapper

type UserExchangeMapperImpl

type UserExchangeMapperImpl struct {
	UserExchangeMapper
}

func (*UserExchangeMapperImpl) MapDtoToEntity

func (em *UserExchangeMapperImpl) MapDtoToEntity(userCryptoExchange common.UserCryptoExchange) entity.UserExchangeEntity

func (*UserExchangeMapperImpl) MapDtoToViewModel

func (*UserExchangeMapperImpl) MapEntityToDto

func (*UserExchangeMapperImpl) MapEntityToViewModel

func (*UserExchangeMapperImpl) MapViewModelToEntity

type UserMapper

type UserMapper interface {
	MapUserEntityToDto(entity entity.UserEntity) common.UserContext
	MapUserDtoToEntity(dto common.UserContext) entity.UserEntity
}

func NewUserMapper

func NewUserMapper() UserMapper

Jump to

Keyboard shortcuts

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