Documentation
¶
Index ¶
Constants ¶
View Source
const Unlimited = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAction ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) CanCreateEnvironment ¶
func (*Agent) CanCreateShare ¶
type BandwidthConfig ¶
type BandwidthConfig struct {
PerAccount *BandwidthPerPeriod
PerEnvironment *BandwidthPerPeriod
}
type BandwidthPerPeriod ¶
func DefaultBandwidthPerPeriod ¶
func DefaultBandwidthPerPeriod() *BandwidthPerPeriod
type Config ¶
type Config struct {
Environments int
Bandwidth *BandwidthConfig
Cycle time.Duration
Enforcing bool
}
func DefaultConfig ¶
func DefaultConfig() *Config
type EnvironmentAction ¶
type EnvironmentAction interface {
HandleEnvironment(e *store.Environment, rxBytes, txBytes int64, limit *BandwidthPerPeriod, trx *sqlx.Tx) error
}
type ShareAction ¶
type ShareAction interface {
}
Click to show internal directories.
Click to hide internal directories.