Documentation ¶
Index ¶
- Constants
- Variables
- func AcknowledgeNotification(uuid, portfolioUuid string) error
- func DeleteNotification(note *Notification)
- func DeleteRequest(uuid string) error
- func JsonToNotification(jsonString, notificationType string) interface{}
- func SendMoneyTradeNotification(portfolioUuid, receiverUuid string, amount int64) (*Notification, *Notification)
- type EffectNotification
- type ItemNotification
- type MailNotification
- type MoneyTransferNotification
- type Notification
- func DoneTradeNotification(portfilioUuid, stockUuid string, amount int64) *Notification
- func EndEffectNotification(portfolioId, effectTitle string) *Notification
- func GetAllNotifications(portfolioUuid string) []*Notification
- func MakeNotification(notification objects.Notification) *Notification
- func NewEffectNotification(portfolioId, effectTitle string) *Notification
- func NewItemNotification(portfolioUuid, itemType, itemUuid string) *Notification
- func NewMailNotifcation(uuid, from string, text string, money int64) *Notification
- func NewNotification(portfolioUuid, t string, notification interface{}) *Notification
- func UsedItemNotification(portfolioUuid, itemUuid, itemType string) *Notification
- type TradeNotification
Constants ¶
View Source
const EndEffectNotificationType = "end_effect"
View Source
const NewEffectNotificationType = "new_effect"
View Source
const NewItemNotificationType = "new_item"
View Source
const ReceiveNotificationType = "receive_money"
View Source
const SendMoneyNotificationType = "send_money"
View Source
const TradeNotificationType = "trade"
View Source
const UsedItemNotificationType = "used_item"
Variables ¶
View Source
var NotificationLock = lock.NewLock("notifications")
Functions ¶
func AcknowledgeNotification ¶
func DeleteNotification ¶
func DeleteNotification(note *Notification)
func DeleteRequest ¶
func JsonToNotification ¶
func JsonToNotification(jsonString, notificationType string) interface{}
func SendMoneyTradeNotification ¶
func SendMoneyTradeNotification(portfolioUuid, receiverUuid string, amount int64) (*Notification, *Notification)
Types ¶
type EffectNotification ¶
type EffectNotification struct {
EffectTitle string `json:"title"`
}
type ItemNotification ¶
type MailNotification ¶
type Notification ¶
type Notification struct {
objects.Notification
}
func DoneTradeNotification ¶
func DoneTradeNotification(portfilioUuid, stockUuid string, amount int64) *Notification
func EndEffectNotification ¶
func EndEffectNotification(portfolioId, effectTitle string) *Notification
func GetAllNotifications ¶
func GetAllNotifications(portfolioUuid string) []*Notification
func MakeNotification ¶
func MakeNotification(notification objects.Notification) *Notification
func NewEffectNotification ¶
func NewEffectNotification(portfolioId, effectTitle string) *Notification
func NewItemNotification ¶
func NewItemNotification(portfolioUuid, itemType, itemUuid string) *Notification
func NewMailNotifcation ¶
func NewMailNotifcation(uuid, from string, text string, money int64) *Notification
func NewNotification ¶
func NewNotification(portfolioUuid, t string, notification interface{}) *Notification
func UsedItemNotification ¶
func UsedItemNotification(portfolioUuid, itemUuid, itemType string) *Notification
Click to show internal directories.
Click to hide internal directories.