Documentation ¶
Index ¶
- type ACLCache
- type TopicCache
- func (t *TopicCache) DeleteByProjectAndServiceName(projectName, serviceName string)
- func (t *TopicCache) LoadByProjectAndServiceName(projectName, serviceName string) (map[string]aiven.KafkaTopic, bool)
- func (t *TopicCache) LoadByTopicName(projectName, serviceName, topicName string) (aiven.KafkaTopic, bool)
- func (t *TopicCache) StoreByProjectAndServiceName(projectName, serviceName string, list []*aiven.KafkaListTopic)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLCache ¶
type ACLCache struct { }
ACLCache type
type TopicCache ¶
TopicCache represents Kafka Topics cache based on Service and Project identifiers
func GetTopicCache ¶ added in v1.2.1
func GetTopicCache() *TopicCache
GetTopicCache gets a global Kafka Topics Cache
func NewTopicCache ¶ added in v1.2.1
func NewTopicCache() *TopicCache
NewTopicCache creates new global instance of Kafka Topic Cache
func (*TopicCache) DeleteByProjectAndServiceName ¶ added in v1.2.1
func (t *TopicCache) DeleteByProjectAndServiceName(projectName, serviceName string)
DeleteByProjectAndServiceName deletes the cache value for a key which is a combination of Project and Service names.
func (*TopicCache) LoadByProjectAndServiceName ¶ added in v1.2.1
func (t *TopicCache) LoadByProjectAndServiceName(projectName, serviceName string) (map[string]aiven.KafkaTopic, bool)
LoadByProjectAndServiceName returns a list of Kafka Topics stored in the cache for a given Project and Service names, or nil if no value is present. The ok result indicates whether value was found in the map.
func (*TopicCache) LoadByTopicName ¶ added in v1.2.1
func (t *TopicCache) LoadByTopicName(projectName, serviceName, topicName string) (aiven.KafkaTopic, bool)
LoadByTopicName returns a list of Kafka Topics stored in the cache for a given Project and Service names, or nil if no value is present. The ok result indicates whether value was found in the map.
func (*TopicCache) StoreByProjectAndServiceName ¶ added in v1.2.1
func (t *TopicCache) StoreByProjectAndServiceName(projectName, serviceName string, list []*aiven.KafkaListTopic)
StoreByProjectAndServiceName sets the values for a Project name and Service name key.