structs

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

This is a test package.

Index

Constants

This section is empty.

Variables

View Source
var DateFieldsPool = sync.Pool{New: func() interface{} { return &DateFields{} }}
View Source
var InnerPool = sync.Pool{New: func() any { return new(Inner) }}
View Source
var Innerp_Pool = sync.Pool{New: func() any { return new(Inner) }}
View Source
var TtestPool = sync.Pool{New: func() any { return new(Ttest) }}
View Source
var UnlockPool = sync.Pool{New: func() any { return new(Unlock) }}

Functions

This section is empty.

Types

type DateFields

type DateFields struct {
	CreateAt time.Time `json:"create_at" bson:"create_at"`
	UpdateAt time.Time `json:"update_at" bson:"update_at"`
}

+k8s:deepcopy-gen=false

func (*DateFields) DeepCopy

func (this_ *DateFields) DeepCopy() *DateFields

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DateFields.

func (*DateFields) DeepCopyInto

func (this_ *DateFields) DeepCopyInto(out *DateFields)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DateFields) Reset

func (this_ *DateFields) Reset()

type Inner

type Inner struct {
	Byte byte
	// Int8    int8 //TODO: int8 becomes byte in SnippetWriter
	Int16   int16
	Int32   int32
	Int64   int64
	Uint8   uint8
	Uint16  uint16
	Uint32  uint32
	Uint64  uint64
	Float32 float32
	Float64 float64
	String  []string
}

func (*Inner) DeepCopy

func (in *Inner) DeepCopy() *Inner

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inner.

func (*Inner) DeepCopyInto

func (in *Inner) DeepCopyInto(out *Inner)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Inner) Reset

func (in *Inner) Reset()

Reset puts the given value back into the pool.

func (*Inner) ResetNoSelf

func (in *Inner) ResetNoSelf()

ResetNoSelf puts the given field value back into the pool.

func (*Inner) ResetOnlySelf added in v0.0.2

func (in *Inner) ResetOnlySelf()

ResetOnlySelf puts the given value back into the pool.

type Ttest

type Ttest struct {
	Inner1 *Inner
	Inner2 Inner
}

func (*Ttest) DeepCopy

func (in *Ttest) DeepCopy() *Ttest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ttest.

func (*Ttest) DeepCopyInto

func (in *Ttest) DeepCopyInto(out *Ttest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Ttest) Reset

func (in *Ttest) Reset()

Reset puts the given value back into the pool.

func (*Ttest) ResetNoSelf

func (in *Ttest) ResetNoSelf()

ResetNoSelf puts the given field value back into the pool.

func (*Ttest) ResetOnlySelf added in v0.0.2

func (in *Ttest) ResetOnlySelf()

ResetOnlySelf puts the given value back into the pool.

type Unlock

type Unlock struct {
	RoleId     int64                     `json:"role_id" bson:"_id"`
	Progress   map[int32]map[int64]int64 `json:"progress" bson:"progress"` // map[条件枚举][条件目标id]进度
	Unlocked   map[int32]map[int64]bool  `json:"unlocked" bson:"unlocked"` // map[解锁目标枚举][解锁目标id]是否已解锁
	DateFields `json:",inline" bson:",inline"`
}

func (*Unlock) DeepCopy

func (in *Unlock) DeepCopy() *Unlock

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Unlock.

func (*Unlock) DeepCopyInto

func (in *Unlock) DeepCopyInto(out *Unlock)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Unlock) Reset

func (in *Unlock) Reset()

Reset puts the given value back into the pool.

func (*Unlock) ResetNoSelf

func (in *Unlock) ResetNoSelf()

ResetNoSelf puts the given field value back into the pool.

func (*Unlock) ResetOnlySelf added in v0.0.2

func (in *Unlock) ResetOnlySelf()

ResetOnlySelf puts the given value back into the pool.

Jump to

Keyboard shortcuts

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