cscnt

package
v0.0.0-...-c2e30b8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: NIST-PD-fallback Imports: 3 Imported by: 0

Documentation

Overview

Package cscnt provides Content Store counters.

Index

Constants

This section is empty.

Variables

View Source
var GqlCountersType = graphql.NewObject(graphql.ObjectConfig{
	Name:   "CsCounters",
	Fields: graphql.BindFields(Counters{}),
})

GqlCountersType is the GraphQL type for Counters.

Functions

This section is empty.

Types

type Counters

type Counters struct {
	NHits            uint64 `json:"nHits"`            // lookup hits
	NMisses          uint64 `json:"nMisses"`          // lookup misses
	DirectEntries    int    `json:"directEntries"`    // direct entries
	DirectCapacity   int    `json:"directCapacity"`   // direct capacity
	IndirectEntries  int    `json:"indirectEntries"`  // indirect entries
	IndirectCapacity int    `json:"indirectCapacity"` // indirect capacity
}

Counters contains CS counters.

func ReadCounters

func ReadCounters(p *pit.Pit, c *cs.Cs) (cnt Counters)

ReadCounters retrieves CS counters from PIT and CS.

Jump to

Keyboard shortcuts

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