Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bucketize ¶ added in v1.3.1
Bucketize will put the value into the correct bucket. It is expected that the buckets are already sorted in increasing order and non-empty
func LinearBuckets ¶ added in v1.4.1
LinearBuckets returns an evenly distributed range of buckets in the closed interval [min...max]. The min and max count toward the bucket count since they are included in the range.
Types ¶
type ResolutionMetadata ¶
type ResolutionMetadata struct {
// contains filtered or unexported fields
}
ResolutionMetadata stores the number of times database relationship are resolved. It also returns number of times the database is read from and written to.
func NewResolutionMetadata ¶
func NewResolutionMetadata() *ResolutionMetadata
NewResolutionMetadata will return a new resolution metadata
func (*ResolutionMetadata) AddResolve ¶
func (r *ResolutionMetadata) AddResolve() uint32
AddResolve increments the number of times database are resolved for relationship
func (*ResolutionMetadata) Fork ¶
func (r *ResolutionMetadata) Fork() *ResolutionMetadata
Fork will create a new set of resolveCalls but share the same dbCall
func (*ResolutionMetadata) GetResolve ¶
func (r *ResolutionMetadata) GetResolve() uint32
GetResolve returns the number of times database relationship are resolved