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 ¶
- func MarshalFixtures(objs []*Boolindexed) ([]byte, error)
- func PackKeyIndexCode(ctx context.Context, keys []string) ([][][]byte, error)
- func PackKeyIndexInvisible(ctx context.Context, keys []bool) ([][][]byte, error)
- func SelectByCodeMockerLogger(keys []string, res BoolindexedList) func() (activerecord.MockerLogger, error)
- func SelectByInvisibleMockerLogger(keys []bool, res BoolindexedList, limiter activerecord.SelectorLimiter) func() (activerecord.MockerLogger, error)
- func SetFixtureUpdateOptions(obj *Boolindexed, updateOptions []BoolindexedUpdateFixtureOptions)
- func UnpackCode(r *bytes.Reader) (ret string, errRet error)
- func UnpackInvisible(r *bytes.Reader) (ret bool, errRet error)
- func UnpackKeyIndexCode(packedKeys [][][]byte) ([]string, error)
- func UnpackKeyIndexInvisible(packedKeys [][][]byte) ([]bool, error)
- type Boolindexed
- func New(ctx context.Context) *Boolindexed
- func NewFromBox(ctx context.Context, tuples []octopus.TupleData) ([]*Boolindexed, error)
- func SelectByCode(ctx context.Context, key string) (*Boolindexed, error)
- func SelectByCodes(ctx context.Context, keys []string) ([]*Boolindexed, error)
- func SelectByInvisible(ctx context.Context, key bool, limiter activerecord.SelectorLimiter) ([]*Boolindexed, error)
- func SelectByInvisibles(ctx context.Context, keys []bool, limiter activerecord.SelectorLimiter) ([]*Boolindexed, error)
- func SelectByPrimary(ctx context.Context, pk string) (*Boolindexed, error)
- func TupleToStruct(ctx context.Context, tuple octopus.TupleData) (*Boolindexed, error)
- func UnmarshalDeleteFixtures(source []byte) []*Boolindexed
- func UnmarshalFixtures(source []byte) []*Boolindexed
- func UnmarshalInsertReplaceFixtures(source []byte) []*Boolindexed
- func UnmarshalUpdateFixtures(source []byte) []*Boolindexed
- func (obj *Boolindexed) Delete(ctx context.Context) error
- func (obj *Boolindexed) Equal(anotherObjI any) bool
- func (obj *Boolindexed) GetCode() string
- func (obj *Boolindexed) GetInvisible() bool
- func (obj *Boolindexed) Insert(ctx context.Context) error
- func (obj *Boolindexed) InsertOrReplace(ctx context.Context) error
- func (obj *Boolindexed) MockDelete(ctx context.Context) []byte
- func (obj *Boolindexed) MockInsert(ctx context.Context) []byte
- func (obj *Boolindexed) MockInsertOrReplace(ctx context.Context) []byte
- func (obj *Boolindexed) MockReplace(ctx context.Context) []byte
- func (obj *Boolindexed) MockSelectByCodeRequest(ctx context.Context) []byte
- func (obj *Boolindexed) MockSelectByCodesRequest(ctx context.Context, keys []string) []byte
- func (obj *Boolindexed) MockSelectByInvisibleRequest(ctx context.Context, limiter activerecord.SelectorLimiter) []byte
- func (obj *Boolindexed) MockSelectByInvisiblesRequest(ctx context.Context, keys []bool, limiter activerecord.SelectorLimiter) []byte
- func (obj *Boolindexed) MockSelectResponse() ([][]byte, error)
- func (obj *Boolindexed) MockUpdate(ctx context.Context) []byte
- func (obj *Boolindexed) Primary() string
- func (obj *Boolindexed) PrimaryString() string
- func (obj *Boolindexed) Replace(ctx context.Context) error
- func (obj *Boolindexed) RepoSelector(ctx context.Context) (any, error)
- func (obj *Boolindexed) SetCode(Code string) error
- func (obj *Boolindexed) SetInvisible(Invisible bool) error
- func (obj *Boolindexed) Update(ctx context.Context) error
- type BoolindexedFT
- type BoolindexedInvisibleUpdateFixtureOption
- type BoolindexedList
- type BoolindexedUpdateFT
- type BoolindexedUpdateFixtureOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalFixtures ¶
func MarshalFixtures(objs []*Boolindexed) ([]byte, error)
func PackKeyIndexCode ¶
func PackKeyIndexInvisible ¶
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 UnpackKeyIndexCode ¶
func UnpackKeyIndexInvisible ¶
Types ¶
type Boolindexed ¶
func New ¶
func New(ctx context.Context) *Boolindexed
func NewFromBox ¶
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 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) 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) 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) 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
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"`
}