boolindexed

package
v0.0.0-...-6b8f104 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Code generated by argen. DO NOT EDIT. This code was generated from a template.

Manual changes to this file may cause unexpected behavior in your application. Manual changes to this file will be overwritten if the code is regenerated.

Generate info: argen@v1.11.0-b (Commit: 6934fae2)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalFixtures

func MarshalFixtures(objs []*Boolindexed) ([]byte, error)

func PackKeyIndexCode

func PackKeyIndexCode(ctx context.Context, keys []string) ([][][]byte, error)

func PackKeyIndexInvisible

func PackKeyIndexInvisible(ctx context.Context, keys []bool) ([][][]byte, error)

func SelectByCodeMockerLogger

func SelectByCodeMockerLogger(keys []string, res BoolindexedList) func() (activerecord.MockerLogger, error)

func SelectByInvisibleMockerLogger

func SelectByInvisibleMockerLogger(keys []bool, res BoolindexedList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)

func SetFixtureUpdateOptions

func SetFixtureUpdateOptions(obj *Boolindexed, updateOptions []BoolindexedUpdateFixtureOptions)

func UnpackCode

func UnpackCode(r *bytes.Reader) (ret string, errRet error)

func UnpackInvisible

func UnpackInvisible(r *bytes.Reader) (ret bool, errRet error)

func UnpackKeyIndexCode

func UnpackKeyIndexCode(packedKeys [][][]byte) ([]string, error)

func UnpackKeyIndexInvisible

func UnpackKeyIndexInvisible(packedKeys [][][]byte) ([]bool, error)

Types

type Boolindexed

type Boolindexed struct {
	octopus.BaseField
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context) *Boolindexed

func NewFromBox

func NewFromBox(ctx context.Context, tuples []octopus.TupleData) ([]*Boolindexed, error)

func SelectByCode

func SelectByCode(ctx context.Context, key string) (*Boolindexed, error)

func SelectByCodes

func SelectByCodes(ctx context.Context, keys []string) ([]*Boolindexed, error)
	keysPacked := [][][]byte{}

	for _, key := range keys {
		keysField := [][]byte{}
		keysField = append(keysField, octopus.PackString([]byte{}, key, iproto.ModeDefault))
		keysPacked = append(keysPacked, keysField)
	}

	return keysPacked, nil
}

func SelectByInvisible

func SelectByInvisible(ctx context.Context, key bool, limiter activerecord.SelectorLimiter) ([]*Boolindexed, error)

func SelectByInvisibles

func SelectByInvisibles(ctx context.Context, keys []bool, limiter activerecord.SelectorLimiter) ([]*Boolindexed, error)
	keysPacked := [][][]byte{}

	for _, key := range keys {
		keysField := [][]byte{}
		keysField = append(keysField, iproto.PackUint8([]byte{}, octopus.BoolToUint(key), iproto.ModeDefault))
		keysPacked = append(keysPacked, keysField)
	}

	return keysPacked, nil
}

func SelectByPrimary

func SelectByPrimary(ctx context.Context, pk string) (*Boolindexed, error)

func TupleToStruct

func TupleToStruct(ctx context.Context, tuple octopus.TupleData) (*Boolindexed, error)

func UnmarshalDeleteFixtures

func UnmarshalDeleteFixtures(source []byte) []*Boolindexed

func UnmarshalFixtures

func UnmarshalFixtures(source []byte) []*Boolindexed

func UnmarshalInsertReplaceFixtures

func UnmarshalInsertReplaceFixtures(source []byte) []*Boolindexed

func UnmarshalUpdateFixtures

func UnmarshalUpdateFixtures(source []byte) []*Boolindexed

func (*Boolindexed) Delete

func (obj *Boolindexed) Delete(ctx context.Context) error

func (*Boolindexed) Equal

func (obj *Boolindexed) Equal(anotherObjI any) bool

func (*Boolindexed) GetCode

func (obj *Boolindexed) GetCode() string

func (*Boolindexed) GetInvisible

func (obj *Boolindexed) GetInvisible() bool

func (*Boolindexed) Insert

func (obj *Boolindexed) Insert(ctx context.Context) error

func (*Boolindexed) InsertOrReplace

func (obj *Boolindexed) InsertOrReplace(ctx context.Context) error

func (*Boolindexed) MockDelete

func (obj *Boolindexed) MockDelete(ctx context.Context) []byte

func (*Boolindexed) MockInsert

func (obj *Boolindexed) MockInsert(ctx context.Context) []byte

func (*Boolindexed) MockInsertOrReplace

func (obj *Boolindexed) MockInsertOrReplace(ctx context.Context) []byte

func (*Boolindexed) MockReplace

func (obj *Boolindexed) MockReplace(ctx context.Context) []byte

func (*Boolindexed) MockSelectByCodeRequest

func (obj *Boolindexed) MockSelectByCodeRequest(ctx context.Context) []byte

func (*Boolindexed) MockSelectByCodesRequest

func (obj *Boolindexed) MockSelectByCodesRequest(ctx context.Context, keys []string) []byte

func (*Boolindexed) MockSelectByInvisibleRequest

func (obj *Boolindexed) MockSelectByInvisibleRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte

func (*Boolindexed) MockSelectByInvisiblesRequest

func (obj *Boolindexed) MockSelectByInvisiblesRequest(ctx context.Context, keys []bool, limiter activerecord.SelectorLimiter) []byte

func (*Boolindexed) MockSelectResponse

func (obj *Boolindexed) MockSelectResponse() ([][]byte, error)

func (*Boolindexed) MockUpdate

func (obj *Boolindexed) MockUpdate(ctx context.Context) []byte

func (*Boolindexed) Primary

func (obj *Boolindexed) Primary() string

func (*Boolindexed) PrimaryString

func (obj *Boolindexed) PrimaryString() string

func (*Boolindexed) Replace

func (obj *Boolindexed) Replace(ctx context.Context) error

func (*Boolindexed) RepoSelector

func (obj *Boolindexed) RepoSelector(ctx context.Context) (any, error)

func (*Boolindexed) SetCode

func (obj *Boolindexed) SetCode(Code string) error

func (*Boolindexed) SetInvisible

func (obj *Boolindexed) SetInvisible(Invisible bool) error

func (*Boolindexed) Update

func (obj *Boolindexed) Update(ctx context.Context) error

type BoolindexedFT

type BoolindexedFT struct {
	Code      string `yaml:"code" mapstructure:"code" json:"code"`
	Invisible bool   `yaml:"invisible" mapstructure:"invisible" json:"invisible"`
}

func UnmarshalFixturesFromJSON

func UnmarshalFixturesFromJSON(source []byte) ([]BoolindexedFT, error)

type BoolindexedInvisibleUpdateFixtureOption

type BoolindexedInvisibleUpdateFixtureOption struct {
	Value bool `yaml:"set_value"`
}

type BoolindexedList

type BoolindexedList []*Boolindexed

func (BoolindexedList) String

func (objs BoolindexedList) String() string

type BoolindexedUpdateFT

type BoolindexedUpdateFT struct {
	Code string `yaml:"code"`

	UpdateOptions []BoolindexedUpdateFixtureOptions `yaml:"update_options"`
}

type BoolindexedUpdateFixtureOptions

type BoolindexedUpdateFixtureOptions struct {
	Invisible *BoolindexedInvisibleUpdateFixtureOption `yaml:"invisible"`
}

Jump to

Keyboard shortcuts

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