Documentation
¶
Index ¶
- Constants
- Variables
- type AlertBaseCargoBelow
- type AlertBaseHealthLowerThan
- type AlertBaseIfHealthDecreasing
- type AlertBaseIfUnderAttack
- type AlertBaseMoneyBelow
- type AlertPingMessage
- type AlertPoBGood
- type AlertPobGoodAboveThan
- type AlertPobGoodBelowThan
- type AlertTresholdInteger
- type Channel
- type ConfigBaseOrderingKey
- type MultiValueTemplate
- type OneValueTemplate
- type TagBase
- type TagForumAuthorIgnore
- type TagForumAuthorWatch
- type TagForumContentIgnore
- type TagForumContentWatch
- type TagForumPostIgnore
- type TagForumPostTrack
- type TagForumSubforumIgnore
- type TagForumSubforumTrack
- type TagPoBGood
- type TagRegion
- type TagSystem
- type TagTemplate
- type ThresholdIntegerKind
Constants ¶
View Source
const ( BaseKeyName types.OrderKey = "name" BaseKeyAffiliation types.OrderKey = "affiliation" )
i know it can be Constraint. But if i add it as `struct tag` it breaks typing and kind of hard to figure out how to fix nicely
Variables ¶
View Source
var ConfigBaseOrderingKeyAllowedTags = []types.OrderKey{BaseKeyName, BaseKeyAffiliation}
Functions ¶
This section is empty.
Types ¶
type AlertBaseCargoBelow ¶ added in v1.17.0
type AlertBaseCargoBelow struct {
OneValueTemplate
AlertTresholdInteger
ThresholdIntegerKind `gorm:"-"`
}
type AlertBaseHealthLowerThan ¶
type AlertBaseHealthLowerThan struct {
OneValueTemplate
AlertTresholdInteger
ThresholdIntegerKind `gorm:"-"`
}
====== Shared alerts for all bases =========
type AlertBaseIfHealthDecreasing ¶
type AlertBaseIfHealthDecreasing struct {
OneValueTemplate
}
type AlertBaseIfUnderAttack ¶
type AlertBaseIfUnderAttack struct {
OneValueTemplate
}
type AlertBaseMoneyBelow ¶ added in v1.17.0
type AlertBaseMoneyBelow struct {
OneValueTemplate
AlertTresholdInteger
ThresholdIntegerKind `gorm:"-"`
}
type AlertPingMessage ¶
type AlertPingMessage struct {
OneValueTemplate
Value string
}
func (AlertPingMessage) GetValue ¶
func (a AlertPingMessage) GetValue() string
type AlertPoBGood ¶ added in v1.17.0
type AlertPoBGood struct {
GoodNickname string
}
func (AlertPoBGood) GetGoodNickname ¶ added in v1.17.0
func (t AlertPoBGood) GetGoodNickname() string
type AlertPobGoodAboveThan ¶ added in v1.17.0
type AlertPobGoodAboveThan struct {
MultiValueTemplate
AlertTresholdInteger
ThresholdIntegerKind `gorm:"-"`
AlertPoBGood
}
type AlertPobGoodBelowThan ¶ added in v1.17.0
type AlertPobGoodBelowThan struct {
MultiValueTemplate
AlertTresholdInteger
ThresholdIntegerKind `gorm:"-"`
AlertPoBGood
}
type AlertTresholdInteger ¶ added in v1.17.0
type AlertTresholdInteger struct {
Threshold int `gorm:"check:threshold > 0; check:threshold >= 0"`
}
func (AlertTresholdInteger) GetThreshold ¶ added in v1.17.0
func (t AlertTresholdInteger) GetThreshold() int
type Channel ¶
type Channel struct {
gorm.DeletedAt
ChannelID types.DiscordChannelID `gorm:"primarykey"`
}
type ConfigBaseOrderingKey ¶
type ConfigBaseOrderingKey struct {
OneValueTemplate
Value string
}
func (ConfigBaseOrderingKey) GetValue ¶
func (a ConfigBaseOrderingKey) GetValue() string
type MultiValueTemplate ¶ added in v1.17.0
type MultiValueTemplate struct {
gorm.Model
ChannelID types.DiscordChannelID
Channel Channel `gorm:"references:ChannelID"`
}
type OneValueTemplate ¶
type OneValueTemplate struct {
gorm.Model
ChannelID types.DiscordChannelID
Channel Channel `gorm:"references:ChannelID,unique"`
}
type TagBase ¶
type TagBase struct {
TagTemplate
}
type TagForumAuthorIgnore ¶ added in v1.15.0
type TagForumAuthorIgnore struct {
TagTemplate
}
type TagForumAuthorWatch ¶ added in v1.15.0
type TagForumAuthorWatch struct {
TagTemplate
}
type TagForumContentIgnore ¶ added in v1.14.0
type TagForumContentIgnore struct {
TagTemplate
}
type TagForumContentWatch ¶ added in v1.14.0
type TagForumContentWatch struct {
TagTemplate
}
type TagForumPostIgnore ¶
type TagForumPostIgnore struct {
TagTemplate
}
type TagForumPostTrack ¶
type TagForumPostTrack struct {
TagTemplate
}
type TagForumSubforumIgnore ¶
type TagForumSubforumIgnore struct {
TagTemplate
}
type TagForumSubforumTrack ¶
type TagForumSubforumTrack struct {
TagTemplate
}
type TagPoBGood ¶ added in v1.17.0
type TagPoBGood struct {
TagTemplate
}
type TagRegion ¶
type TagRegion struct {
TagTemplate
}
type TagSystem ¶
type TagSystem struct {
TagTemplate
}
type TagTemplate ¶
type TagTemplate struct {
gorm.Model
ChannelID types.DiscordChannelID
Channel Channel `gorm:"references:ChannelID"`
Tag string
}
func (TagTemplate) GetTag ¶
func (t TagTemplate) GetTag() types.Tag
type ThresholdIntegerKind ¶ added in v1.17.0
type ThresholdIntegerKind int64
const ( ThresholdIntegerPercentage ThresholdIntegerKind = iota ThresholdIntegerNotConstrained )
Click to show internal directories.
Click to hide internal directories.