Documentation ¶
Index ¶
- func GetStringValueFromMetadata(meta map[string]interface{}, key string) (string, error)
- type Key
- type Stats
- func (s *Stats) DecrementCounter(nodeID, rType, version, podID, key string, decrement int64)
- func (s *Stats) DeleteKeysByFilter(filters ...string)
- func (s *Stats) FilterKeys(filters ...string) map[string]kv.Item
- func (s *Stats) GetCounter(nodeID, rtype, version, podID, key string) (int64, error)
- func (s *Stats) GetPercentageFailing(nodeID, rType, version string) float64
- func (s *Stats) GetString(nodeID, rtype, version, podID, key string) (string, error)
- func (s *Stats) GetSubscribedPods(nodeID, rType string) []string
- func (s *Stats) IncrementCounter(nodeID, rType, version, podID, key string, increment int64)
- func (s *Stats) ReportACK(nodeID, rType, version, podID string)
- func (s *Stats) ReportNACK(nodeID, rType, podID, nonce string) (int64, error)
- func (s *Stats) ReportRequest(nodeID, rType, podID string, streamID int64)
- func (s *Stats) ReportStreamClosed(streamID int64)
- func (s *Stats) SetString(nodeID, rType, version, podID, key, value string)
- func (s *Stats) SetStringWithExpiration(nodeID, rType, version, podID, key, value string, expiration time.Duration)
- func (s *Stats) WriteResponseNonce(nodeID, rType, version, podID, nonce string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
func NewKeyFromString ¶
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
The format of the keys in the cache is
<node-id>:<version>:<resource-type>:<pod-id>:<key>
Note that though currently revision and version have the same value for all types (with the exeption of secrets), this might change in the future and have each resource type follow its own versioning
func (*Stats) DecrementCounter ¶
func (*Stats) DeleteKeysByFilter ¶
func (*Stats) GetCounter ¶
func (*Stats) GetPercentageFailing ¶
func (*Stats) GetSubscribedPods ¶
func (*Stats) IncrementCounter ¶
func (*Stats) ReportNACK ¶
func (*Stats) ReportRequest ¶
func (*Stats) ReportStreamClosed ¶
func (*Stats) SetStringWithExpiration ¶
func (*Stats) WriteResponseNonce ¶
Click to show internal directories.
Click to hide internal directories.