datamod

package
v0.0.0-...-bd01111 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CounterDefaultKey

func CounterDefaultKey() []byte

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(ds lib.Datastore) *Counter

func NewCounterFromSlot

func NewCounterFromSlot(dsSlot lib.DatastoreSlot) *Counter

func (*Counter) Get

func (m *Counter) Get() *CounterRow

type CounterRow

type CounterRow struct {
	lib.DatastoreStruct
}

func NewCounterRow

func NewCounterRow(dsSlot lib.DatastoreSlot) *CounterRow

func (*CounterRow) Get

func (v *CounterRow) Get() (
	value int16,
)

func (*CounterRow) GetValue

func (v *CounterRow) GetValue() int16

func (*CounterRow) Set

func (v *CounterRow) Set(
	value int16,
)

func (*CounterRow) SetValue

func (v *CounterRow) SetValue(value int16)

Jump to

Keyboard shortcuts

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