utils

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

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

Jump to

Keyboard shortcuts

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