Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScaler ¶
type K8S ¶
type K8S interface { GetStatefulSet(ctx context.Context, name string) (*appsv1.StatefulSet, error) CreateStatefulSet(ctx context.Context, statefulSet appsv1.StatefulSet) (*appsv1.StatefulSet, error) UpdateStatefulSet(ctx context.Context, statefulSet *appsv1.StatefulSet) (*appsv1.StatefulSet, error) DeleteStatefulSet(ctx context.Context, name string) error }
type Monitoring ¶
type Monitoring interface { Register(prometheus.Registerer) WaterHoseMaster() MonitoringWaterHoseMaster WaterHoseSlave() MonitoringWaterHoseSlave }
type MonitoringWaterHoseMaster ¶
type MonitoringWaterHoseMaster struct {
TotalChannels prometheus.Histogram
}
type MonitoringWaterHoseSlave ¶
type MonitoringWaterHoseSlave struct { TotalChannelsBannedIn prometheus.Histogram TotalChannelsSuspended prometheus.Histogram TotalChannelsConnectedTo prometheus.Histogram TotalMessages prometheus.Histogram }
type RateLimiter ¶
type Redis ¶
type Redis interface { Pipeline(ctx context.Context) rawRedis.Pipeliner Publish(ctx context.Context, channel string, value string) error RateLimitNewConnection(ctx context.Context) (bool, time.Duration, error) RateLimitJoin(ctx context.Context, count int) (int, time.Duration, error) redis.Instance }
Click to show internal directories.
Click to hide internal directories.