settings

package
v1.10.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubCacheSettings

type HubCacheSettings struct {
	Enabled   *bool
	Ttl       *time.Duration
	ClearTime time.Time
	// contains filtered or unexported fields
}

func NewCacheSettings

func NewCacheSettings(clearConnectionCache func(string) error) *HubCacheSettings

func (*HubCacheSettings) Apply

func (s *HubCacheSettings) Apply(key string, jsonValue string) error

func (*HubCacheSettings) SetClearTime

func (s *HubCacheSettings) SetClearTime(_ string) error

func (*HubCacheSettings) SetEnabled

func (s *HubCacheSettings) SetEnabled(jsonValue string) error

func (*HubCacheSettings) SetTtl

func (s *HubCacheSettings) SetTtl(jsonValue string) error

type HubSettingKey

type HubSettingKey string
const (
	SettingKeyCacheEnabled           HubSettingKey = "cache"
	SettingKeyCacheTtlOverride       HubSettingKey = "cache_ttl"
	SettingKeyCacheClearTimeOverride HubSettingKey = "cache_clear_time"
	SettingKeyConnectionCacheClear   HubSettingKey = "connection_cache_clear"
)

Jump to

Keyboard shortcuts

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