Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
RateLimit composes an amount allowed per duration
func (RateLimit) AdjustAmount ¶
adjustAmount adjusts the composed amount for the specified period, rounded to the nearest second
func (*RateLimit) UnmarshalJSON ¶
UnmarshalJSON allows us to deser time.Durations using string values
type SizeLimits ¶
SizeLimits composes a max and a warn size
type TableSizeLimit ¶
type TableSizeLimit struct {
SizeLimits
Family string `json:"family"`
Table string `json:"table"`
}
TableSizeLimit represents the limit for a particular table
type TableSizeLimits ¶
type TableSizeLimits struct {
Global SizeLimits `json:"global"`
Tables []TableSizeLimit `json:"tables"`
}
TableSizeLimits is a representation of all of the table size limits
type WriterRateLimit ¶
type WriterRateLimit struct {
Writer string `json:"writer"`
RateLimit RateLimit `json:"rate-limit"`
}
WriterRateLimit represents the limit for a particular writer
type WriterRateLimits ¶
type WriterRateLimits struct {
Global RateLimit `json:"global"`
Writers []WriterRateLimit `json:"writers"`
}
WriterRateLimits represents all of the writer limits
Click to show internal directories.
Click to hide internal directories.