Documentation ¶
Index ¶
- func ChangeChannelTelegram(username interface{}, telegram int64, channel interface{}) *gorm.DB
- func ChangeUserAndPassword(oldName, newName, newPassword string) *gorm.DB
- func ChangeUserName(oldName, newName string) *gorm.DB
- func ChangeUserPassword(username, newPassword string) *gorm.DB
- func CreateChannel(channel *Channel) *gorm.DB
- func CreateSignal(s *TVSignal) *gorm.DB
- func CreateStrategy(strategy interface{}) *gorm.DB
- func CreateUser(user *User) *gorm.DB
- func DeleteChannelFromUser(username interface{}, channel interface{}) *gorm.DB
- func DeleteSignal(channelID uint, symbol string) *gorm.DB
- func DeleteStrategy(channelID string, symbol string) *gorm.DB
- func DeleteUser(username interface{}) *gorm.DB
- func FindAllChannelsFromUser(dest interface{}, username interface{}) *gorm.DB
- func FindAllStrategiesFromChannel(dest interface{}, channelID interface{}) *gorm.DB
- func FindChannel(dest interface{}, query string, args ...interface{}) *gorm.DB
- func FindChannelByTelegramId(dest interface{}, telegramID int64) *gorm.DB
- func FindChannelFromUser(dest interface{}, username interface{}, channel interface{}) *gorm.DB
- func FindDefaultStrategy(dest interface{}, channelID uint) *gorm.DB
- func FindSignalBySymbol(dest interface{}, channelID uint, symbol string) *gorm.DB
- func FindStrategy(dest interface{}, conds ...interface{}) *gorm.DB
- func FindStrategyByID(dest interface{}, channelID interface{}, strategyID interface{}) *gorm.DB
- func FindStrategyBySymbol(dest interface{}, channelID uint, symbol string) *gorm.DB
- func FindStrategyBySymbolSimple(dest interface{}, symbol string, channelID interface{}) *gorm.DB
- func FindUser(dest interface{}, conds ...interface{}) *gorm.DB
- func FindUserByName(dest interface{}, username interface{}) *gorm.DB
- func FindUserByUUID(dest interface{}, username interface{}, uuid interface{}) *gorm.DB
- func UpdateChannel(username interface{}, update map[string]interface{}, channel interface{}) *gorm.DB
- func UpdateUser(dest interface{}, update map[string]interface{}, user string) *gorm.DB
- type Channel
- type Entry
- type SL
- type Strategy
- type TP
- type TVSignal
- type TargetStrategy
- type User
- type ZoneStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeChannelTelegram ¶
func ChangeUserAndPassword ¶
func ChangeUserName ¶
func ChangeUserPassword ¶
func CreateChannel ¶
func CreateSignal ¶
func CreateStrategy ¶
func CreateUser ¶
func DeleteChannelFromUser ¶
func DeleteUser ¶
func FindAllChannelsFromUser ¶
func FindChannel ¶
func FindChannelByTelegramId ¶
func FindChannelFromUser ¶
func FindDefaultStrategy ¶
func FindSignalBySymbol ¶
func FindStrategy ¶
func FindStrategyByID ¶
func FindStrategyBySymbol ¶
func FindUserByName ¶
func FindUserByUUID ¶
func UpdateChannel ¶
Types ¶
type Strategy ¶
type Strategy struct { gorm.Model AllowCounter bool Symbol string TargetStrategy *TargetStrategy `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` ZoneStrategy *ZoneStrategy `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` Leverage uint ChannelID uint }
type TargetStrategy ¶
Click to show internal directories.
Click to hide internal directories.