runtime

package
v1.6.2-0...-b66c343 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyConfig = &Config{}

Functions

This section is empty.

Types

type Config

type Config struct {
	LogStreamCreation     bool `yaml:"log_stream_creation"`
	LogPushRequest        bool `yaml:"log_push_request"`
	LogPushRequestStreams bool `yaml:"log_push_request_streams"`

	// LimitedLogPushErrors is to be implemented and will allow logging push failures at a controlled pace.
	LimitedLogPushErrors bool `yaml:"limited_log_push_errors"`
}

type TenantConfigProvider

type TenantConfigProvider interface {
	TenantConfig(userID string) *Config
}

TenantConfigProvider serves a tenant or default config.

type TenantConfigs

type TenantConfigs struct {
	TenantConfigProvider
}

TenantConfigs periodically fetch a set of per-user configs, and provides convenience functions for fetching the correct value.

func DefaultTenantConfigs

func DefaultTenantConfigs() *TenantConfigs

DefaultTenantConfigs creates and returns a new TenantConfigs with the defaults populated.

func NewTenantConfigs

func NewTenantConfigs(configProvider TenantConfigProvider) (*TenantConfigs, error)

NewTenantConfig makes a new TenantConfigs

func (*TenantConfigs) LimitedLogPushErrors

func (o *TenantConfigs) LimitedLogPushErrors(userID string) bool

func (*TenantConfigs) LogPushRequest

func (o *TenantConfigs) LogPushRequest(userID string) bool

func (*TenantConfigs) LogPushRequestStreams

func (o *TenantConfigs) LogPushRequestStreams(userID string) bool

func (*TenantConfigs) LogStreamCreation

func (o *TenantConfigs) LogStreamCreation(userID string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL