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" )
Click to show internal directories.
Click to hide internal directories.