Documentation ¶
Index ¶
- Variables
- func NewDB()
- func NewEtcdClient() *clientv3.Client
- type Mapper
- func (m *Mapper) Create(model interface{}) error
- func (m *Mapper) Delete(model interface{}) error
- func (m *Mapper) Find(models interface{}) error
- func (m *Mapper) FindByFuturesID(models interface{}, futuresID string) error
- func (m *Mapper) FindByFuturesName(models interface{}, futuresName string) error
- func (m *Mapper) FindOrders(models interface{}, futuresID string, traderName string, status string, ...) error
- func (m *Mapper) FindOrdersWithCondition(models interface{}, firmID int, futuresID string, traderName string, ...) error
- func (m *Mapper) FindTrades(models interface{}, futuresID string, traderName string, page int, total *int) error
- func (m *Mapper) FindTradesWithCondition(models interface{}, firmID int, futuresID string, traderName string, page int, ...) error
- func (m *Mapper) FindWithLimit(models interface{}, limit int) error
- func (m *Mapper) FindWithPage(models interface{}, page int, total *int) error
- func (m *Mapper) FirstByFirmName(model interface{}, firmName string) error
- func (m *Mapper) FirstByID(model interface{}, id int) error
- func (m *Mapper) FutureIDs() ([]string, error)
- func (m *Mapper) FuturesNames() ([]string, error)
- func (m *Mapper) Save(model interface{}) error
- func (m *Mapper) Update(model interface{}, column string, value string) error
- func (m *Mapper) WhereByUUID(model interface{}, column string, uuid string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func NewEtcdClient ¶
Types ¶
type Mapper ¶
type Mapper struct { }
func (*Mapper) FindByFuturesID ¶
func (*Mapper) FindByFuturesName ¶
func (*Mapper) FindOrders ¶
func (*Mapper) FindOrdersWithCondition ¶
func (*Mapper) FindTrades ¶
func (*Mapper) FindTradesWithCondition ¶
func (*Mapper) FindWithLimit ¶
func (*Mapper) FindWithPage ¶
func (*Mapper) FirstByFirmName ¶
func (*Mapper) FuturesNames ¶
Click to show internal directories.
Click to hide internal directories.