methodfixture

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: 0BSD Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by kvo. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Earned = kvo.NewSignedProp[int64](Schema, 1, "earned", kvo.TInt64)
View Source
var Expired = kvo.NewSignedProp[int64](Schema, 3, "expired", kvo.TInt64)
View Source
var Model = kvo.NewModel(Schema, kvo.NewEntityType(Schema, "Customer", reflect.TypeFor[Row]()), func(b *kvo.ModelBuilder) {
	b.Prop(Earned)
	b.Prop(Redeemed)
	b.Prop(Expired)
	b.Prop(Name)
})
View Source
var OtherModel = kvo.NewModel(Schema, kvo.NewEntityType(Schema, "Other"), func(b *kvo.ModelBuilder) {
	b.Prop(Earned)
	b.Prop(Redeemed)
	b.Prop(Expired)
	b.Prop(Name)
})
View Source
var Redeemed = kvo.NewSignedProp[int64](Schema, 2, "redeemed", kvo.TInt64)
View Source
var Schema = kvo.NewSchema()
View Source
var Static = kvo.Generated{Fingerprint: "833ac4e7f31cc099a4fdfec813d68b15045a75380095a3e652bd7f9a82801071",
	Fields: map[reflect.Type]*nativebind.GeneratedFields{
		reflect.TypeFor[Row](): &StaticFields0,
	},
	Encode: func(dst []byte, row any, layout row2.Layout) []byte {
		w := row2.AcquireWriter(dst)
		defer w.Release()
		StaticW0(w, *row.(*Row), 0, "", layout, false, 0)
		return w.BytesWritten()
	},
	Decode: func(raw []byte, row any) { *row.(*Row) = StaticR0(values.Bytes(raw), true, 0) }}
View Source
var StaticFields0 = nativebind.GeneratedFields{Type: reflect.TypeFor[Row](), New: func() unsafe.Pointer { return unsafe.Pointer(new(Row)) }, Fields: []nativebind.GeneratedField{
	{Name: "Name", Get: func(p unsafe.Pointer) values.Value { return values.String(string((*(Row))(p).Name)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Name = string(v.AsString()) }},
	{Name: "Earned", Get: func(p unsafe.Pointer) values.Value { return values.Int(int64((*(Row))(p).Earned)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Earned = int64(v.AsInt()) }},
	{Name: "Redeemed", Get: func(p unsafe.Pointer) values.Value { return values.Int(int64((*(Row))(p).Redeemed)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Redeemed = int64(v.AsInt()) }},
	{Name: "Expired", Get: func(p unsafe.Pointer) values.Value { return values.Int(int64((*(Row))(p).Expired)) }, Set: func(p unsafe.Pointer, v values.Value) { (*(Row))(p).Expired = int64(v.AsInt()) }},
}}

Functions

func Customer_Add

func Customer_Add(r kvo.Record, n Delta) int64

func Customer_Balance

func Customer_Balance(r kvo.Record) int64

func Customer_Check

func Customer_Check(r kvo.Record, enabled bool) (bool, uint16)

func Customer_Fail

func Customer_Fail(r kvo.Record)

func Customer_Label

func Customer_Label(r kvo.Record, prefix string) string

func Customer_Name

func Customer_Name(r kvo.Record) string

func Customer_Observe

func Customer_Observe(r kvo.Record)

func Customer_Summary

func Customer_Summary(r kvo.Record, n int8, f float32) (int64, float32)

func Customer_WithFlag

func Customer_WithFlag(r kvo.Record, flag kvo.PropFlag) int64

func Methods

func Methods() []evmbind.Method

func StaticR1

func StaticR1(v values.Value, present bool, d int) (out int64)

func StaticR2

func StaticR2(v values.Value, present bool, d int) (out string)

func StaticW0

func StaticW0(w *row2.Writer, v Row, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW1

func StaticW1(w *row2.Writer, v int64, k uint64, s string, layout row2.Layout, keep bool, d int)

func StaticW2

func StaticW2(w *row2.Writer, v string, k uint64, s string, layout row2.Layout, keep bool, d int)

Types

type Delta

type Delta int64

type Row

type Row struct {
	Name     string `msgpack:"n,omitempty" kvo:"name"`
	Earned   int64  `msgpack:"e" kvo:"earned"`
	Redeemed int64  `msgpack:"r" kvo:"redeemed"`
	Expired  int64  `msgpack:"x" kvo:"expired"`
}

func StaticR0

func StaticR0(v values.Value, present bool, d int) (out Row)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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