increment

package
v25.0.0-shingles2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package increment builds a tool that retrieves a value for UID=0x01, and increments it by 1. If successful, it prints out the incremented value. It assumes that it has access to UID=0x01, and that `val` predicate is of type int.

Index

Constants

This section is empty.

Variables

View Source
var Increment x.SubCommand

Increment is the sub-command invoked when calling "dgraph increment".

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Uid string `json:"uid"`
	Val int    `json:"val"`
	// contains filtered or unexported fields
}

Counter stores information about the value being incremented by this tool.

Jump to

Keyboard shortcuts

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