Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Beacon
- type BeaconClient
- func (c *BeaconClient) Create() *BeaconCreate
- func (c *BeaconClient) CreateBulk(builders ...*BeaconCreate) *BeaconCreateBulk
- func (c *BeaconClient) Delete() *BeaconDelete
- func (c *BeaconClient) DeleteOne(b *Beacon) *BeaconDeleteOne
- func (c *BeaconClient) DeleteOneID(id int) *BeaconDeleteOne
- func (c *BeaconClient) Get(ctx context.Context, id int) (*Beacon, error)
- func (c *BeaconClient) GetX(ctx context.Context, id int) *Beacon
- func (c *BeaconClient) Hooks() []Hook
- func (c *BeaconClient) Intercept(interceptors ...Interceptor)
- func (c *BeaconClient) Interceptors() []Interceptor
- func (c *BeaconClient) MapCreateBulk(slice any, setFunc func(*BeaconCreate, int)) *BeaconCreateBulk
- func (c *BeaconClient) Query() *BeaconQuery
- func (c *BeaconClient) QueryGroup(b *Beacon) *GroupQuery
- func (c *BeaconClient) QueryListener(b *Beacon) *ListenerQuery
- func (c *BeaconClient) QueryTask(b *Beacon) *TaskQuery
- func (c *BeaconClient) Update() *BeaconUpdate
- func (c *BeaconClient) UpdateOne(b *Beacon) *BeaconUpdateOne
- func (c *BeaconClient) UpdateOneID(id int) *BeaconUpdateOne
- func (c *BeaconClient) Use(hooks ...Hook)
- type BeaconCreate
- func (bc *BeaconCreate) AddGroup(g ...*Group) *BeaconCreate
- func (bc *BeaconCreate) AddGroupIDs(ids ...int) *BeaconCreate
- func (bc *BeaconCreate) AddTask(t ...*Task) *BeaconCreate
- func (bc *BeaconCreate) AddTaskIDs(ids ...int) *BeaconCreate
- func (bc *BeaconCreate) Exec(ctx context.Context) error
- func (bc *BeaconCreate) ExecX(ctx context.Context)
- func (bc *BeaconCreate) Mutation() *BeaconMutation
- func (bc *BeaconCreate) Save(ctx context.Context) (*Beacon, error)
- func (bc *BeaconCreate) SaveX(ctx context.Context) *Beacon
- func (bc *BeaconCreate) SetArch(da defaults.BeaconArch) *BeaconCreate
- func (bc *BeaconCreate) SetBid(u uint32) *BeaconCreate
- func (bc *BeaconCreate) SetCaps(u uint32) *BeaconCreate
- func (bc *BeaconCreate) SetColor(u uint32) *BeaconCreate
- func (bc *BeaconCreate) SetCreatedAt(t time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetDeletedAt(t time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetDomain(s string) *BeaconCreate
- func (bc *BeaconCreate) SetExtIP(t types.Inet) *BeaconCreate
- func (bc *BeaconCreate) SetFirst(t time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetHostname(s string) *BeaconCreate
- func (bc *BeaconCreate) SetIntIP(t types.Inet) *BeaconCreate
- func (bc *BeaconCreate) SetJitter(u uint8) *BeaconCreate
- func (bc *BeaconCreate) SetLast(t time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetListener(l *Listener) *BeaconCreate
- func (bc *BeaconCreate) SetListenerID(i int) *BeaconCreate
- func (bc *BeaconCreate) SetNillableColor(u *uint32) *BeaconCreate
- func (bc *BeaconCreate) SetNillableCreatedAt(t *time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetNillableDeletedAt(t *time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetNillableDomain(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNillableExtIP(t *types.Inet) *BeaconCreate
- func (bc *BeaconCreate) SetNillableFirst(t *time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetNillableHostname(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNillableIntIP(t *types.Inet) *BeaconCreate
- func (bc *BeaconCreate) SetNillableLast(t *time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetNillableNote(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNillableOsMeta(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNillablePid(u *uint32) *BeaconCreate
- func (bc *BeaconCreate) SetNillablePrivileged(b *bool) *BeaconCreate
- func (bc *BeaconCreate) SetNillableProcessName(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNillableUpdatedAt(t *time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetNillableUsername(s *string) *BeaconCreate
- func (bc *BeaconCreate) SetNote(s string) *BeaconCreate
- func (bc *BeaconCreate) SetOs(do defaults.BeaconOS) *BeaconCreate
- func (bc *BeaconCreate) SetOsMeta(s string) *BeaconCreate
- func (bc *BeaconCreate) SetPid(u uint32) *BeaconCreate
- func (bc *BeaconCreate) SetPrivileged(b bool) *BeaconCreate
- func (bc *BeaconCreate) SetProcessName(s string) *BeaconCreate
- func (bc *BeaconCreate) SetSleep(u uint32) *BeaconCreate
- func (bc *BeaconCreate) SetUpdatedAt(t time.Time) *BeaconCreate
- func (bc *BeaconCreate) SetUsername(s string) *BeaconCreate
- type BeaconCreateBulk
- type BeaconDelete
- type BeaconDeleteOne
- type BeaconEdges
- type BeaconGroupBy
- func (bgb *BeaconGroupBy) Aggregate(fns ...AggregateFunc) *BeaconGroupBy
- func (s *BeaconGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BeaconGroupBy) BoolX(ctx context.Context) bool
- func (s *BeaconGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BeaconGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BeaconGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BeaconGroupBy) Float64X(ctx context.Context) float64
- func (s *BeaconGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BeaconGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BeaconGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BeaconGroupBy) IntX(ctx context.Context) int
- func (s *BeaconGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BeaconGroupBy) IntsX(ctx context.Context) []int
- func (bgb *BeaconGroupBy) Scan(ctx context.Context, v any) error
- func (s *BeaconGroupBy) ScanX(ctx context.Context, v any)
- func (s *BeaconGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BeaconGroupBy) StringX(ctx context.Context) string
- func (s *BeaconGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BeaconGroupBy) StringsX(ctx context.Context) []string
- type BeaconMutation
- func (m *BeaconMutation) AddBid(u int32)
- func (m *BeaconMutation) AddCaps(u int32)
- func (m *BeaconMutation) AddColor(u int32)
- func (m *BeaconMutation) AddField(name string, value ent.Value) error
- func (m *BeaconMutation) AddGroupIDs(ids ...int)
- func (m *BeaconMutation) AddJitter(u int8)
- func (m *BeaconMutation) AddPid(u int32)
- func (m *BeaconMutation) AddSleep(u int32)
- func (m *BeaconMutation) AddTaskIDs(ids ...int)
- func (m *BeaconMutation) AddedBid() (r int32, exists bool)
- func (m *BeaconMutation) AddedCaps() (r int32, exists bool)
- func (m *BeaconMutation) AddedColor() (r int32, exists bool)
- func (m *BeaconMutation) AddedEdges() []string
- func (m *BeaconMutation) AddedField(name string) (ent.Value, bool)
- func (m *BeaconMutation) AddedFields() []string
- func (m *BeaconMutation) AddedIDs(name string) []ent.Value
- func (m *BeaconMutation) AddedJitter() (r int8, exists bool)
- func (m *BeaconMutation) AddedPid() (r int32, exists bool)
- func (m *BeaconMutation) AddedSleep() (r int32, exists bool)
- func (m *BeaconMutation) Arch() (r defaults.BeaconArch, exists bool)
- func (m *BeaconMutation) Bid() (r uint32, exists bool)
- func (m *BeaconMutation) Caps() (r uint32, exists bool)
- func (m *BeaconMutation) ClearDeletedAt()
- func (m *BeaconMutation) ClearDomain()
- func (m *BeaconMutation) ClearEdge(name string) error
- func (m *BeaconMutation) ClearExtIP()
- func (m *BeaconMutation) ClearField(name string) error
- func (m *BeaconMutation) ClearGroup()
- func (m *BeaconMutation) ClearHostname()
- func (m *BeaconMutation) ClearIntIP()
- func (m *BeaconMutation) ClearListener()
- func (m *BeaconMutation) ClearNote()
- func (m *BeaconMutation) ClearOsMeta()
- func (m *BeaconMutation) ClearPid()
- func (m *BeaconMutation) ClearPrivileged()
- func (m *BeaconMutation) ClearProcessName()
- func (m *BeaconMutation) ClearTask()
- func (m *BeaconMutation) ClearUsername()
- func (m *BeaconMutation) ClearedEdges() []string
- func (m *BeaconMutation) ClearedFields() []string
- func (m BeaconMutation) Client() *Client
- func (m *BeaconMutation) Color() (r uint32, exists bool)
- func (m *BeaconMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BeaconMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BeaconMutation) DeletedAtCleared() bool
- func (m *BeaconMutation) Domain() (r string, exists bool)
- func (m *BeaconMutation) DomainCleared() bool
- func (m *BeaconMutation) EdgeCleared(name string) bool
- func (m *BeaconMutation) ExtIP() (r types.Inet, exists bool)
- func (m *BeaconMutation) ExtIPCleared() bool
- func (m *BeaconMutation) Field(name string) (ent.Value, bool)
- func (m *BeaconMutation) FieldCleared(name string) bool
- func (m *BeaconMutation) Fields() []string
- func (m *BeaconMutation) First() (r time.Time, exists bool)
- func (m *BeaconMutation) GroupCleared() bool
- func (m *BeaconMutation) GroupIDs() (ids []int)
- func (m *BeaconMutation) Hostname() (r string, exists bool)
- func (m *BeaconMutation) HostnameCleared() bool
- func (m *BeaconMutation) ID() (id int, exists bool)
- func (m *BeaconMutation) IDs(ctx context.Context) ([]int, error)
- func (m *BeaconMutation) IntIP() (r types.Inet, exists bool)
- func (m *BeaconMutation) IntIPCleared() bool
- func (m *BeaconMutation) Jitter() (r uint8, exists bool)
- func (m *BeaconMutation) Last() (r time.Time, exists bool)
- func (m *BeaconMutation) ListenerCleared() bool
- func (m *BeaconMutation) ListenerID() (r int, exists bool)
- func (m *BeaconMutation) ListenerIDs() (ids []int)
- func (m *BeaconMutation) Note() (r string, exists bool)
- func (m *BeaconMutation) NoteCleared() bool
- func (m *BeaconMutation) OldArch(ctx context.Context) (v defaults.BeaconArch, err error)
- func (m *BeaconMutation) OldBid(ctx context.Context) (v uint32, err error)
- func (m *BeaconMutation) OldCaps(ctx context.Context) (v uint32, err error)
- func (m *BeaconMutation) OldColor(ctx context.Context) (v uint32, err error)
- func (m *BeaconMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BeaconMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *BeaconMutation) OldDomain(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) OldExtIP(ctx context.Context) (v types.Inet, err error)
- func (m *BeaconMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BeaconMutation) OldFirst(ctx context.Context) (v time.Time, err error)
- func (m *BeaconMutation) OldHostname(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) OldIntIP(ctx context.Context) (v types.Inet, err error)
- func (m *BeaconMutation) OldJitter(ctx context.Context) (v uint8, err error)
- func (m *BeaconMutation) OldLast(ctx context.Context) (v time.Time, err error)
- func (m *BeaconMutation) OldListenerID(ctx context.Context) (v int, err error)
- func (m *BeaconMutation) OldNote(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) OldOs(ctx context.Context) (v defaults.BeaconOS, err error)
- func (m *BeaconMutation) OldOsMeta(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) OldPid(ctx context.Context) (v uint32, err error)
- func (m *BeaconMutation) OldPrivileged(ctx context.Context) (v bool, err error)
- func (m *BeaconMutation) OldProcessName(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) OldSleep(ctx context.Context) (v uint32, err error)
- func (m *BeaconMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BeaconMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *BeaconMutation) Op() Op
- func (m *BeaconMutation) Os() (r defaults.BeaconOS, exists bool)
- func (m *BeaconMutation) OsMeta() (r string, exists bool)
- func (m *BeaconMutation) OsMetaCleared() bool
- func (m *BeaconMutation) Pid() (r uint32, exists bool)
- func (m *BeaconMutation) PidCleared() bool
- func (m *BeaconMutation) Privileged() (r bool, exists bool)
- func (m *BeaconMutation) PrivilegedCleared() bool
- func (m *BeaconMutation) ProcessName() (r string, exists bool)
- func (m *BeaconMutation) ProcessNameCleared() bool
- func (m *BeaconMutation) RemoveGroupIDs(ids ...int)
- func (m *BeaconMutation) RemoveTaskIDs(ids ...int)
- func (m *BeaconMutation) RemovedEdges() []string
- func (m *BeaconMutation) RemovedGroupIDs() (ids []int)
- func (m *BeaconMutation) RemovedIDs(name string) []ent.Value
- func (m *BeaconMutation) RemovedTaskIDs() (ids []int)
- func (m *BeaconMutation) ResetArch()
- func (m *BeaconMutation) ResetBid()
- func (m *BeaconMutation) ResetCaps()
- func (m *BeaconMutation) ResetColor()
- func (m *BeaconMutation) ResetCreatedAt()
- func (m *BeaconMutation) ResetDeletedAt()
- func (m *BeaconMutation) ResetDomain()
- func (m *BeaconMutation) ResetEdge(name string) error
- func (m *BeaconMutation) ResetExtIP()
- func (m *BeaconMutation) ResetField(name string) error
- func (m *BeaconMutation) ResetFirst()
- func (m *BeaconMutation) ResetGroup()
- func (m *BeaconMutation) ResetHostname()
- func (m *BeaconMutation) ResetIntIP()
- func (m *BeaconMutation) ResetJitter()
- func (m *BeaconMutation) ResetLast()
- func (m *BeaconMutation) ResetListener()
- func (m *BeaconMutation) ResetListenerID()
- func (m *BeaconMutation) ResetNote()
- func (m *BeaconMutation) ResetOs()
- func (m *BeaconMutation) ResetOsMeta()
- func (m *BeaconMutation) ResetPid()
- func (m *BeaconMutation) ResetPrivileged()
- func (m *BeaconMutation) ResetProcessName()
- func (m *BeaconMutation) ResetSleep()
- func (m *BeaconMutation) ResetTask()
- func (m *BeaconMutation) ResetUpdatedAt()
- func (m *BeaconMutation) ResetUsername()
- func (m *BeaconMutation) SetArch(da defaults.BeaconArch)
- func (m *BeaconMutation) SetBid(u uint32)
- func (m *BeaconMutation) SetCaps(u uint32)
- func (m *BeaconMutation) SetColor(u uint32)
- func (m *BeaconMutation) SetCreatedAt(t time.Time)
- func (m *BeaconMutation) SetDeletedAt(t time.Time)
- func (m *BeaconMutation) SetDomain(s string)
- func (m *BeaconMutation) SetExtIP(t types.Inet)
- func (m *BeaconMutation) SetField(name string, value ent.Value) error
- func (m *BeaconMutation) SetFirst(t time.Time)
- func (m *BeaconMutation) SetHostname(s string)
- func (m *BeaconMutation) SetIntIP(t types.Inet)
- func (m *BeaconMutation) SetJitter(u uint8)
- func (m *BeaconMutation) SetLast(t time.Time)
- func (m *BeaconMutation) SetListenerID(i int)
- func (m *BeaconMutation) SetNote(s string)
- func (m *BeaconMutation) SetOp(op Op)
- func (m *BeaconMutation) SetOs(do defaults.BeaconOS)
- func (m *BeaconMutation) SetOsMeta(s string)
- func (m *BeaconMutation) SetPid(u uint32)
- func (m *BeaconMutation) SetPrivileged(b bool)
- func (m *BeaconMutation) SetProcessName(s string)
- func (m *BeaconMutation) SetSleep(u uint32)
- func (m *BeaconMutation) SetUpdatedAt(t time.Time)
- func (m *BeaconMutation) SetUsername(s string)
- func (m *BeaconMutation) Sleep() (r uint32, exists bool)
- func (m *BeaconMutation) TaskCleared() bool
- func (m *BeaconMutation) TaskIDs() (ids []int)
- func (m BeaconMutation) Tx() (*Tx, error)
- func (m *BeaconMutation) Type() string
- func (m *BeaconMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BeaconMutation) Username() (r string, exists bool)
- func (m *BeaconMutation) UsernameCleared() bool
- func (m *BeaconMutation) Where(ps ...predicate.Beacon)
- func (m *BeaconMutation) WhereP(ps ...func(*sql.Selector))
- type BeaconQuery
- func (bq *BeaconQuery) Aggregate(fns ...AggregateFunc) *BeaconSelect
- func (bq *BeaconQuery) All(ctx context.Context) ([]*Beacon, error)
- func (bq *BeaconQuery) AllX(ctx context.Context) []*Beacon
- func (bq *BeaconQuery) Clone() *BeaconQuery
- func (bq *BeaconQuery) Count(ctx context.Context) (int, error)
- func (bq *BeaconQuery) CountX(ctx context.Context) int
- func (bq *BeaconQuery) Exist(ctx context.Context) (bool, error)
- func (bq *BeaconQuery) ExistX(ctx context.Context) bool
- func (bq *BeaconQuery) First(ctx context.Context) (*Beacon, error)
- func (bq *BeaconQuery) FirstID(ctx context.Context) (id int, err error)
- func (bq *BeaconQuery) FirstIDX(ctx context.Context) int
- func (bq *BeaconQuery) FirstX(ctx context.Context) *Beacon
- func (bq *BeaconQuery) ForShare(opts ...sql.LockOption) *BeaconQuery
- func (bq *BeaconQuery) ForUpdate(opts ...sql.LockOption) *BeaconQuery
- func (bq *BeaconQuery) GroupBy(field string, fields ...string) *BeaconGroupBy
- func (bq *BeaconQuery) IDs(ctx context.Context) (ids []int, err error)
- func (bq *BeaconQuery) IDsX(ctx context.Context) []int
- func (bq *BeaconQuery) Limit(limit int) *BeaconQuery
- func (bq *BeaconQuery) Offset(offset int) *BeaconQuery
- func (bq *BeaconQuery) Only(ctx context.Context) (*Beacon, error)
- func (bq *BeaconQuery) OnlyID(ctx context.Context) (id int, err error)
- func (bq *BeaconQuery) OnlyIDX(ctx context.Context) int
- func (bq *BeaconQuery) OnlyX(ctx context.Context) *Beacon
- func (bq *BeaconQuery) Order(o ...beacon.OrderOption) *BeaconQuery
- func (bq *BeaconQuery) QueryGroup() *GroupQuery
- func (bq *BeaconQuery) QueryListener() *ListenerQuery
- func (bq *BeaconQuery) QueryTask() *TaskQuery
- func (bq *BeaconQuery) Select(fields ...string) *BeaconSelect
- func (bq *BeaconQuery) Unique(unique bool) *BeaconQuery
- func (bq *BeaconQuery) Where(ps ...predicate.Beacon) *BeaconQuery
- func (bq *BeaconQuery) WithGroup(opts ...func(*GroupQuery)) *BeaconQuery
- func (bq *BeaconQuery) WithListener(opts ...func(*ListenerQuery)) *BeaconQuery
- func (bq *BeaconQuery) WithTask(opts ...func(*TaskQuery)) *BeaconQuery
- type BeaconSelect
- func (bs *BeaconSelect) Aggregate(fns ...AggregateFunc) *BeaconSelect
- func (s *BeaconSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BeaconSelect) BoolX(ctx context.Context) bool
- func (s *BeaconSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BeaconSelect) BoolsX(ctx context.Context) []bool
- func (s *BeaconSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BeaconSelect) Float64X(ctx context.Context) float64
- func (s *BeaconSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BeaconSelect) Float64sX(ctx context.Context) []float64
- func (s *BeaconSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BeaconSelect) IntX(ctx context.Context) int
- func (s *BeaconSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BeaconSelect) IntsX(ctx context.Context) []int
- func (bs *BeaconSelect) Scan(ctx context.Context, v any) error
- func (s *BeaconSelect) ScanX(ctx context.Context, v any)
- func (s *BeaconSelect) String(ctx context.Context) (_ string, err error)
- func (s *BeaconSelect) StringX(ctx context.Context) string
- func (s *BeaconSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BeaconSelect) StringsX(ctx context.Context) []string
- type BeaconUpdate
- func (bu *BeaconUpdate) AddBid(u int32) *BeaconUpdate
- func (bu *BeaconUpdate) AddCaps(u int32) *BeaconUpdate
- func (bu *BeaconUpdate) AddColor(u int32) *BeaconUpdate
- func (bu *BeaconUpdate) AddGroup(g ...*Group) *BeaconUpdate
- func (bu *BeaconUpdate) AddGroupIDs(ids ...int) *BeaconUpdate
- func (bu *BeaconUpdate) AddJitter(u int8) *BeaconUpdate
- func (bu *BeaconUpdate) AddPid(u int32) *BeaconUpdate
- func (bu *BeaconUpdate) AddSleep(u int32) *BeaconUpdate
- func (bu *BeaconUpdate) AddTask(t ...*Task) *BeaconUpdate
- func (bu *BeaconUpdate) AddTaskIDs(ids ...int) *BeaconUpdate
- func (bu *BeaconUpdate) ClearDeletedAt() *BeaconUpdate
- func (bu *BeaconUpdate) ClearDomain() *BeaconUpdate
- func (bu *BeaconUpdate) ClearExtIP() *BeaconUpdate
- func (bu *BeaconUpdate) ClearGroup() *BeaconUpdate
- func (bu *BeaconUpdate) ClearHostname() *BeaconUpdate
- func (bu *BeaconUpdate) ClearIntIP() *BeaconUpdate
- func (bu *BeaconUpdate) ClearListener() *BeaconUpdate
- func (bu *BeaconUpdate) ClearNote() *BeaconUpdate
- func (bu *BeaconUpdate) ClearOsMeta() *BeaconUpdate
- func (bu *BeaconUpdate) ClearPid() *BeaconUpdate
- func (bu *BeaconUpdate) ClearPrivileged() *BeaconUpdate
- func (bu *BeaconUpdate) ClearProcessName() *BeaconUpdate
- func (bu *BeaconUpdate) ClearTask() *BeaconUpdate
- func (bu *BeaconUpdate) ClearUsername() *BeaconUpdate
- func (bu *BeaconUpdate) Exec(ctx context.Context) error
- func (bu *BeaconUpdate) ExecX(ctx context.Context)
- func (bu *BeaconUpdate) Mutation() *BeaconMutation
- func (bu *BeaconUpdate) RemoveGroup(g ...*Group) *BeaconUpdate
- func (bu *BeaconUpdate) RemoveGroupIDs(ids ...int) *BeaconUpdate
- func (bu *BeaconUpdate) RemoveTask(t ...*Task) *BeaconUpdate
- func (bu *BeaconUpdate) RemoveTaskIDs(ids ...int) *BeaconUpdate
- func (bu *BeaconUpdate) Save(ctx context.Context) (int, error)
- func (bu *BeaconUpdate) SaveX(ctx context.Context) int
- func (bu *BeaconUpdate) SetArch(da defaults.BeaconArch) *BeaconUpdate
- func (bu *BeaconUpdate) SetBid(u uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetCaps(u uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetColor(u uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetDeletedAt(t time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetDomain(s string) *BeaconUpdate
- func (bu *BeaconUpdate) SetExtIP(t types.Inet) *BeaconUpdate
- func (bu *BeaconUpdate) SetFirst(t time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetHostname(s string) *BeaconUpdate
- func (bu *BeaconUpdate) SetIntIP(t types.Inet) *BeaconUpdate
- func (bu *BeaconUpdate) SetJitter(u uint8) *BeaconUpdate
- func (bu *BeaconUpdate) SetLast(t time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetListener(l *Listener) *BeaconUpdate
- func (bu *BeaconUpdate) SetListenerID(i int) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableArch(da *defaults.BeaconArch) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableBid(u *uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableCaps(u *uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableColor(u *uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableDeletedAt(t *time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableDomain(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableExtIP(t *types.Inet) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableFirst(t *time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableHostname(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableIntIP(t *types.Inet) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableJitter(u *uint8) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableLast(t *time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableListenerID(i *int) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableNote(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableOs(do *defaults.BeaconOS) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableOsMeta(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillablePid(u *uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillablePrivileged(b *bool) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableProcessName(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableSleep(u *uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetNillableUsername(s *string) *BeaconUpdate
- func (bu *BeaconUpdate) SetNote(s string) *BeaconUpdate
- func (bu *BeaconUpdate) SetOs(do defaults.BeaconOS) *BeaconUpdate
- func (bu *BeaconUpdate) SetOsMeta(s string) *BeaconUpdate
- func (bu *BeaconUpdate) SetPid(u uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetPrivileged(b bool) *BeaconUpdate
- func (bu *BeaconUpdate) SetProcessName(s string) *BeaconUpdate
- func (bu *BeaconUpdate) SetSleep(u uint32) *BeaconUpdate
- func (bu *BeaconUpdate) SetUpdatedAt(t time.Time) *BeaconUpdate
- func (bu *BeaconUpdate) SetUsername(s string) *BeaconUpdate
- func (bu *BeaconUpdate) Where(ps ...predicate.Beacon) *BeaconUpdate
- type BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddBid(u int32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddCaps(u int32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddColor(u int32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddGroup(g ...*Group) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddGroupIDs(ids ...int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddJitter(u int8) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddPid(u int32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddSleep(u int32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddTask(t ...*Task) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) AddTaskIDs(ids ...int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearDeletedAt() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearDomain() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearExtIP() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearGroup() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearHostname() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearIntIP() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearListener() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearNote() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearOsMeta() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearPid() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearPrivileged() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearProcessName() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearTask() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) ClearUsername() *BeaconUpdateOne
- func (buo *BeaconUpdateOne) Exec(ctx context.Context) error
- func (buo *BeaconUpdateOne) ExecX(ctx context.Context)
- func (buo *BeaconUpdateOne) Mutation() *BeaconMutation
- func (buo *BeaconUpdateOne) RemoveGroup(g ...*Group) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) RemoveGroupIDs(ids ...int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) RemoveTask(t ...*Task) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) RemoveTaskIDs(ids ...int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) Save(ctx context.Context) (*Beacon, error)
- func (buo *BeaconUpdateOne) SaveX(ctx context.Context) *Beacon
- func (buo *BeaconUpdateOne) Select(field string, fields ...string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetArch(da defaults.BeaconArch) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetBid(u uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetCaps(u uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetColor(u uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetDeletedAt(t time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetDomain(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetExtIP(t types.Inet) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetFirst(t time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetHostname(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetIntIP(t types.Inet) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetJitter(u uint8) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetLast(t time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetListener(l *Listener) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetListenerID(i int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableArch(da *defaults.BeaconArch) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableBid(u *uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableCaps(u *uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableColor(u *uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableDeletedAt(t *time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableDomain(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableExtIP(t *types.Inet) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableFirst(t *time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableHostname(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableIntIP(t *types.Inet) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableJitter(u *uint8) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableLast(t *time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableListenerID(i *int) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableNote(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableOs(do *defaults.BeaconOS) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableOsMeta(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillablePid(u *uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillablePrivileged(b *bool) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableProcessName(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableSleep(u *uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNillableUsername(s *string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetNote(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetOs(do defaults.BeaconOS) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetOsMeta(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetPid(u uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetPrivileged(b bool) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetProcessName(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetSleep(u uint32) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetUpdatedAt(t time.Time) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) SetUsername(s string) *BeaconUpdateOne
- func (buo *BeaconUpdateOne) Where(ps ...predicate.Beacon) *BeaconUpdateOne
- type Beacons
- type Blobber
- type BlobberClient
- func (c *BlobberClient) Create() *BlobberCreate
- func (c *BlobberClient) CreateBulk(builders ...*BlobberCreate) *BlobberCreateBulk
- func (c *BlobberClient) Delete() *BlobberDelete
- func (c *BlobberClient) DeleteOne(b *Blobber) *BlobberDeleteOne
- func (c *BlobberClient) DeleteOneID(id int) *BlobberDeleteOne
- func (c *BlobberClient) Get(ctx context.Context, id int) (*Blobber, error)
- func (c *BlobberClient) GetX(ctx context.Context, id int) *Blobber
- func (c *BlobberClient) Hooks() []Hook
- func (c *BlobberClient) Intercept(interceptors ...Interceptor)
- func (c *BlobberClient) Interceptors() []Interceptor
- func (c *BlobberClient) MapCreateBulk(slice any, setFunc func(*BlobberCreate, int)) *BlobberCreateBulk
- func (c *BlobberClient) Query() *BlobberQuery
- func (c *BlobberClient) QueryTaskArgs(b *Blobber) *TaskQuery
- func (c *BlobberClient) QueryTaskOutput(b *Blobber) *TaskQuery
- func (c *BlobberClient) Update() *BlobberUpdate
- func (c *BlobberClient) UpdateOne(b *Blobber) *BlobberUpdateOne
- func (c *BlobberClient) UpdateOneID(id int) *BlobberUpdateOne
- func (c *BlobberClient) Use(hooks ...Hook)
- type BlobberCreate
- func (bc *BlobberCreate) AddTaskArgIDs(ids ...int) *BlobberCreate
- func (bc *BlobberCreate) AddTaskArgs(t ...*Task) *BlobberCreate
- func (bc *BlobberCreate) AddTaskOutput(t ...*Task) *BlobberCreate
- func (bc *BlobberCreate) AddTaskOutputIDs(ids ...int) *BlobberCreate
- func (bc *BlobberCreate) Exec(ctx context.Context) error
- func (bc *BlobberCreate) ExecX(ctx context.Context)
- func (bc *BlobberCreate) Mutation() *BlobberMutation
- func (bc *BlobberCreate) Save(ctx context.Context) (*Blobber, error)
- func (bc *BlobberCreate) SaveX(ctx context.Context) *Blobber
- func (bc *BlobberCreate) SetBlob(b []byte) *BlobberCreate
- func (bc *BlobberCreate) SetCreatedAt(t time.Time) *BlobberCreate
- func (bc *BlobberCreate) SetDeletedAt(t time.Time) *BlobberCreate
- func (bc *BlobberCreate) SetHash(b []byte) *BlobberCreate
- func (bc *BlobberCreate) SetNillableCreatedAt(t *time.Time) *BlobberCreate
- func (bc *BlobberCreate) SetNillableDeletedAt(t *time.Time) *BlobberCreate
- func (bc *BlobberCreate) SetNillableUpdatedAt(t *time.Time) *BlobberCreate
- func (bc *BlobberCreate) SetSize(i int) *BlobberCreate
- func (bc *BlobberCreate) SetUpdatedAt(t time.Time) *BlobberCreate
- type BlobberCreateBulk
- type BlobberDelete
- type BlobberDeleteOne
- type BlobberEdges
- type BlobberGroupBy
- func (bgb *BlobberGroupBy) Aggregate(fns ...AggregateFunc) *BlobberGroupBy
- func (s *BlobberGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BlobberGroupBy) BoolX(ctx context.Context) bool
- func (s *BlobberGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BlobberGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BlobberGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BlobberGroupBy) Float64X(ctx context.Context) float64
- func (s *BlobberGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BlobberGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BlobberGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BlobberGroupBy) IntX(ctx context.Context) int
- func (s *BlobberGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BlobberGroupBy) IntsX(ctx context.Context) []int
- func (bgb *BlobberGroupBy) Scan(ctx context.Context, v any) error
- func (s *BlobberGroupBy) ScanX(ctx context.Context, v any)
- func (s *BlobberGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BlobberGroupBy) StringX(ctx context.Context) string
- func (s *BlobberGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BlobberGroupBy) StringsX(ctx context.Context) []string
- type BlobberMutation
- func (m *BlobberMutation) AddField(name string, value ent.Value) error
- func (m *BlobberMutation) AddSize(i int)
- func (m *BlobberMutation) AddTaskArgIDs(ids ...int)
- func (m *BlobberMutation) AddTaskOutputIDs(ids ...int)
- func (m *BlobberMutation) AddedEdges() []string
- func (m *BlobberMutation) AddedField(name string) (ent.Value, bool)
- func (m *BlobberMutation) AddedFields() []string
- func (m *BlobberMutation) AddedIDs(name string) []ent.Value
- func (m *BlobberMutation) AddedSize() (r int, exists bool)
- func (m *BlobberMutation) Blob() (r []byte, exists bool)
- func (m *BlobberMutation) ClearDeletedAt()
- func (m *BlobberMutation) ClearEdge(name string) error
- func (m *BlobberMutation) ClearField(name string) error
- func (m *BlobberMutation) ClearTaskArgs()
- func (m *BlobberMutation) ClearTaskOutput()
- func (m *BlobberMutation) ClearedEdges() []string
- func (m *BlobberMutation) ClearedFields() []string
- func (m BlobberMutation) Client() *Client
- func (m *BlobberMutation) CreatedAt() (r time.Time, exists bool)
- func (m *BlobberMutation) DeletedAt() (r time.Time, exists bool)
- func (m *BlobberMutation) DeletedAtCleared() bool
- func (m *BlobberMutation) EdgeCleared(name string) bool
- func (m *BlobberMutation) Field(name string) (ent.Value, bool)
- func (m *BlobberMutation) FieldCleared(name string) bool
- func (m *BlobberMutation) Fields() []string
- func (m *BlobberMutation) Hash() (r []byte, exists bool)
- func (m *BlobberMutation) ID() (id int, exists bool)
- func (m *BlobberMutation) IDs(ctx context.Context) ([]int, error)
- func (m *BlobberMutation) OldBlob(ctx context.Context) (v []byte, err error)
- func (m *BlobberMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BlobberMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *BlobberMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BlobberMutation) OldHash(ctx context.Context) (v []byte, err error)
- func (m *BlobberMutation) OldSize(ctx context.Context) (v int, err error)
- func (m *BlobberMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *BlobberMutation) Op() Op
- func (m *BlobberMutation) RemoveTaskArgIDs(ids ...int)
- func (m *BlobberMutation) RemoveTaskOutputIDs(ids ...int)
- func (m *BlobberMutation) RemovedEdges() []string
- func (m *BlobberMutation) RemovedIDs(name string) []ent.Value
- func (m *BlobberMutation) RemovedTaskArgsIDs() (ids []int)
- func (m *BlobberMutation) RemovedTaskOutputIDs() (ids []int)
- func (m *BlobberMutation) ResetBlob()
- func (m *BlobberMutation) ResetCreatedAt()
- func (m *BlobberMutation) ResetDeletedAt()
- func (m *BlobberMutation) ResetEdge(name string) error
- func (m *BlobberMutation) ResetField(name string) error
- func (m *BlobberMutation) ResetHash()
- func (m *BlobberMutation) ResetSize()
- func (m *BlobberMutation) ResetTaskArgs()
- func (m *BlobberMutation) ResetTaskOutput()
- func (m *BlobberMutation) ResetUpdatedAt()
- func (m *BlobberMutation) SetBlob(b []byte)
- func (m *BlobberMutation) SetCreatedAt(t time.Time)
- func (m *BlobberMutation) SetDeletedAt(t time.Time)
- func (m *BlobberMutation) SetField(name string, value ent.Value) error
- func (m *BlobberMutation) SetHash(b []byte)
- func (m *BlobberMutation) SetOp(op Op)
- func (m *BlobberMutation) SetSize(i int)
- func (m *BlobberMutation) SetUpdatedAt(t time.Time)
- func (m *BlobberMutation) Size() (r int, exists bool)
- func (m *BlobberMutation) TaskArgsCleared() bool
- func (m *BlobberMutation) TaskArgsIDs() (ids []int)
- func (m *BlobberMutation) TaskOutputCleared() bool
- func (m *BlobberMutation) TaskOutputIDs() (ids []int)
- func (m BlobberMutation) Tx() (*Tx, error)
- func (m *BlobberMutation) Type() string
- func (m *BlobberMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *BlobberMutation) Where(ps ...predicate.Blobber)
- func (m *BlobberMutation) WhereP(ps ...func(*sql.Selector))
- type BlobberQuery
- func (bq *BlobberQuery) Aggregate(fns ...AggregateFunc) *BlobberSelect
- func (bq *BlobberQuery) All(ctx context.Context) ([]*Blobber, error)
- func (bq *BlobberQuery) AllX(ctx context.Context) []*Blobber
- func (bq *BlobberQuery) Clone() *BlobberQuery
- func (bq *BlobberQuery) Count(ctx context.Context) (int, error)
- func (bq *BlobberQuery) CountX(ctx context.Context) int
- func (bq *BlobberQuery) Exist(ctx context.Context) (bool, error)
- func (bq *BlobberQuery) ExistX(ctx context.Context) bool
- func (bq *BlobberQuery) First(ctx context.Context) (*Blobber, error)
- func (bq *BlobberQuery) FirstID(ctx context.Context) (id int, err error)
- func (bq *BlobberQuery) FirstIDX(ctx context.Context) int
- func (bq *BlobberQuery) FirstX(ctx context.Context) *Blobber
- func (bq *BlobberQuery) ForShare(opts ...sql.LockOption) *BlobberQuery
- func (bq *BlobberQuery) ForUpdate(opts ...sql.LockOption) *BlobberQuery
- func (bq *BlobberQuery) GroupBy(field string, fields ...string) *BlobberGroupBy
- func (bq *BlobberQuery) IDs(ctx context.Context) (ids []int, err error)
- func (bq *BlobberQuery) IDsX(ctx context.Context) []int
- func (bq *BlobberQuery) Limit(limit int) *BlobberQuery
- func (bq *BlobberQuery) Offset(offset int) *BlobberQuery
- func (bq *BlobberQuery) Only(ctx context.Context) (*Blobber, error)
- func (bq *BlobberQuery) OnlyID(ctx context.Context) (id int, err error)
- func (bq *BlobberQuery) OnlyIDX(ctx context.Context) int
- func (bq *BlobberQuery) OnlyX(ctx context.Context) *Blobber
- func (bq *BlobberQuery) Order(o ...blobber.OrderOption) *BlobberQuery
- func (bq *BlobberQuery) QueryTaskArgs() *TaskQuery
- func (bq *BlobberQuery) QueryTaskOutput() *TaskQuery
- func (bq *BlobberQuery) Select(fields ...string) *BlobberSelect
- func (bq *BlobberQuery) Unique(unique bool) *BlobberQuery
- func (bq *BlobberQuery) Where(ps ...predicate.Blobber) *BlobberQuery
- func (bq *BlobberQuery) WithTaskArgs(opts ...func(*TaskQuery)) *BlobberQuery
- func (bq *BlobberQuery) WithTaskOutput(opts ...func(*TaskQuery)) *BlobberQuery
- type BlobberSelect
- func (bs *BlobberSelect) Aggregate(fns ...AggregateFunc) *BlobberSelect
- func (s *BlobberSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BlobberSelect) BoolX(ctx context.Context) bool
- func (s *BlobberSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BlobberSelect) BoolsX(ctx context.Context) []bool
- func (s *BlobberSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BlobberSelect) Float64X(ctx context.Context) float64
- func (s *BlobberSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BlobberSelect) Float64sX(ctx context.Context) []float64
- func (s *BlobberSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BlobberSelect) IntX(ctx context.Context) int
- func (s *BlobberSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BlobberSelect) IntsX(ctx context.Context) []int
- func (bs *BlobberSelect) Scan(ctx context.Context, v any) error
- func (s *BlobberSelect) ScanX(ctx context.Context, v any)
- func (s *BlobberSelect) String(ctx context.Context) (_ string, err error)
- func (s *BlobberSelect) StringX(ctx context.Context) string
- func (s *BlobberSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BlobberSelect) StringsX(ctx context.Context) []string
- type BlobberUpdate
- func (bu *BlobberUpdate) AddSize(i int) *BlobberUpdate
- func (bu *BlobberUpdate) AddTaskArgIDs(ids ...int) *BlobberUpdate
- func (bu *BlobberUpdate) AddTaskArgs(t ...*Task) *BlobberUpdate
- func (bu *BlobberUpdate) AddTaskOutput(t ...*Task) *BlobberUpdate
- func (bu *BlobberUpdate) AddTaskOutputIDs(ids ...int) *BlobberUpdate
- func (bu *BlobberUpdate) ClearDeletedAt() *BlobberUpdate
- func (bu *BlobberUpdate) ClearTaskArgs() *BlobberUpdate
- func (bu *BlobberUpdate) ClearTaskOutput() *BlobberUpdate
- func (bu *BlobberUpdate) Exec(ctx context.Context) error
- func (bu *BlobberUpdate) ExecX(ctx context.Context)
- func (bu *BlobberUpdate) Mutation() *BlobberMutation
- func (bu *BlobberUpdate) RemoveTaskArgIDs(ids ...int) *BlobberUpdate
- func (bu *BlobberUpdate) RemoveTaskArgs(t ...*Task) *BlobberUpdate
- func (bu *BlobberUpdate) RemoveTaskOutput(t ...*Task) *BlobberUpdate
- func (bu *BlobberUpdate) RemoveTaskOutputIDs(ids ...int) *BlobberUpdate
- func (bu *BlobberUpdate) Save(ctx context.Context) (int, error)
- func (bu *BlobberUpdate) SaveX(ctx context.Context) int
- func (bu *BlobberUpdate) SetBlob(b []byte) *BlobberUpdate
- func (bu *BlobberUpdate) SetDeletedAt(t time.Time) *BlobberUpdate
- func (bu *BlobberUpdate) SetHash(b []byte) *BlobberUpdate
- func (bu *BlobberUpdate) SetNillableDeletedAt(t *time.Time) *BlobberUpdate
- func (bu *BlobberUpdate) SetNillableSize(i *int) *BlobberUpdate
- func (bu *BlobberUpdate) SetSize(i int) *BlobberUpdate
- func (bu *BlobberUpdate) SetUpdatedAt(t time.Time) *BlobberUpdate
- func (bu *BlobberUpdate) Where(ps ...predicate.Blobber) *BlobberUpdate
- type BlobberUpdateOne
- func (buo *BlobberUpdateOne) AddSize(i int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) AddTaskArgIDs(ids ...int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) AddTaskArgs(t ...*Task) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) AddTaskOutput(t ...*Task) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) AddTaskOutputIDs(ids ...int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) ClearDeletedAt() *BlobberUpdateOne
- func (buo *BlobberUpdateOne) ClearTaskArgs() *BlobberUpdateOne
- func (buo *BlobberUpdateOne) ClearTaskOutput() *BlobberUpdateOne
- func (buo *BlobberUpdateOne) Exec(ctx context.Context) error
- func (buo *BlobberUpdateOne) ExecX(ctx context.Context)
- func (buo *BlobberUpdateOne) Mutation() *BlobberMutation
- func (buo *BlobberUpdateOne) RemoveTaskArgIDs(ids ...int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) RemoveTaskArgs(t ...*Task) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) RemoveTaskOutput(t ...*Task) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) RemoveTaskOutputIDs(ids ...int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) Save(ctx context.Context) (*Blobber, error)
- func (buo *BlobberUpdateOne) SaveX(ctx context.Context) *Blobber
- func (buo *BlobberUpdateOne) Select(field string, fields ...string) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetBlob(b []byte) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetDeletedAt(t time.Time) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetHash(b []byte) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetNillableDeletedAt(t *time.Time) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetNillableSize(i *int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetSize(i int) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) SetUpdatedAt(t time.Time) *BlobberUpdateOne
- func (buo *BlobberUpdateOne) Where(ps ...predicate.Blobber) *BlobberUpdateOne
- type Blobbers
- type Chat
- type ChatClient
- func (c *ChatClient) Create() *ChatCreate
- func (c *ChatClient) CreateBulk(builders ...*ChatCreate) *ChatCreateBulk
- func (c *ChatClient) Delete() *ChatDelete
- func (c *ChatClient) DeleteOne(ch *Chat) *ChatDeleteOne
- func (c *ChatClient) DeleteOneID(id int) *ChatDeleteOne
- func (c *ChatClient) Get(ctx context.Context, id int) (*Chat, error)
- func (c *ChatClient) GetX(ctx context.Context, id int) *Chat
- func (c *ChatClient) Hooks() []Hook
- func (c *ChatClient) Intercept(interceptors ...Interceptor)
- func (c *ChatClient) Interceptors() []Interceptor
- func (c *ChatClient) MapCreateBulk(slice any, setFunc func(*ChatCreate, int)) *ChatCreateBulk
- func (c *ChatClient) Query() *ChatQuery
- func (c *ChatClient) QueryOperator(ch *Chat) *OperatorQuery
- func (c *ChatClient) Update() *ChatUpdate
- func (c *ChatClient) UpdateOne(ch *Chat) *ChatUpdateOne
- func (c *ChatClient) UpdateOneID(id int) *ChatUpdateOne
- func (c *ChatClient) Use(hooks ...Hook)
- type ChatCreate
- func (cc *ChatCreate) Exec(ctx context.Context) error
- func (cc *ChatCreate) ExecX(ctx context.Context)
- func (cc *ChatCreate) Mutation() *ChatMutation
- func (cc *ChatCreate) Save(ctx context.Context) (*Chat, error)
- func (cc *ChatCreate) SaveX(ctx context.Context) *Chat
- func (cc *ChatCreate) SetCreatedAt(t time.Time) *ChatCreate
- func (cc *ChatCreate) SetFrom(i int) *ChatCreate
- func (cc *ChatCreate) SetMessage(s string) *ChatCreate
- func (cc *ChatCreate) SetNillableCreatedAt(t *time.Time) *ChatCreate
- func (cc *ChatCreate) SetNillableFrom(i *int) *ChatCreate
- func (cc *ChatCreate) SetNillableOperatorID(id *int) *ChatCreate
- func (cc *ChatCreate) SetOperator(o *Operator) *ChatCreate
- func (cc *ChatCreate) SetOperatorID(id int) *ChatCreate
- type ChatCreateBulk
- type ChatDelete
- type ChatDeleteOne
- type ChatEdges
- type ChatGroupBy
- func (cgb *ChatGroupBy) Aggregate(fns ...AggregateFunc) *ChatGroupBy
- func (s *ChatGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ChatGroupBy) BoolX(ctx context.Context) bool
- func (s *ChatGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ChatGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ChatGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ChatGroupBy) Float64X(ctx context.Context) float64
- func (s *ChatGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ChatGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ChatGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ChatGroupBy) IntX(ctx context.Context) int
- func (s *ChatGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ChatGroupBy) IntsX(ctx context.Context) []int
- func (cgb *ChatGroupBy) Scan(ctx context.Context, v any) error
- func (s *ChatGroupBy) ScanX(ctx context.Context, v any)
- func (s *ChatGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ChatGroupBy) StringX(ctx context.Context) string
- func (s *ChatGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ChatGroupBy) StringsX(ctx context.Context) []string
- type ChatMutation
- func (m *ChatMutation) AddField(name string, value ent.Value) error
- func (m *ChatMutation) AddedEdges() []string
- func (m *ChatMutation) AddedField(name string) (ent.Value, bool)
- func (m *ChatMutation) AddedFields() []string
- func (m *ChatMutation) AddedIDs(name string) []ent.Value
- func (m *ChatMutation) ClearEdge(name string) error
- func (m *ChatMutation) ClearField(name string) error
- func (m *ChatMutation) ClearFrom()
- func (m *ChatMutation) ClearOperator()
- func (m *ChatMutation) ClearedEdges() []string
- func (m *ChatMutation) ClearedFields() []string
- func (m ChatMutation) Client() *Client
- func (m *ChatMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ChatMutation) EdgeCleared(name string) bool
- func (m *ChatMutation) Field(name string) (ent.Value, bool)
- func (m *ChatMutation) FieldCleared(name string) bool
- func (m *ChatMutation) Fields() []string
- func (m *ChatMutation) From() (r int, exists bool)
- func (m *ChatMutation) FromCleared() bool
- func (m *ChatMutation) ID() (id int, exists bool)
- func (m *ChatMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ChatMutation) Message() (r string, exists bool)
- func (m *ChatMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ChatMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ChatMutation) OldFrom(ctx context.Context) (v int, err error)
- func (m *ChatMutation) OldMessage(ctx context.Context) (v string, err error)
- func (m *ChatMutation) Op() Op
- func (m *ChatMutation) OperatorCleared() bool
- func (m *ChatMutation) OperatorID() (id int, exists bool)
- func (m *ChatMutation) OperatorIDs() (ids []int)
- func (m *ChatMutation) RemovedEdges() []string
- func (m *ChatMutation) RemovedIDs(name string) []ent.Value
- func (m *ChatMutation) ResetCreatedAt()
- func (m *ChatMutation) ResetEdge(name string) error
- func (m *ChatMutation) ResetField(name string) error
- func (m *ChatMutation) ResetFrom()
- func (m *ChatMutation) ResetMessage()
- func (m *ChatMutation) ResetOperator()
- func (m *ChatMutation) SetCreatedAt(t time.Time)
- func (m *ChatMutation) SetField(name string, value ent.Value) error
- func (m *ChatMutation) SetFrom(i int)
- func (m *ChatMutation) SetMessage(s string)
- func (m *ChatMutation) SetOp(op Op)
- func (m *ChatMutation) SetOperatorID(id int)
- func (m ChatMutation) Tx() (*Tx, error)
- func (m *ChatMutation) Type() string
- func (m *ChatMutation) Where(ps ...predicate.Chat)
- func (m *ChatMutation) WhereP(ps ...func(*sql.Selector))
- type ChatQuery
- func (cq *ChatQuery) Aggregate(fns ...AggregateFunc) *ChatSelect
- func (cq *ChatQuery) All(ctx context.Context) ([]*Chat, error)
- func (cq *ChatQuery) AllX(ctx context.Context) []*Chat
- func (cq *ChatQuery) Clone() *ChatQuery
- func (cq *ChatQuery) Count(ctx context.Context) (int, error)
- func (cq *ChatQuery) CountX(ctx context.Context) int
- func (cq *ChatQuery) Exist(ctx context.Context) (bool, error)
- func (cq *ChatQuery) ExistX(ctx context.Context) bool
- func (cq *ChatQuery) First(ctx context.Context) (*Chat, error)
- func (cq *ChatQuery) FirstID(ctx context.Context) (id int, err error)
- func (cq *ChatQuery) FirstIDX(ctx context.Context) int
- func (cq *ChatQuery) FirstX(ctx context.Context) *Chat
- func (cq *ChatQuery) ForShare(opts ...sql.LockOption) *ChatQuery
- func (cq *ChatQuery) ForUpdate(opts ...sql.LockOption) *ChatQuery
- func (cq *ChatQuery) GroupBy(field string, fields ...string) *ChatGroupBy
- func (cq *ChatQuery) IDs(ctx context.Context) (ids []int, err error)
- func (cq *ChatQuery) IDsX(ctx context.Context) []int
- func (cq *ChatQuery) Limit(limit int) *ChatQuery
- func (cq *ChatQuery) Offset(offset int) *ChatQuery
- func (cq *ChatQuery) Only(ctx context.Context) (*Chat, error)
- func (cq *ChatQuery) OnlyID(ctx context.Context) (id int, err error)
- func (cq *ChatQuery) OnlyIDX(ctx context.Context) int
- func (cq *ChatQuery) OnlyX(ctx context.Context) *Chat
- func (cq *ChatQuery) Order(o ...chat.OrderOption) *ChatQuery
- func (cq *ChatQuery) QueryOperator() *OperatorQuery
- func (cq *ChatQuery) Select(fields ...string) *ChatSelect
- func (cq *ChatQuery) Unique(unique bool) *ChatQuery
- func (cq *ChatQuery) Where(ps ...predicate.Chat) *ChatQuery
- func (cq *ChatQuery) WithOperator(opts ...func(*OperatorQuery)) *ChatQuery
- type ChatSelect
- func (cs *ChatSelect) Aggregate(fns ...AggregateFunc) *ChatSelect
- func (s *ChatSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ChatSelect) BoolX(ctx context.Context) bool
- func (s *ChatSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ChatSelect) BoolsX(ctx context.Context) []bool
- func (s *ChatSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ChatSelect) Float64X(ctx context.Context) float64
- func (s *ChatSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ChatSelect) Float64sX(ctx context.Context) []float64
- func (s *ChatSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ChatSelect) IntX(ctx context.Context) int
- func (s *ChatSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ChatSelect) IntsX(ctx context.Context) []int
- func (cs *ChatSelect) Scan(ctx context.Context, v any) error
- func (s *ChatSelect) ScanX(ctx context.Context, v any)
- func (s *ChatSelect) String(ctx context.Context) (_ string, err error)
- func (s *ChatSelect) StringX(ctx context.Context) string
- func (s *ChatSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ChatSelect) StringsX(ctx context.Context) []string
- type ChatUpdate
- func (cu *ChatUpdate) ClearFrom() *ChatUpdate
- func (cu *ChatUpdate) ClearOperator() *ChatUpdate
- func (cu *ChatUpdate) Exec(ctx context.Context) error
- func (cu *ChatUpdate) ExecX(ctx context.Context)
- func (cu *ChatUpdate) Mutation() *ChatMutation
- func (cu *ChatUpdate) Save(ctx context.Context) (int, error)
- func (cu *ChatUpdate) SaveX(ctx context.Context) int
- func (cu *ChatUpdate) SetFrom(i int) *ChatUpdate
- func (cu *ChatUpdate) SetMessage(s string) *ChatUpdate
- func (cu *ChatUpdate) SetNillableFrom(i *int) *ChatUpdate
- func (cu *ChatUpdate) SetNillableMessage(s *string) *ChatUpdate
- func (cu *ChatUpdate) SetNillableOperatorID(id *int) *ChatUpdate
- func (cu *ChatUpdate) SetOperator(o *Operator) *ChatUpdate
- func (cu *ChatUpdate) SetOperatorID(id int) *ChatUpdate
- func (cu *ChatUpdate) Where(ps ...predicate.Chat) *ChatUpdate
- type ChatUpdateOne
- func (cuo *ChatUpdateOne) ClearFrom() *ChatUpdateOne
- func (cuo *ChatUpdateOne) ClearOperator() *ChatUpdateOne
- func (cuo *ChatUpdateOne) Exec(ctx context.Context) error
- func (cuo *ChatUpdateOne) ExecX(ctx context.Context)
- func (cuo *ChatUpdateOne) Mutation() *ChatMutation
- func (cuo *ChatUpdateOne) Save(ctx context.Context) (*Chat, error)
- func (cuo *ChatUpdateOne) SaveX(ctx context.Context) *Chat
- func (cuo *ChatUpdateOne) Select(field string, fields ...string) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetFrom(i int) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetMessage(s string) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetNillableFrom(i *int) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetNillableMessage(s *string) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetNillableOperatorID(id *int) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetOperator(o *Operator) *ChatUpdateOne
- func (cuo *ChatUpdateOne) SetOperatorID(id int) *ChatUpdateOne
- func (cuo *ChatUpdateOne) Where(ps ...predicate.Chat) *ChatUpdateOne
- type Chats
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Credential
- type CredentialClient
- func (c *CredentialClient) Create() *CredentialCreate
- func (c *CredentialClient) CreateBulk(builders ...*CredentialCreate) *CredentialCreateBulk
- func (c *CredentialClient) Delete() *CredentialDelete
- func (c *CredentialClient) DeleteOne(cr *Credential) *CredentialDeleteOne
- func (c *CredentialClient) DeleteOneID(id int) *CredentialDeleteOne
- func (c *CredentialClient) Get(ctx context.Context, id int) (*Credential, error)
- func (c *CredentialClient) GetX(ctx context.Context, id int) *Credential
- func (c *CredentialClient) Hooks() []Hook
- func (c *CredentialClient) Intercept(interceptors ...Interceptor)
- func (c *CredentialClient) Interceptors() []Interceptor
- func (c *CredentialClient) MapCreateBulk(slice any, setFunc func(*CredentialCreate, int)) *CredentialCreateBulk
- func (c *CredentialClient) Query() *CredentialQuery
- func (c *CredentialClient) Update() *CredentialUpdate
- func (c *CredentialClient) UpdateOne(cr *Credential) *CredentialUpdateOne
- func (c *CredentialClient) UpdateOneID(id int) *CredentialUpdateOne
- func (c *CredentialClient) Use(hooks ...Hook)
- type CredentialCreate
- func (cc *CredentialCreate) Exec(ctx context.Context) error
- func (cc *CredentialCreate) ExecX(ctx context.Context)
- func (cc *CredentialCreate) Mutation() *CredentialMutation
- func (cc *CredentialCreate) Save(ctx context.Context) (*Credential, error)
- func (cc *CredentialCreate) SaveX(ctx context.Context) *Credential
- func (cc *CredentialCreate) SetColor(u uint32) *CredentialCreate
- func (cc *CredentialCreate) SetCreatedAt(t time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetDeletedAt(t time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetHost(s string) *CredentialCreate
- func (cc *CredentialCreate) SetNillableColor(u *uint32) *CredentialCreate
- func (cc *CredentialCreate) SetNillableCreatedAt(t *time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetNillableDeletedAt(t *time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetNillableHost(s *string) *CredentialCreate
- func (cc *CredentialCreate) SetNillableNote(s *string) *CredentialCreate
- func (cc *CredentialCreate) SetNillableRealm(s *string) *CredentialCreate
- func (cc *CredentialCreate) SetNillableSecret(s *string) *CredentialCreate
- func (cc *CredentialCreate) SetNillableUpdatedAt(t *time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetNillableUsername(s *string) *CredentialCreate
- func (cc *CredentialCreate) SetNote(s string) *CredentialCreate
- func (cc *CredentialCreate) SetRealm(s string) *CredentialCreate
- func (cc *CredentialCreate) SetSecret(s string) *CredentialCreate
- func (cc *CredentialCreate) SetUpdatedAt(t time.Time) *CredentialCreate
- func (cc *CredentialCreate) SetUsername(s string) *CredentialCreate
- type CredentialCreateBulk
- type CredentialDelete
- type CredentialDeleteOne
- type CredentialGroupBy
- func (cgb *CredentialGroupBy) Aggregate(fns ...AggregateFunc) *CredentialGroupBy
- func (s *CredentialGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CredentialGroupBy) BoolX(ctx context.Context) bool
- func (s *CredentialGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CredentialGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CredentialGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CredentialGroupBy) Float64X(ctx context.Context) float64
- func (s *CredentialGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CredentialGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CredentialGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CredentialGroupBy) IntX(ctx context.Context) int
- func (s *CredentialGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CredentialGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CredentialGroupBy) Scan(ctx context.Context, v any) error
- func (s *CredentialGroupBy) ScanX(ctx context.Context, v any)
- func (s *CredentialGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CredentialGroupBy) StringX(ctx context.Context) string
- func (s *CredentialGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CredentialGroupBy) StringsX(ctx context.Context) []string
- type CredentialMutation
- func (m *CredentialMutation) AddColor(u int32)
- func (m *CredentialMutation) AddField(name string, value ent.Value) error
- func (m *CredentialMutation) AddedColor() (r int32, exists bool)
- func (m *CredentialMutation) AddedEdges() []string
- func (m *CredentialMutation) AddedField(name string) (ent.Value, bool)
- func (m *CredentialMutation) AddedFields() []string
- func (m *CredentialMutation) AddedIDs(name string) []ent.Value
- func (m *CredentialMutation) ClearDeletedAt()
- func (m *CredentialMutation) ClearEdge(name string) error
- func (m *CredentialMutation) ClearField(name string) error
- func (m *CredentialMutation) ClearHost()
- func (m *CredentialMutation) ClearNote()
- func (m *CredentialMutation) ClearRealm()
- func (m *CredentialMutation) ClearSecret()
- func (m *CredentialMutation) ClearUsername()
- func (m *CredentialMutation) ClearedEdges() []string
- func (m *CredentialMutation) ClearedFields() []string
- func (m CredentialMutation) Client() *Client
- func (m *CredentialMutation) Color() (r uint32, exists bool)
- func (m *CredentialMutation) CreatedAt() (r time.Time, exists bool)
- func (m *CredentialMutation) DeletedAt() (r time.Time, exists bool)
- func (m *CredentialMutation) DeletedAtCleared() bool
- func (m *CredentialMutation) EdgeCleared(name string) bool
- func (m *CredentialMutation) Field(name string) (ent.Value, bool)
- func (m *CredentialMutation) FieldCleared(name string) bool
- func (m *CredentialMutation) Fields() []string
- func (m *CredentialMutation) Host() (r string, exists bool)
- func (m *CredentialMutation) HostCleared() bool
- func (m *CredentialMutation) ID() (id int, exists bool)
- func (m *CredentialMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CredentialMutation) Note() (r string, exists bool)
- func (m *CredentialMutation) NoteCleared() bool
- func (m *CredentialMutation) OldColor(ctx context.Context) (v uint32, err error)
- func (m *CredentialMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CredentialMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *CredentialMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CredentialMutation) OldHost(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldNote(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldRealm(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldSecret(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *CredentialMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *CredentialMutation) Op() Op
- func (m *CredentialMutation) Realm() (r string, exists bool)
- func (m *CredentialMutation) RealmCleared() bool
- func (m *CredentialMutation) RemovedEdges() []string
- func (m *CredentialMutation) RemovedIDs(name string) []ent.Value
- func (m *CredentialMutation) ResetColor()
- func (m *CredentialMutation) ResetCreatedAt()
- func (m *CredentialMutation) ResetDeletedAt()
- func (m *CredentialMutation) ResetEdge(name string) error
- func (m *CredentialMutation) ResetField(name string) error
- func (m *CredentialMutation) ResetHost()
- func (m *CredentialMutation) ResetNote()
- func (m *CredentialMutation) ResetRealm()
- func (m *CredentialMutation) ResetSecret()
- func (m *CredentialMutation) ResetUpdatedAt()
- func (m *CredentialMutation) ResetUsername()
- func (m *CredentialMutation) Secret() (r string, exists bool)
- func (m *CredentialMutation) SecretCleared() bool
- func (m *CredentialMutation) SetColor(u uint32)
- func (m *CredentialMutation) SetCreatedAt(t time.Time)
- func (m *CredentialMutation) SetDeletedAt(t time.Time)
- func (m *CredentialMutation) SetField(name string, value ent.Value) error
- func (m *CredentialMutation) SetHost(s string)
- func (m *CredentialMutation) SetNote(s string)
- func (m *CredentialMutation) SetOp(op Op)
- func (m *CredentialMutation) SetRealm(s string)
- func (m *CredentialMutation) SetSecret(s string)
- func (m *CredentialMutation) SetUpdatedAt(t time.Time)
- func (m *CredentialMutation) SetUsername(s string)
- func (m CredentialMutation) Tx() (*Tx, error)
- func (m *CredentialMutation) Type() string
- func (m *CredentialMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *CredentialMutation) Username() (r string, exists bool)
- func (m *CredentialMutation) UsernameCleared() bool
- func (m *CredentialMutation) Where(ps ...predicate.Credential)
- func (m *CredentialMutation) WhereP(ps ...func(*sql.Selector))
- type CredentialQuery
- func (cq *CredentialQuery) Aggregate(fns ...AggregateFunc) *CredentialSelect
- func (cq *CredentialQuery) All(ctx context.Context) ([]*Credential, error)
- func (cq *CredentialQuery) AllX(ctx context.Context) []*Credential
- func (cq *CredentialQuery) Clone() *CredentialQuery
- func (cq *CredentialQuery) Count(ctx context.Context) (int, error)
- func (cq *CredentialQuery) CountX(ctx context.Context) int
- func (cq *CredentialQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CredentialQuery) ExistX(ctx context.Context) bool
- func (cq *CredentialQuery) First(ctx context.Context) (*Credential, error)
- func (cq *CredentialQuery) FirstID(ctx context.Context) (id int, err error)
- func (cq *CredentialQuery) FirstIDX(ctx context.Context) int
- func (cq *CredentialQuery) FirstX(ctx context.Context) *Credential
- func (cq *CredentialQuery) ForShare(opts ...sql.LockOption) *CredentialQuery
- func (cq *CredentialQuery) ForUpdate(opts ...sql.LockOption) *CredentialQuery
- func (cq *CredentialQuery) GroupBy(field string, fields ...string) *CredentialGroupBy
- func (cq *CredentialQuery) IDs(ctx context.Context) (ids []int, err error)
- func (cq *CredentialQuery) IDsX(ctx context.Context) []int
- func (cq *CredentialQuery) Limit(limit int) *CredentialQuery
- func (cq *CredentialQuery) Offset(offset int) *CredentialQuery
- func (cq *CredentialQuery) Only(ctx context.Context) (*Credential, error)
- func (cq *CredentialQuery) OnlyID(ctx context.Context) (id int, err error)
- func (cq *CredentialQuery) OnlyIDX(ctx context.Context) int
- func (cq *CredentialQuery) OnlyX(ctx context.Context) *Credential
- func (cq *CredentialQuery) Order(o ...credential.OrderOption) *CredentialQuery
- func (cq *CredentialQuery) Select(fields ...string) *CredentialSelect
- func (cq *CredentialQuery) Unique(unique bool) *CredentialQuery
- func (cq *CredentialQuery) Where(ps ...predicate.Credential) *CredentialQuery
- type CredentialSelect
- func (cs *CredentialSelect) Aggregate(fns ...AggregateFunc) *CredentialSelect
- func (s *CredentialSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CredentialSelect) BoolX(ctx context.Context) bool
- func (s *CredentialSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CredentialSelect) BoolsX(ctx context.Context) []bool
- func (s *CredentialSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CredentialSelect) Float64X(ctx context.Context) float64
- func (s *CredentialSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CredentialSelect) Float64sX(ctx context.Context) []float64
- func (s *CredentialSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CredentialSelect) IntX(ctx context.Context) int
- func (s *CredentialSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CredentialSelect) IntsX(ctx context.Context) []int
- func (cs *CredentialSelect) Scan(ctx context.Context, v any) error
- func (s *CredentialSelect) ScanX(ctx context.Context, v any)
- func (s *CredentialSelect) String(ctx context.Context) (_ string, err error)
- func (s *CredentialSelect) StringX(ctx context.Context) string
- func (s *CredentialSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CredentialSelect) StringsX(ctx context.Context) []string
- type CredentialUpdate
- func (cu *CredentialUpdate) AddColor(u int32) *CredentialUpdate
- func (cu *CredentialUpdate) ClearDeletedAt() *CredentialUpdate
- func (cu *CredentialUpdate) ClearHost() *CredentialUpdate
- func (cu *CredentialUpdate) ClearNote() *CredentialUpdate
- func (cu *CredentialUpdate) ClearRealm() *CredentialUpdate
- func (cu *CredentialUpdate) ClearSecret() *CredentialUpdate
- func (cu *CredentialUpdate) ClearUsername() *CredentialUpdate
- func (cu *CredentialUpdate) Exec(ctx context.Context) error
- func (cu *CredentialUpdate) ExecX(ctx context.Context)
- func (cu *CredentialUpdate) Mutation() *CredentialMutation
- func (cu *CredentialUpdate) Save(ctx context.Context) (int, error)
- func (cu *CredentialUpdate) SaveX(ctx context.Context) int
- func (cu *CredentialUpdate) SetColor(u uint32) *CredentialUpdate
- func (cu *CredentialUpdate) SetDeletedAt(t time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetHost(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableColor(u *uint32) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableDeletedAt(t *time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableHost(s *string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableNote(s *string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableRealm(s *string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableSecret(s *string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNillableUsername(s *string) *CredentialUpdate
- func (cu *CredentialUpdate) SetNote(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetRealm(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetSecret(s string) *CredentialUpdate
- func (cu *CredentialUpdate) SetUpdatedAt(t time.Time) *CredentialUpdate
- func (cu *CredentialUpdate) SetUsername(s string) *CredentialUpdate
- func (cu *CredentialUpdate) Where(ps ...predicate.Credential) *CredentialUpdate
- type CredentialUpdateOne
- func (cuo *CredentialUpdateOne) AddColor(u int32) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearDeletedAt() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearHost() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearNote() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearRealm() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearSecret() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) ClearUsername() *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) Exec(ctx context.Context) error
- func (cuo *CredentialUpdateOne) ExecX(ctx context.Context)
- func (cuo *CredentialUpdateOne) Mutation() *CredentialMutation
- func (cuo *CredentialUpdateOne) Save(ctx context.Context) (*Credential, error)
- func (cuo *CredentialUpdateOne) SaveX(ctx context.Context) *Credential
- func (cuo *CredentialUpdateOne) Select(field string, fields ...string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetColor(u uint32) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetDeletedAt(t time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetHost(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableColor(u *uint32) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableDeletedAt(t *time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableHost(s *string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableNote(s *string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableRealm(s *string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableSecret(s *string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNillableUsername(s *string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetNote(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetRealm(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetSecret(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetUpdatedAt(t time.Time) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) SetUsername(s string) *CredentialUpdateOne
- func (cuo *CredentialUpdateOne) Where(ps ...predicate.Credential) *CredentialUpdateOne
- type Credentials
- type Group
- func (gr *Group) QueryBeacon() *BeaconQuery
- func (gr *Group) QueryMessage() *MessageQuery
- func (gr *Group) QueryOperator() *OperatorQuery
- func (gr *Group) QueryTask() *TaskQuery
- func (gr *Group) String() string
- func (gr *Group) Unwrap() *Group
- func (gr *Group) Update() *GroupUpdateOne
- func (gr *Group) Value(name string) (ent.Value, error)
- type GroupClient
- func (c *GroupClient) Create() *GroupCreate
- func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
- func (c *GroupClient) Delete() *GroupDelete
- func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
- func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne
- func (c *GroupClient) Get(ctx context.Context, id int) (*Group, error)
- func (c *GroupClient) GetX(ctx context.Context, id int) *Group
- func (c *GroupClient) Hooks() []Hook
- func (c *GroupClient) Intercept(interceptors ...Interceptor)
- func (c *GroupClient) Interceptors() []Interceptor
- func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk
- func (c *GroupClient) Query() *GroupQuery
- func (c *GroupClient) QueryBeacon(gr *Group) *BeaconQuery
- func (c *GroupClient) QueryMessage(gr *Group) *MessageQuery
- func (c *GroupClient) QueryOperator(gr *Group) *OperatorQuery
- func (c *GroupClient) QueryTask(gr *Group) *TaskQuery
- func (c *GroupClient) Update() *GroupUpdate
- func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
- func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne
- func (c *GroupClient) Use(hooks ...Hook)
- type GroupCreate
- func (gc *GroupCreate) AddMessage(m ...*Message) *GroupCreate
- func (gc *GroupCreate) AddMessageIDs(ids ...int) *GroupCreate
- func (gc *GroupCreate) AddTask(t ...*Task) *GroupCreate
- func (gc *GroupCreate) AddTaskIDs(ids ...int) *GroupCreate
- func (gc *GroupCreate) Exec(ctx context.Context) error
- func (gc *GroupCreate) ExecX(ctx context.Context)
- func (gc *GroupCreate) Mutation() *GroupMutation
- func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
- func (gc *GroupCreate) SaveX(ctx context.Context) *Group
- func (gc *GroupCreate) SetAuthor(i int) *GroupCreate
- func (gc *GroupCreate) SetBeacon(b *Beacon) *GroupCreate
- func (gc *GroupCreate) SetBeaconID(id int) *GroupCreate
- func (gc *GroupCreate) SetBid(i int) *GroupCreate
- func (gc *GroupCreate) SetClosedAt(t time.Time) *GroupCreate
- func (gc *GroupCreate) SetCmd(s string) *GroupCreate
- func (gc *GroupCreate) SetCreatedAt(t time.Time) *GroupCreate
- func (gc *GroupCreate) SetNillableClosedAt(t *time.Time) *GroupCreate
- func (gc *GroupCreate) SetNillableCreatedAt(t *time.Time) *GroupCreate
- func (gc *GroupCreate) SetOperator(o *Operator) *GroupCreate
- func (gc *GroupCreate) SetOperatorID(id int) *GroupCreate
- func (gc *GroupCreate) SetVisible(b bool) *GroupCreate
- type GroupCreateBulk
- type GroupDelete
- type GroupDeleteOne
- type GroupEdges
- type GroupGroupBy
- func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
- func (s *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupGroupBy) BoolX(ctx context.Context) bool
- func (s *GroupGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupGroupBy) BoolsX(ctx context.Context) []bool
- func (s *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupGroupBy) Float64X(ctx context.Context) float64
- func (s *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupGroupBy) Float64sX(ctx context.Context) []float64
- func (s *GroupGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *GroupGroupBy) IntX(ctx context.Context) int
- func (s *GroupGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *GroupGroupBy) IntsX(ctx context.Context) []int
- func (ggb *GroupGroupBy) Scan(ctx context.Context, v any) error
- func (s *GroupGroupBy) ScanX(ctx context.Context, v any)
- func (s *GroupGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *GroupGroupBy) StringX(ctx context.Context) string
- func (s *GroupGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *GroupGroupBy) StringsX(ctx context.Context) []string
- type GroupMutation
- func (m *GroupMutation) AddField(name string, value ent.Value) error
- func (m *GroupMutation) AddMessageIDs(ids ...int)
- func (m *GroupMutation) AddTaskIDs(ids ...int)
- func (m *GroupMutation) AddedEdges() []string
- func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
- func (m *GroupMutation) AddedFields() []string
- func (m *GroupMutation) AddedIDs(name string) []ent.Value
- func (m *GroupMutation) Author() (r int, exists bool)
- func (m *GroupMutation) BeaconCleared() bool
- func (m *GroupMutation) BeaconID() (id int, exists bool)
- func (m *GroupMutation) BeaconIDs() (ids []int)
- func (m *GroupMutation) Bid() (r int, exists bool)
- func (m *GroupMutation) ClearBeacon()
- func (m *GroupMutation) ClearClosedAt()
- func (m *GroupMutation) ClearEdge(name string) error
- func (m *GroupMutation) ClearField(name string) error
- func (m *GroupMutation) ClearMessage()
- func (m *GroupMutation) ClearOperator()
- func (m *GroupMutation) ClearTask()
- func (m *GroupMutation) ClearedEdges() []string
- func (m *GroupMutation) ClearedFields() []string
- func (m GroupMutation) Client() *Client
- func (m *GroupMutation) ClosedAt() (r time.Time, exists bool)
- func (m *GroupMutation) ClosedAtCleared() bool
- func (m *GroupMutation) Cmd() (r string, exists bool)
- func (m *GroupMutation) CreatedAt() (r time.Time, exists bool)
- func (m *GroupMutation) EdgeCleared(name string) bool
- func (m *GroupMutation) Field(name string) (ent.Value, bool)
- func (m *GroupMutation) FieldCleared(name string) bool
- func (m *GroupMutation) Fields() []string
- func (m *GroupMutation) ID() (id int, exists bool)
- func (m *GroupMutation) IDs(ctx context.Context) ([]int, error)
- func (m *GroupMutation) MessageCleared() bool
- func (m *GroupMutation) MessageIDs() (ids []int)
- func (m *GroupMutation) OldAuthor(ctx context.Context) (v int, err error)
- func (m *GroupMutation) OldBid(ctx context.Context) (v int, err error)
- func (m *GroupMutation) OldClosedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupMutation) OldCmd(ctx context.Context) (v string, err error)
- func (m *GroupMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GroupMutation) OldVisible(ctx context.Context) (v bool, err error)
- func (m *GroupMutation) Op() Op
- func (m *GroupMutation) OperatorCleared() bool
- func (m *GroupMutation) OperatorID() (id int, exists bool)
- func (m *GroupMutation) OperatorIDs() (ids []int)
- func (m *GroupMutation) RemoveMessageIDs(ids ...int)
- func (m *GroupMutation) RemoveTaskIDs(ids ...int)
- func (m *GroupMutation) RemovedEdges() []string
- func (m *GroupMutation) RemovedIDs(name string) []ent.Value
- func (m *GroupMutation) RemovedMessageIDs() (ids []int)
- func (m *GroupMutation) RemovedTaskIDs() (ids []int)
- func (m *GroupMutation) ResetAuthor()
- func (m *GroupMutation) ResetBeacon()
- func (m *GroupMutation) ResetBid()
- func (m *GroupMutation) ResetClosedAt()
- func (m *GroupMutation) ResetCmd()
- func (m *GroupMutation) ResetCreatedAt()
- func (m *GroupMutation) ResetEdge(name string) error
- func (m *GroupMutation) ResetField(name string) error
- func (m *GroupMutation) ResetMessage()
- func (m *GroupMutation) ResetOperator()
- func (m *GroupMutation) ResetTask()
- func (m *GroupMutation) ResetVisible()
- func (m *GroupMutation) SetAuthor(i int)
- func (m *GroupMutation) SetBeaconID(id int)
- func (m *GroupMutation) SetBid(i int)
- func (m *GroupMutation) SetClosedAt(t time.Time)
- func (m *GroupMutation) SetCmd(s string)
- func (m *GroupMutation) SetCreatedAt(t time.Time)
- func (m *GroupMutation) SetField(name string, value ent.Value) error
- func (m *GroupMutation) SetOp(op Op)
- func (m *GroupMutation) SetOperatorID(id int)
- func (m *GroupMutation) SetVisible(b bool)
- func (m *GroupMutation) TaskCleared() bool
- func (m *GroupMutation) TaskIDs() (ids []int)
- func (m GroupMutation) Tx() (*Tx, error)
- func (m *GroupMutation) Type() string
- func (m *GroupMutation) Visible() (r bool, exists bool)
- func (m *GroupMutation) Where(ps ...predicate.Group)
- func (m *GroupMutation) WhereP(ps ...func(*sql.Selector))
- type GroupQuery
- func (gq *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect
- func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
- func (gq *GroupQuery) AllX(ctx context.Context) []*Group
- func (gq *GroupQuery) Clone() *GroupQuery
- func (gq *GroupQuery) Count(ctx context.Context) (int, error)
- func (gq *GroupQuery) CountX(ctx context.Context) int
- func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
- func (gq *GroupQuery) ExistX(ctx context.Context) bool
- func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error)
- func (gq *GroupQuery) FirstIDX(ctx context.Context) int
- func (gq *GroupQuery) FirstX(ctx context.Context) *Group
- func (gq *GroupQuery) ForShare(opts ...sql.LockOption) *GroupQuery
- func (gq *GroupQuery) ForUpdate(opts ...sql.LockOption) *GroupQuery
- func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
- func (gq *GroupQuery) IDs(ctx context.Context) (ids []int, err error)
- func (gq *GroupQuery) IDsX(ctx context.Context) []int
- func (gq *GroupQuery) Limit(limit int) *GroupQuery
- func (gq *GroupQuery) Offset(offset int) *GroupQuery
- func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
- func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error)
- func (gq *GroupQuery) OnlyIDX(ctx context.Context) int
- func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
- func (gq *GroupQuery) Order(o ...group.OrderOption) *GroupQuery
- func (gq *GroupQuery) QueryBeacon() *BeaconQuery
- func (gq *GroupQuery) QueryMessage() *MessageQuery
- func (gq *GroupQuery) QueryOperator() *OperatorQuery
- func (gq *GroupQuery) QueryTask() *TaskQuery
- func (gq *GroupQuery) Select(fields ...string) *GroupSelect
- func (gq *GroupQuery) Unique(unique bool) *GroupQuery
- func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
- func (gq *GroupQuery) WithBeacon(opts ...func(*BeaconQuery)) *GroupQuery
- func (gq *GroupQuery) WithMessage(opts ...func(*MessageQuery)) *GroupQuery
- func (gq *GroupQuery) WithOperator(opts ...func(*OperatorQuery)) *GroupQuery
- func (gq *GroupQuery) WithTask(opts ...func(*TaskQuery)) *GroupQuery
- type GroupSelect
- func (gs *GroupSelect) Aggregate(fns ...AggregateFunc) *GroupSelect
- func (s *GroupSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *GroupSelect) BoolX(ctx context.Context) bool
- func (s *GroupSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *GroupSelect) BoolsX(ctx context.Context) []bool
- func (s *GroupSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *GroupSelect) Float64X(ctx context.Context) float64
- func (s *GroupSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *GroupSelect) Float64sX(ctx context.Context) []float64
- func (s *GroupSelect) Int(ctx context.Context) (_ int, err error)
- func (s *GroupSelect) IntX(ctx context.Context) int
- func (s *GroupSelect) Ints(ctx context.Context) ([]int, error)
- func (s *GroupSelect) IntsX(ctx context.Context) []int
- func (gs *GroupSelect) Scan(ctx context.Context, v any) error
- func (s *GroupSelect) ScanX(ctx context.Context, v any)
- func (s *GroupSelect) String(ctx context.Context) (_ string, err error)
- func (s *GroupSelect) StringX(ctx context.Context) string
- func (s *GroupSelect) Strings(ctx context.Context) ([]string, error)
- func (s *GroupSelect) StringsX(ctx context.Context) []string
- type GroupUpdate
- func (gu *GroupUpdate) AddMessage(m ...*Message) *GroupUpdate
- func (gu *GroupUpdate) AddMessageIDs(ids ...int) *GroupUpdate
- func (gu *GroupUpdate) AddTask(t ...*Task) *GroupUpdate
- func (gu *GroupUpdate) AddTaskIDs(ids ...int) *GroupUpdate
- func (gu *GroupUpdate) ClearBeacon() *GroupUpdate
- func (gu *GroupUpdate) ClearClosedAt() *GroupUpdate
- func (gu *GroupUpdate) ClearMessage() *GroupUpdate
- func (gu *GroupUpdate) ClearOperator() *GroupUpdate
- func (gu *GroupUpdate) ClearTask() *GroupUpdate
- func (gu *GroupUpdate) Exec(ctx context.Context) error
- func (gu *GroupUpdate) ExecX(ctx context.Context)
- func (gu *GroupUpdate) Mutation() *GroupMutation
- func (gu *GroupUpdate) RemoveMessage(m ...*Message) *GroupUpdate
- func (gu *GroupUpdate) RemoveMessageIDs(ids ...int) *GroupUpdate
- func (gu *GroupUpdate) RemoveTask(t ...*Task) *GroupUpdate
- func (gu *GroupUpdate) RemoveTaskIDs(ids ...int) *GroupUpdate
- func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
- func (gu *GroupUpdate) SaveX(ctx context.Context) int
- func (gu *GroupUpdate) SetAuthor(i int) *GroupUpdate
- func (gu *GroupUpdate) SetBeacon(b *Beacon) *GroupUpdate
- func (gu *GroupUpdate) SetBeaconID(id int) *GroupUpdate
- func (gu *GroupUpdate) SetBid(i int) *GroupUpdate
- func (gu *GroupUpdate) SetClosedAt(t time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetCmd(s string) *GroupUpdate
- func (gu *GroupUpdate) SetCreatedAt(t time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetNillableAuthor(i *int) *GroupUpdate
- func (gu *GroupUpdate) SetNillableBid(i *int) *GroupUpdate
- func (gu *GroupUpdate) SetNillableClosedAt(t *time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetNillableCmd(s *string) *GroupUpdate
- func (gu *GroupUpdate) SetNillableCreatedAt(t *time.Time) *GroupUpdate
- func (gu *GroupUpdate) SetNillableVisible(b *bool) *GroupUpdate
- func (gu *GroupUpdate) SetOperator(o *Operator) *GroupUpdate
- func (gu *GroupUpdate) SetOperatorID(id int) *GroupUpdate
- func (gu *GroupUpdate) SetVisible(b bool) *GroupUpdate
- func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
- type GroupUpdateOne
- func (guo *GroupUpdateOne) AddMessage(m ...*Message) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddMessageIDs(ids ...int) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddTask(t ...*Task) *GroupUpdateOne
- func (guo *GroupUpdateOne) AddTaskIDs(ids ...int) *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearBeacon() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearClosedAt() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearMessage() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearOperator() *GroupUpdateOne
- func (guo *GroupUpdateOne) ClearTask() *GroupUpdateOne
- func (guo *GroupUpdateOne) Exec(ctx context.Context) error
- func (guo *GroupUpdateOne) ExecX(ctx context.Context)
- func (guo *GroupUpdateOne) Mutation() *GroupMutation
- func (guo *GroupUpdateOne) RemoveMessage(m ...*Message) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveMessageIDs(ids ...int) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveTask(t ...*Task) *GroupUpdateOne
- func (guo *GroupUpdateOne) RemoveTaskIDs(ids ...int) *GroupUpdateOne
- func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
- func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
- func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetAuthor(i int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetBeacon(b *Beacon) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetBeaconID(id int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetBid(i int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetClosedAt(t time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetCmd(s string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetCreatedAt(t time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableAuthor(i *int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableBid(i *int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableClosedAt(t *time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableCmd(s *string) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableCreatedAt(t *time.Time) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetNillableVisible(b *bool) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetOperator(o *Operator) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetOperatorID(id int) *GroupUpdateOne
- func (guo *GroupUpdateOne) SetVisible(b bool) *GroupUpdateOne
- func (guo *GroupUpdateOne) Where(ps ...predicate.Group) *GroupUpdateOne
- type Groups
- type Hook
- type InterceptFunc
- type Interceptor
- type Listener
- type ListenerClient
- func (c *ListenerClient) Create() *ListenerCreate
- func (c *ListenerClient) CreateBulk(builders ...*ListenerCreate) *ListenerCreateBulk
- func (c *ListenerClient) Delete() *ListenerDelete
- func (c *ListenerClient) DeleteOne(l *Listener) *ListenerDeleteOne
- func (c *ListenerClient) DeleteOneID(id int) *ListenerDeleteOne
- func (c *ListenerClient) Get(ctx context.Context, id int) (*Listener, error)
- func (c *ListenerClient) GetX(ctx context.Context, id int) *Listener
- func (c *ListenerClient) Hooks() []Hook
- func (c *ListenerClient) Intercept(interceptors ...Interceptor)
- func (c *ListenerClient) Interceptors() []Interceptor
- func (c *ListenerClient) MapCreateBulk(slice any, setFunc func(*ListenerCreate, int)) *ListenerCreateBulk
- func (c *ListenerClient) Query() *ListenerQuery
- func (c *ListenerClient) QueryBeacon(l *Listener) *BeaconQuery
- func (c *ListenerClient) Update() *ListenerUpdate
- func (c *ListenerClient) UpdateOne(l *Listener) *ListenerUpdateOne
- func (c *ListenerClient) UpdateOneID(id int) *ListenerUpdateOne
- func (c *ListenerClient) Use(hooks ...Hook)
- type ListenerCreate
- func (lc *ListenerCreate) AddBeacon(b ...*Beacon) *ListenerCreate
- func (lc *ListenerCreate) AddBeaconIDs(ids ...int) *ListenerCreate
- func (lc *ListenerCreate) Exec(ctx context.Context) error
- func (lc *ListenerCreate) ExecX(ctx context.Context)
- func (lc *ListenerCreate) Mutation() *ListenerMutation
- func (lc *ListenerCreate) Save(ctx context.Context) (*Listener, error)
- func (lc *ListenerCreate) SaveX(ctx context.Context) *Listener
- func (lc *ListenerCreate) SetColor(u uint32) *ListenerCreate
- func (lc *ListenerCreate) SetCreatedAt(t time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetDeletedAt(t time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetIP(t types.Inet) *ListenerCreate
- func (lc *ListenerCreate) SetLast(t time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetName(s string) *ListenerCreate
- func (lc *ListenerCreate) SetNillableColor(u *uint32) *ListenerCreate
- func (lc *ListenerCreate) SetNillableCreatedAt(t *time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetNillableDeletedAt(t *time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetNillableIP(t *types.Inet) *ListenerCreate
- func (lc *ListenerCreate) SetNillableLast(t *time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetNillableName(s *string) *ListenerCreate
- func (lc *ListenerCreate) SetNillableNote(s *string) *ListenerCreate
- func (lc *ListenerCreate) SetNillablePort(u *uint16) *ListenerCreate
- func (lc *ListenerCreate) SetNillableToken(s *string) *ListenerCreate
- func (lc *ListenerCreate) SetNillableUpdatedAt(t *time.Time) *ListenerCreate
- func (lc *ListenerCreate) SetNote(s string) *ListenerCreate
- func (lc *ListenerCreate) SetPort(u uint16) *ListenerCreate
- func (lc *ListenerCreate) SetToken(s string) *ListenerCreate
- func (lc *ListenerCreate) SetUpdatedAt(t time.Time) *ListenerCreate
- type ListenerCreateBulk
- type ListenerDelete
- type ListenerDeleteOne
- type ListenerEdges
- type ListenerGroupBy
- func (lgb *ListenerGroupBy) Aggregate(fns ...AggregateFunc) *ListenerGroupBy
- func (s *ListenerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ListenerGroupBy) BoolX(ctx context.Context) bool
- func (s *ListenerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ListenerGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ListenerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ListenerGroupBy) Float64X(ctx context.Context) float64
- func (s *ListenerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ListenerGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ListenerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ListenerGroupBy) IntX(ctx context.Context) int
- func (s *ListenerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ListenerGroupBy) IntsX(ctx context.Context) []int
- func (lgb *ListenerGroupBy) Scan(ctx context.Context, v any) error
- func (s *ListenerGroupBy) ScanX(ctx context.Context, v any)
- func (s *ListenerGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ListenerGroupBy) StringX(ctx context.Context) string
- func (s *ListenerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ListenerGroupBy) StringsX(ctx context.Context) []string
- type ListenerMutation
- func (m *ListenerMutation) AddBeaconIDs(ids ...int)
- func (m *ListenerMutation) AddColor(u int32)
- func (m *ListenerMutation) AddField(name string, value ent.Value) error
- func (m *ListenerMutation) AddPort(u int16)
- func (m *ListenerMutation) AddedColor() (r int32, exists bool)
- func (m *ListenerMutation) AddedEdges() []string
- func (m *ListenerMutation) AddedField(name string) (ent.Value, bool)
- func (m *ListenerMutation) AddedFields() []string
- func (m *ListenerMutation) AddedIDs(name string) []ent.Value
- func (m *ListenerMutation) AddedPort() (r int16, exists bool)
- func (m *ListenerMutation) BeaconCleared() bool
- func (m *ListenerMutation) BeaconIDs() (ids []int)
- func (m *ListenerMutation) ClearBeacon()
- func (m *ListenerMutation) ClearDeletedAt()
- func (m *ListenerMutation) ClearEdge(name string) error
- func (m *ListenerMutation) ClearField(name string) error
- func (m *ListenerMutation) ClearIP()
- func (m *ListenerMutation) ClearName()
- func (m *ListenerMutation) ClearNote()
- func (m *ListenerMutation) ClearPort()
- func (m *ListenerMutation) ClearToken()
- func (m *ListenerMutation) ClearedEdges() []string
- func (m *ListenerMutation) ClearedFields() []string
- func (m ListenerMutation) Client() *Client
- func (m *ListenerMutation) Color() (r uint32, exists bool)
- func (m *ListenerMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ListenerMutation) DeletedAt() (r time.Time, exists bool)
- func (m *ListenerMutation) DeletedAtCleared() bool
- func (m *ListenerMutation) EdgeCleared(name string) bool
- func (m *ListenerMutation) Field(name string) (ent.Value, bool)
- func (m *ListenerMutation) FieldCleared(name string) bool
- func (m *ListenerMutation) Fields() []string
- func (m *ListenerMutation) ID() (id int, exists bool)
- func (m *ListenerMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ListenerMutation) IP() (r types.Inet, exists bool)
- func (m *ListenerMutation) IPCleared() bool
- func (m *ListenerMutation) Last() (r time.Time, exists bool)
- func (m *ListenerMutation) Name() (r string, exists bool)
- func (m *ListenerMutation) NameCleared() bool
- func (m *ListenerMutation) Note() (r string, exists bool)
- func (m *ListenerMutation) NoteCleared() bool
- func (m *ListenerMutation) OldColor(ctx context.Context) (v uint32, err error)
- func (m *ListenerMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ListenerMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *ListenerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ListenerMutation) OldIP(ctx context.Context) (v types.Inet, err error)
- func (m *ListenerMutation) OldLast(ctx context.Context) (v time.Time, err error)
- func (m *ListenerMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ListenerMutation) OldNote(ctx context.Context) (v string, err error)
- func (m *ListenerMutation) OldPort(ctx context.Context) (v uint16, err error)
- func (m *ListenerMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *ListenerMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ListenerMutation) Op() Op
- func (m *ListenerMutation) Port() (r uint16, exists bool)
- func (m *ListenerMutation) PortCleared() bool
- func (m *ListenerMutation) RemoveBeaconIDs(ids ...int)
- func (m *ListenerMutation) RemovedBeaconIDs() (ids []int)
- func (m *ListenerMutation) RemovedEdges() []string
- func (m *ListenerMutation) RemovedIDs(name string) []ent.Value
- func (m *ListenerMutation) ResetBeacon()
- func (m *ListenerMutation) ResetColor()
- func (m *ListenerMutation) ResetCreatedAt()
- func (m *ListenerMutation) ResetDeletedAt()
- func (m *ListenerMutation) ResetEdge(name string) error
- func (m *ListenerMutation) ResetField(name string) error
- func (m *ListenerMutation) ResetIP()
- func (m *ListenerMutation) ResetLast()
- func (m *ListenerMutation) ResetName()
- func (m *ListenerMutation) ResetNote()
- func (m *ListenerMutation) ResetPort()
- func (m *ListenerMutation) ResetToken()
- func (m *ListenerMutation) ResetUpdatedAt()
- func (m *ListenerMutation) SetColor(u uint32)
- func (m *ListenerMutation) SetCreatedAt(t time.Time)
- func (m *ListenerMutation) SetDeletedAt(t time.Time)
- func (m *ListenerMutation) SetField(name string, value ent.Value) error
- func (m *ListenerMutation) SetIP(t types.Inet)
- func (m *ListenerMutation) SetLast(t time.Time)
- func (m *ListenerMutation) SetName(s string)
- func (m *ListenerMutation) SetNote(s string)
- func (m *ListenerMutation) SetOp(op Op)
- func (m *ListenerMutation) SetPort(u uint16)
- func (m *ListenerMutation) SetToken(s string)
- func (m *ListenerMutation) SetUpdatedAt(t time.Time)
- func (m *ListenerMutation) Token() (r string, exists bool)
- func (m *ListenerMutation) TokenCleared() bool
- func (m ListenerMutation) Tx() (*Tx, error)
- func (m *ListenerMutation) Type() string
- func (m *ListenerMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ListenerMutation) Where(ps ...predicate.Listener)
- func (m *ListenerMutation) WhereP(ps ...func(*sql.Selector))
- type ListenerQuery
- func (lq *ListenerQuery) Aggregate(fns ...AggregateFunc) *ListenerSelect
- func (lq *ListenerQuery) All(ctx context.Context) ([]*Listener, error)
- func (lq *ListenerQuery) AllX(ctx context.Context) []*Listener
- func (lq *ListenerQuery) Clone() *ListenerQuery
- func (lq *ListenerQuery) Count(ctx context.Context) (int, error)
- func (lq *ListenerQuery) CountX(ctx context.Context) int
- func (lq *ListenerQuery) Exist(ctx context.Context) (bool, error)
- func (lq *ListenerQuery) ExistX(ctx context.Context) bool
- func (lq *ListenerQuery) First(ctx context.Context) (*Listener, error)
- func (lq *ListenerQuery) FirstID(ctx context.Context) (id int, err error)
- func (lq *ListenerQuery) FirstIDX(ctx context.Context) int
- func (lq *ListenerQuery) FirstX(ctx context.Context) *Listener
- func (lq *ListenerQuery) ForShare(opts ...sql.LockOption) *ListenerQuery
- func (lq *ListenerQuery) ForUpdate(opts ...sql.LockOption) *ListenerQuery
- func (lq *ListenerQuery) GroupBy(field string, fields ...string) *ListenerGroupBy
- func (lq *ListenerQuery) IDs(ctx context.Context) (ids []int, err error)
- func (lq *ListenerQuery) IDsX(ctx context.Context) []int
- func (lq *ListenerQuery) Limit(limit int) *ListenerQuery
- func (lq *ListenerQuery) Offset(offset int) *ListenerQuery
- func (lq *ListenerQuery) Only(ctx context.Context) (*Listener, error)
- func (lq *ListenerQuery) OnlyID(ctx context.Context) (id int, err error)
- func (lq *ListenerQuery) OnlyIDX(ctx context.Context) int
- func (lq *ListenerQuery) OnlyX(ctx context.Context) *Listener
- func (lq *ListenerQuery) Order(o ...listener.OrderOption) *ListenerQuery
- func (lq *ListenerQuery) QueryBeacon() *BeaconQuery
- func (lq *ListenerQuery) Select(fields ...string) *ListenerSelect
- func (lq *ListenerQuery) Unique(unique bool) *ListenerQuery
- func (lq *ListenerQuery) Where(ps ...predicate.Listener) *ListenerQuery
- func (lq *ListenerQuery) WithBeacon(opts ...func(*BeaconQuery)) *ListenerQuery
- type ListenerSelect
- func (ls *ListenerSelect) Aggregate(fns ...AggregateFunc) *ListenerSelect
- func (s *ListenerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ListenerSelect) BoolX(ctx context.Context) bool
- func (s *ListenerSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ListenerSelect) BoolsX(ctx context.Context) []bool
- func (s *ListenerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ListenerSelect) Float64X(ctx context.Context) float64
- func (s *ListenerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ListenerSelect) Float64sX(ctx context.Context) []float64
- func (s *ListenerSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ListenerSelect) IntX(ctx context.Context) int
- func (s *ListenerSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ListenerSelect) IntsX(ctx context.Context) []int
- func (ls *ListenerSelect) Scan(ctx context.Context, v any) error
- func (s *ListenerSelect) ScanX(ctx context.Context, v any)
- func (s *ListenerSelect) String(ctx context.Context) (_ string, err error)
- func (s *ListenerSelect) StringX(ctx context.Context) string
- func (s *ListenerSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ListenerSelect) StringsX(ctx context.Context) []string
- type ListenerUpdate
- func (lu *ListenerUpdate) AddBeacon(b ...*Beacon) *ListenerUpdate
- func (lu *ListenerUpdate) AddBeaconIDs(ids ...int) *ListenerUpdate
- func (lu *ListenerUpdate) AddColor(u int32) *ListenerUpdate
- func (lu *ListenerUpdate) AddPort(u int16) *ListenerUpdate
- func (lu *ListenerUpdate) ClearBeacon() *ListenerUpdate
- func (lu *ListenerUpdate) ClearDeletedAt() *ListenerUpdate
- func (lu *ListenerUpdate) ClearIP() *ListenerUpdate
- func (lu *ListenerUpdate) ClearName() *ListenerUpdate
- func (lu *ListenerUpdate) ClearNote() *ListenerUpdate
- func (lu *ListenerUpdate) ClearPort() *ListenerUpdate
- func (lu *ListenerUpdate) ClearToken() *ListenerUpdate
- func (lu *ListenerUpdate) Exec(ctx context.Context) error
- func (lu *ListenerUpdate) ExecX(ctx context.Context)
- func (lu *ListenerUpdate) Mutation() *ListenerMutation
- func (lu *ListenerUpdate) RemoveBeacon(b ...*Beacon) *ListenerUpdate
- func (lu *ListenerUpdate) RemoveBeaconIDs(ids ...int) *ListenerUpdate
- func (lu *ListenerUpdate) Save(ctx context.Context) (int, error)
- func (lu *ListenerUpdate) SaveX(ctx context.Context) int
- func (lu *ListenerUpdate) SetColor(u uint32) *ListenerUpdate
- func (lu *ListenerUpdate) SetDeletedAt(t time.Time) *ListenerUpdate
- func (lu *ListenerUpdate) SetIP(t types.Inet) *ListenerUpdate
- func (lu *ListenerUpdate) SetLast(t time.Time) *ListenerUpdate
- func (lu *ListenerUpdate) SetName(s string) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableColor(u *uint32) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableDeletedAt(t *time.Time) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableIP(t *types.Inet) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableLast(t *time.Time) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableName(s *string) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableNote(s *string) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillablePort(u *uint16) *ListenerUpdate
- func (lu *ListenerUpdate) SetNillableToken(s *string) *ListenerUpdate
- func (lu *ListenerUpdate) SetNote(s string) *ListenerUpdate
- func (lu *ListenerUpdate) SetPort(u uint16) *ListenerUpdate
- func (lu *ListenerUpdate) SetToken(s string) *ListenerUpdate
- func (lu *ListenerUpdate) SetUpdatedAt(t time.Time) *ListenerUpdate
- func (lu *ListenerUpdate) Where(ps ...predicate.Listener) *ListenerUpdate
- type ListenerUpdateOne
- func (luo *ListenerUpdateOne) AddBeacon(b ...*Beacon) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) AddBeaconIDs(ids ...int) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) AddColor(u int32) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) AddPort(u int16) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearBeacon() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearDeletedAt() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearIP() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearName() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearNote() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearPort() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) ClearToken() *ListenerUpdateOne
- func (luo *ListenerUpdateOne) Exec(ctx context.Context) error
- func (luo *ListenerUpdateOne) ExecX(ctx context.Context)
- func (luo *ListenerUpdateOne) Mutation() *ListenerMutation
- func (luo *ListenerUpdateOne) RemoveBeacon(b ...*Beacon) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) RemoveBeaconIDs(ids ...int) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) Save(ctx context.Context) (*Listener, error)
- func (luo *ListenerUpdateOne) SaveX(ctx context.Context) *Listener
- func (luo *ListenerUpdateOne) Select(field string, fields ...string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetColor(u uint32) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetDeletedAt(t time.Time) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetIP(t types.Inet) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetLast(t time.Time) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetName(s string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableColor(u *uint32) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableDeletedAt(t *time.Time) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableIP(t *types.Inet) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableLast(t *time.Time) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableName(s *string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableNote(s *string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillablePort(u *uint16) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNillableToken(s *string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetNote(s string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetPort(u uint16) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetToken(s string) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) SetUpdatedAt(t time.Time) *ListenerUpdateOne
- func (luo *ListenerUpdateOne) Where(ps ...predicate.Listener) *ListenerUpdateOne
- type Listeners
- type Message
- type MessageClient
- func (c *MessageClient) Create() *MessageCreate
- func (c *MessageClient) CreateBulk(builders ...*MessageCreate) *MessageCreateBulk
- func (c *MessageClient) Delete() *MessageDelete
- func (c *MessageClient) DeleteOne(m *Message) *MessageDeleteOne
- func (c *MessageClient) DeleteOneID(id int) *MessageDeleteOne
- func (c *MessageClient) Get(ctx context.Context, id int) (*Message, error)
- func (c *MessageClient) GetX(ctx context.Context, id int) *Message
- func (c *MessageClient) Hooks() []Hook
- func (c *MessageClient) Intercept(interceptors ...Interceptor)
- func (c *MessageClient) Interceptors() []Interceptor
- func (c *MessageClient) MapCreateBulk(slice any, setFunc func(*MessageCreate, int)) *MessageCreateBulk
- func (c *MessageClient) Query() *MessageQuery
- func (c *MessageClient) QueryGroup(m *Message) *GroupQuery
- func (c *MessageClient) Update() *MessageUpdate
- func (c *MessageClient) UpdateOne(m *Message) *MessageUpdateOne
- func (c *MessageClient) UpdateOneID(id int) *MessageUpdateOne
- func (c *MessageClient) Use(hooks ...Hook)
- type MessageCreate
- func (mc *MessageCreate) Exec(ctx context.Context) error
- func (mc *MessageCreate) ExecX(ctx context.Context)
- func (mc *MessageCreate) Mutation() *MessageMutation
- func (mc *MessageCreate) Save(ctx context.Context) (*Message, error)
- func (mc *MessageCreate) SaveX(ctx context.Context) *Message
- func (mc *MessageCreate) SetCreatedAt(t time.Time) *MessageCreate
- func (mc *MessageCreate) SetGid(i int) *MessageCreate
- func (mc *MessageCreate) SetGroup(g *Group) *MessageCreate
- func (mc *MessageCreate) SetGroupID(id int) *MessageCreate
- func (mc *MessageCreate) SetMessage(s string) *MessageCreate
- func (mc *MessageCreate) SetNillableCreatedAt(t *time.Time) *MessageCreate
- func (mc *MessageCreate) SetType(dm defaults.TaskMessage) *MessageCreate
- type MessageCreateBulk
- type MessageDelete
- type MessageDeleteOne
- type MessageEdges
- type MessageGroupBy
- func (mgb *MessageGroupBy) Aggregate(fns ...AggregateFunc) *MessageGroupBy
- func (s *MessageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *MessageGroupBy) BoolX(ctx context.Context) bool
- func (s *MessageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *MessageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *MessageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *MessageGroupBy) Float64X(ctx context.Context) float64
- func (s *MessageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *MessageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *MessageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *MessageGroupBy) IntX(ctx context.Context) int
- func (s *MessageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *MessageGroupBy) IntsX(ctx context.Context) []int
- func (mgb *MessageGroupBy) Scan(ctx context.Context, v any) error
- func (s *MessageGroupBy) ScanX(ctx context.Context, v any)
- func (s *MessageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *MessageGroupBy) StringX(ctx context.Context) string
- func (s *MessageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *MessageGroupBy) StringsX(ctx context.Context) []string
- type MessageMutation
- func (m *MessageMutation) AddField(name string, value ent.Value) error
- func (m *MessageMutation) AddedEdges() []string
- func (m *MessageMutation) AddedField(name string) (ent.Value, bool)
- func (m *MessageMutation) AddedFields() []string
- func (m *MessageMutation) AddedIDs(name string) []ent.Value
- func (m *MessageMutation) ClearEdge(name string) error
- func (m *MessageMutation) ClearField(name string) error
- func (m *MessageMutation) ClearGroup()
- func (m *MessageMutation) ClearedEdges() []string
- func (m *MessageMutation) ClearedFields() []string
- func (m MessageMutation) Client() *Client
- func (m *MessageMutation) CreatedAt() (r time.Time, exists bool)
- func (m *MessageMutation) EdgeCleared(name string) bool
- func (m *MessageMutation) Field(name string) (ent.Value, bool)
- func (m *MessageMutation) FieldCleared(name string) bool
- func (m *MessageMutation) Fields() []string
- func (m *MessageMutation) GetType() (r defaults.TaskMessage, exists bool)
- func (m *MessageMutation) Gid() (r int, exists bool)
- func (m *MessageMutation) GroupCleared() bool
- func (m *MessageMutation) GroupID() (id int, exists bool)
- func (m *MessageMutation) GroupIDs() (ids []int)
- func (m *MessageMutation) ID() (id int, exists bool)
- func (m *MessageMutation) IDs(ctx context.Context) ([]int, error)
- func (m *MessageMutation) Message() (r string, exists bool)
- func (m *MessageMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *MessageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *MessageMutation) OldGid(ctx context.Context) (v int, err error)
- func (m *MessageMutation) OldMessage(ctx context.Context) (v string, err error)
- func (m *MessageMutation) OldType(ctx context.Context) (v defaults.TaskMessage, err error)
- func (m *MessageMutation) Op() Op
- func (m *MessageMutation) RemovedEdges() []string
- func (m *MessageMutation) RemovedIDs(name string) []ent.Value
- func (m *MessageMutation) ResetCreatedAt()
- func (m *MessageMutation) ResetEdge(name string) error
- func (m *MessageMutation) ResetField(name string) error
- func (m *MessageMutation) ResetGid()
- func (m *MessageMutation) ResetGroup()
- func (m *MessageMutation) ResetMessage()
- func (m *MessageMutation) ResetType()
- func (m *MessageMutation) SetCreatedAt(t time.Time)
- func (m *MessageMutation) SetField(name string, value ent.Value) error
- func (m *MessageMutation) SetGid(i int)
- func (m *MessageMutation) SetGroupID(id int)
- func (m *MessageMutation) SetMessage(s string)
- func (m *MessageMutation) SetOp(op Op)
- func (m *MessageMutation) SetType(dm defaults.TaskMessage)
- func (m MessageMutation) Tx() (*Tx, error)
- func (m *MessageMutation) Type() string
- func (m *MessageMutation) Where(ps ...predicate.Message)
- func (m *MessageMutation) WhereP(ps ...func(*sql.Selector))
- type MessageQuery
- func (mq *MessageQuery) Aggregate(fns ...AggregateFunc) *MessageSelect
- func (mq *MessageQuery) All(ctx context.Context) ([]*Message, error)
- func (mq *MessageQuery) AllX(ctx context.Context) []*Message
- func (mq *MessageQuery) Clone() *MessageQuery
- func (mq *MessageQuery) Count(ctx context.Context) (int, error)
- func (mq *MessageQuery) CountX(ctx context.Context) int
- func (mq *MessageQuery) Exist(ctx context.Context) (bool, error)
- func (mq *MessageQuery) ExistX(ctx context.Context) bool
- func (mq *MessageQuery) First(ctx context.Context) (*Message, error)
- func (mq *MessageQuery) FirstID(ctx context.Context) (id int, err error)
- func (mq *MessageQuery) FirstIDX(ctx context.Context) int
- func (mq *MessageQuery) FirstX(ctx context.Context) *Message
- func (mq *MessageQuery) ForShare(opts ...sql.LockOption) *MessageQuery
- func (mq *MessageQuery) ForUpdate(opts ...sql.LockOption) *MessageQuery
- func (mq *MessageQuery) GroupBy(field string, fields ...string) *MessageGroupBy
- func (mq *MessageQuery) IDs(ctx context.Context) (ids []int, err error)
- func (mq *MessageQuery) IDsX(ctx context.Context) []int
- func (mq *MessageQuery) Limit(limit int) *MessageQuery
- func (mq *MessageQuery) Offset(offset int) *MessageQuery
- func (mq *MessageQuery) Only(ctx context.Context) (*Message, error)
- func (mq *MessageQuery) OnlyID(ctx context.Context) (id int, err error)
- func (mq *MessageQuery) OnlyIDX(ctx context.Context) int
- func (mq *MessageQuery) OnlyX(ctx context.Context) *Message
- func (mq *MessageQuery) Order(o ...message.OrderOption) *MessageQuery
- func (mq *MessageQuery) QueryGroup() *GroupQuery
- func (mq *MessageQuery) Select(fields ...string) *MessageSelect
- func (mq *MessageQuery) Unique(unique bool) *MessageQuery
- func (mq *MessageQuery) Where(ps ...predicate.Message) *MessageQuery
- func (mq *MessageQuery) WithGroup(opts ...func(*GroupQuery)) *MessageQuery
- type MessageSelect
- func (ms *MessageSelect) Aggregate(fns ...AggregateFunc) *MessageSelect
- func (s *MessageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *MessageSelect) BoolX(ctx context.Context) bool
- func (s *MessageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *MessageSelect) BoolsX(ctx context.Context) []bool
- func (s *MessageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *MessageSelect) Float64X(ctx context.Context) float64
- func (s *MessageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *MessageSelect) Float64sX(ctx context.Context) []float64
- func (s *MessageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *MessageSelect) IntX(ctx context.Context) int
- func (s *MessageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *MessageSelect) IntsX(ctx context.Context) []int
- func (ms *MessageSelect) Scan(ctx context.Context, v any) error
- func (s *MessageSelect) ScanX(ctx context.Context, v any)
- func (s *MessageSelect) String(ctx context.Context) (_ string, err error)
- func (s *MessageSelect) StringX(ctx context.Context) string
- func (s *MessageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *MessageSelect) StringsX(ctx context.Context) []string
- type MessageUpdate
- func (mu *MessageUpdate) ClearGroup() *MessageUpdate
- func (mu *MessageUpdate) Exec(ctx context.Context) error
- func (mu *MessageUpdate) ExecX(ctx context.Context)
- func (mu *MessageUpdate) Mutation() *MessageMutation
- func (mu *MessageUpdate) Save(ctx context.Context) (int, error)
- func (mu *MessageUpdate) SaveX(ctx context.Context) int
- func (mu *MessageUpdate) SetCreatedAt(t time.Time) *MessageUpdate
- func (mu *MessageUpdate) SetGid(i int) *MessageUpdate
- func (mu *MessageUpdate) SetGroup(g *Group) *MessageUpdate
- func (mu *MessageUpdate) SetGroupID(id int) *MessageUpdate
- func (mu *MessageUpdate) SetMessage(s string) *MessageUpdate
- func (mu *MessageUpdate) SetNillableCreatedAt(t *time.Time) *MessageUpdate
- func (mu *MessageUpdate) SetNillableGid(i *int) *MessageUpdate
- func (mu *MessageUpdate) SetNillableMessage(s *string) *MessageUpdate
- func (mu *MessageUpdate) SetNillableType(dm *defaults.TaskMessage) *MessageUpdate
- func (mu *MessageUpdate) SetType(dm defaults.TaskMessage) *MessageUpdate
- func (mu *MessageUpdate) Where(ps ...predicate.Message) *MessageUpdate
- type MessageUpdateOne
- func (muo *MessageUpdateOne) ClearGroup() *MessageUpdateOne
- func (muo *MessageUpdateOne) Exec(ctx context.Context) error
- func (muo *MessageUpdateOne) ExecX(ctx context.Context)
- func (muo *MessageUpdateOne) Mutation() *MessageMutation
- func (muo *MessageUpdateOne) Save(ctx context.Context) (*Message, error)
- func (muo *MessageUpdateOne) SaveX(ctx context.Context) *Message
- func (muo *MessageUpdateOne) Select(field string, fields ...string) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetCreatedAt(t time.Time) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetGid(i int) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetGroup(g *Group) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetGroupID(id int) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetMessage(s string) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetNillableCreatedAt(t *time.Time) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetNillableGid(i *int) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetNillableMessage(s *string) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetNillableType(dm *defaults.TaskMessage) *MessageUpdateOne
- func (muo *MessageUpdateOne) SetType(dm defaults.TaskMessage) *MessageUpdateOne
- func (muo *MessageUpdateOne) Where(ps ...predicate.Message) *MessageUpdateOne
- type Messages
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Operator
- type OperatorClient
- func (c *OperatorClient) Create() *OperatorCreate
- func (c *OperatorClient) CreateBulk(builders ...*OperatorCreate) *OperatorCreateBulk
- func (c *OperatorClient) Delete() *OperatorDelete
- func (c *OperatorClient) DeleteOne(o *Operator) *OperatorDeleteOne
- func (c *OperatorClient) DeleteOneID(id int) *OperatorDeleteOne
- func (c *OperatorClient) Get(ctx context.Context, id int) (*Operator, error)
- func (c *OperatorClient) GetX(ctx context.Context, id int) *Operator
- func (c *OperatorClient) Hooks() []Hook
- func (c *OperatorClient) Intercept(interceptors ...Interceptor)
- func (c *OperatorClient) Interceptors() []Interceptor
- func (c *OperatorClient) MapCreateBulk(slice any, setFunc func(*OperatorCreate, int)) *OperatorCreateBulk
- func (c *OperatorClient) Query() *OperatorQuery
- func (c *OperatorClient) QueryChat(o *Operator) *ChatQuery
- func (c *OperatorClient) QueryGroup(o *Operator) *GroupQuery
- func (c *OperatorClient) Update() *OperatorUpdate
- func (c *OperatorClient) UpdateOne(o *Operator) *OperatorUpdateOne
- func (c *OperatorClient) UpdateOneID(id int) *OperatorUpdateOne
- func (c *OperatorClient) Use(hooks ...Hook)
- type OperatorCreate
- func (oc *OperatorCreate) AddChat(c ...*Chat) *OperatorCreate
- func (oc *OperatorCreate) AddChatIDs(ids ...int) *OperatorCreate
- func (oc *OperatorCreate) AddGroup(g ...*Group) *OperatorCreate
- func (oc *OperatorCreate) AddGroupIDs(ids ...int) *OperatorCreate
- func (oc *OperatorCreate) Exec(ctx context.Context) error
- func (oc *OperatorCreate) ExecX(ctx context.Context)
- func (oc *OperatorCreate) Mutation() *OperatorMutation
- func (oc *OperatorCreate) Save(ctx context.Context) (*Operator, error)
- func (oc *OperatorCreate) SaveX(ctx context.Context) *Operator
- func (oc *OperatorCreate) SetColor(u uint32) *OperatorCreate
- func (oc *OperatorCreate) SetCreatedAt(t time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetDeletedAt(t time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetLast(t time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetNillableColor(u *uint32) *OperatorCreate
- func (oc *OperatorCreate) SetNillableCreatedAt(t *time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetNillableDeletedAt(t *time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetNillableLast(t *time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetNillableToken(s *string) *OperatorCreate
- func (oc *OperatorCreate) SetNillableUpdatedAt(t *time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetToken(s string) *OperatorCreate
- func (oc *OperatorCreate) SetUpdatedAt(t time.Time) *OperatorCreate
- func (oc *OperatorCreate) SetUsername(s string) *OperatorCreate
- type OperatorCreateBulk
- type OperatorDelete
- type OperatorDeleteOne
- type OperatorEdges
- type OperatorGroupBy
- func (ogb *OperatorGroupBy) Aggregate(fns ...AggregateFunc) *OperatorGroupBy
- func (s *OperatorGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OperatorGroupBy) BoolX(ctx context.Context) bool
- func (s *OperatorGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OperatorGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OperatorGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OperatorGroupBy) Float64X(ctx context.Context) float64
- func (s *OperatorGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OperatorGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OperatorGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OperatorGroupBy) IntX(ctx context.Context) int
- func (s *OperatorGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OperatorGroupBy) IntsX(ctx context.Context) []int
- func (ogb *OperatorGroupBy) Scan(ctx context.Context, v any) error
- func (s *OperatorGroupBy) ScanX(ctx context.Context, v any)
- func (s *OperatorGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OperatorGroupBy) StringX(ctx context.Context) string
- func (s *OperatorGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OperatorGroupBy) StringsX(ctx context.Context) []string
- type OperatorMutation
- func (m *OperatorMutation) AddChatIDs(ids ...int)
- func (m *OperatorMutation) AddColor(u int32)
- func (m *OperatorMutation) AddField(name string, value ent.Value) error
- func (m *OperatorMutation) AddGroupIDs(ids ...int)
- func (m *OperatorMutation) AddedColor() (r int32, exists bool)
- func (m *OperatorMutation) AddedEdges() []string
- func (m *OperatorMutation) AddedField(name string) (ent.Value, bool)
- func (m *OperatorMutation) AddedFields() []string
- func (m *OperatorMutation) AddedIDs(name string) []ent.Value
- func (m *OperatorMutation) ChatCleared() bool
- func (m *OperatorMutation) ChatIDs() (ids []int)
- func (m *OperatorMutation) ClearChat()
- func (m *OperatorMutation) ClearDeletedAt()
- func (m *OperatorMutation) ClearEdge(name string) error
- func (m *OperatorMutation) ClearField(name string) error
- func (m *OperatorMutation) ClearGroup()
- func (m *OperatorMutation) ClearToken()
- func (m *OperatorMutation) ClearedEdges() []string
- func (m *OperatorMutation) ClearedFields() []string
- func (m OperatorMutation) Client() *Client
- func (m *OperatorMutation) Color() (r uint32, exists bool)
- func (m *OperatorMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OperatorMutation) DeletedAt() (r time.Time, exists bool)
- func (m *OperatorMutation) DeletedAtCleared() bool
- func (m *OperatorMutation) EdgeCleared(name string) bool
- func (m *OperatorMutation) Field(name string) (ent.Value, bool)
- func (m *OperatorMutation) FieldCleared(name string) bool
- func (m *OperatorMutation) Fields() []string
- func (m *OperatorMutation) GroupCleared() bool
- func (m *OperatorMutation) GroupIDs() (ids []int)
- func (m *OperatorMutation) ID() (id int, exists bool)
- func (m *OperatorMutation) IDs(ctx context.Context) ([]int, error)
- func (m *OperatorMutation) Last() (r time.Time, exists bool)
- func (m *OperatorMutation) OldColor(ctx context.Context) (v uint32, err error)
- func (m *OperatorMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OperatorMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *OperatorMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OperatorMutation) OldLast(ctx context.Context) (v time.Time, err error)
- func (m *OperatorMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OperatorMutation) OldUsername(ctx context.Context) (v string, err error)
- func (m *OperatorMutation) Op() Op
- func (m *OperatorMutation) RemoveChatIDs(ids ...int)
- func (m *OperatorMutation) RemoveGroupIDs(ids ...int)
- func (m *OperatorMutation) RemovedChatIDs() (ids []int)
- func (m *OperatorMutation) RemovedEdges() []string
- func (m *OperatorMutation) RemovedGroupIDs() (ids []int)
- func (m *OperatorMutation) RemovedIDs(name string) []ent.Value
- func (m *OperatorMutation) ResetChat()
- func (m *OperatorMutation) ResetColor()
- func (m *OperatorMutation) ResetCreatedAt()
- func (m *OperatorMutation) ResetDeletedAt()
- func (m *OperatorMutation) ResetEdge(name string) error
- func (m *OperatorMutation) ResetField(name string) error
- func (m *OperatorMutation) ResetGroup()
- func (m *OperatorMutation) ResetLast()
- func (m *OperatorMutation) ResetToken()
- func (m *OperatorMutation) ResetUpdatedAt()
- func (m *OperatorMutation) ResetUsername()
- func (m *OperatorMutation) SetColor(u uint32)
- func (m *OperatorMutation) SetCreatedAt(t time.Time)
- func (m *OperatorMutation) SetDeletedAt(t time.Time)
- func (m *OperatorMutation) SetField(name string, value ent.Value) error
- func (m *OperatorMutation) SetLast(t time.Time)
- func (m *OperatorMutation) SetOp(op Op)
- func (m *OperatorMutation) SetToken(s string)
- func (m *OperatorMutation) SetUpdatedAt(t time.Time)
- func (m *OperatorMutation) SetUsername(s string)
- func (m *OperatorMutation) Token() (r string, exists bool)
- func (m *OperatorMutation) TokenCleared() bool
- func (m OperatorMutation) Tx() (*Tx, error)
- func (m *OperatorMutation) Type() string
- func (m *OperatorMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *OperatorMutation) Username() (r string, exists bool)
- func (m *OperatorMutation) Where(ps ...predicate.Operator)
- func (m *OperatorMutation) WhereP(ps ...func(*sql.Selector))
- type OperatorQuery
- func (oq *OperatorQuery) Aggregate(fns ...AggregateFunc) *OperatorSelect
- func (oq *OperatorQuery) All(ctx context.Context) ([]*Operator, error)
- func (oq *OperatorQuery) AllX(ctx context.Context) []*Operator
- func (oq *OperatorQuery) Clone() *OperatorQuery
- func (oq *OperatorQuery) Count(ctx context.Context) (int, error)
- func (oq *OperatorQuery) CountX(ctx context.Context) int
- func (oq *OperatorQuery) Exist(ctx context.Context) (bool, error)
- func (oq *OperatorQuery) ExistX(ctx context.Context) bool
- func (oq *OperatorQuery) First(ctx context.Context) (*Operator, error)
- func (oq *OperatorQuery) FirstID(ctx context.Context) (id int, err error)
- func (oq *OperatorQuery) FirstIDX(ctx context.Context) int
- func (oq *OperatorQuery) FirstX(ctx context.Context) *Operator
- func (oq *OperatorQuery) ForShare(opts ...sql.LockOption) *OperatorQuery
- func (oq *OperatorQuery) ForUpdate(opts ...sql.LockOption) *OperatorQuery
- func (oq *OperatorQuery) GroupBy(field string, fields ...string) *OperatorGroupBy
- func (oq *OperatorQuery) IDs(ctx context.Context) (ids []int, err error)
- func (oq *OperatorQuery) IDsX(ctx context.Context) []int
- func (oq *OperatorQuery) Limit(limit int) *OperatorQuery
- func (oq *OperatorQuery) Offset(offset int) *OperatorQuery
- func (oq *OperatorQuery) Only(ctx context.Context) (*Operator, error)
- func (oq *OperatorQuery) OnlyID(ctx context.Context) (id int, err error)
- func (oq *OperatorQuery) OnlyIDX(ctx context.Context) int
- func (oq *OperatorQuery) OnlyX(ctx context.Context) *Operator
- func (oq *OperatorQuery) Order(o ...operator.OrderOption) *OperatorQuery
- func (oq *OperatorQuery) QueryChat() *ChatQuery
- func (oq *OperatorQuery) QueryGroup() *GroupQuery
- func (oq *OperatorQuery) Select(fields ...string) *OperatorSelect
- func (oq *OperatorQuery) Unique(unique bool) *OperatorQuery
- func (oq *OperatorQuery) Where(ps ...predicate.Operator) *OperatorQuery
- func (oq *OperatorQuery) WithChat(opts ...func(*ChatQuery)) *OperatorQuery
- func (oq *OperatorQuery) WithGroup(opts ...func(*GroupQuery)) *OperatorQuery
- type OperatorSelect
- func (os *OperatorSelect) Aggregate(fns ...AggregateFunc) *OperatorSelect
- func (s *OperatorSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OperatorSelect) BoolX(ctx context.Context) bool
- func (s *OperatorSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OperatorSelect) BoolsX(ctx context.Context) []bool
- func (s *OperatorSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OperatorSelect) Float64X(ctx context.Context) float64
- func (s *OperatorSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OperatorSelect) Float64sX(ctx context.Context) []float64
- func (s *OperatorSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OperatorSelect) IntX(ctx context.Context) int
- func (s *OperatorSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OperatorSelect) IntsX(ctx context.Context) []int
- func (os *OperatorSelect) Scan(ctx context.Context, v any) error
- func (s *OperatorSelect) ScanX(ctx context.Context, v any)
- func (s *OperatorSelect) String(ctx context.Context) (_ string, err error)
- func (s *OperatorSelect) StringX(ctx context.Context) string
- func (s *OperatorSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OperatorSelect) StringsX(ctx context.Context) []string
- type OperatorUpdate
- func (ou *OperatorUpdate) AddChat(c ...*Chat) *OperatorUpdate
- func (ou *OperatorUpdate) AddChatIDs(ids ...int) *OperatorUpdate
- func (ou *OperatorUpdate) AddColor(u int32) *OperatorUpdate
- func (ou *OperatorUpdate) AddGroup(g ...*Group) *OperatorUpdate
- func (ou *OperatorUpdate) AddGroupIDs(ids ...int) *OperatorUpdate
- func (ou *OperatorUpdate) ClearChat() *OperatorUpdate
- func (ou *OperatorUpdate) ClearDeletedAt() *OperatorUpdate
- func (ou *OperatorUpdate) ClearGroup() *OperatorUpdate
- func (ou *OperatorUpdate) ClearToken() *OperatorUpdate
- func (ou *OperatorUpdate) Exec(ctx context.Context) error
- func (ou *OperatorUpdate) ExecX(ctx context.Context)
- func (ou *OperatorUpdate) Mutation() *OperatorMutation
- func (ou *OperatorUpdate) RemoveChat(c ...*Chat) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveChatIDs(ids ...int) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveGroup(g ...*Group) *OperatorUpdate
- func (ou *OperatorUpdate) RemoveGroupIDs(ids ...int) *OperatorUpdate
- func (ou *OperatorUpdate) Save(ctx context.Context) (int, error)
- func (ou *OperatorUpdate) SaveX(ctx context.Context) int
- func (ou *OperatorUpdate) SetColor(u uint32) *OperatorUpdate
- func (ou *OperatorUpdate) SetDeletedAt(t time.Time) *OperatorUpdate
- func (ou *OperatorUpdate) SetLast(t time.Time) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableColor(u *uint32) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableDeletedAt(t *time.Time) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableLast(t *time.Time) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableToken(s *string) *OperatorUpdate
- func (ou *OperatorUpdate) SetNillableUsername(s *string) *OperatorUpdate
- func (ou *OperatorUpdate) SetToken(s string) *OperatorUpdate
- func (ou *OperatorUpdate) SetUpdatedAt(t time.Time) *OperatorUpdate
- func (ou *OperatorUpdate) SetUsername(s string) *OperatorUpdate
- func (ou *OperatorUpdate) Where(ps ...predicate.Operator) *OperatorUpdate
- type OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddChat(c ...*Chat) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddChatIDs(ids ...int) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddColor(u int32) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddGroup(g ...*Group) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) AddGroupIDs(ids ...int) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearChat() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearDeletedAt() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearGroup() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) ClearToken() *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Exec(ctx context.Context) error
- func (ouo *OperatorUpdateOne) ExecX(ctx context.Context)
- func (ouo *OperatorUpdateOne) Mutation() *OperatorMutation
- func (ouo *OperatorUpdateOne) RemoveChat(c ...*Chat) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveChatIDs(ids ...int) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveGroup(g ...*Group) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) RemoveGroupIDs(ids ...int) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Save(ctx context.Context) (*Operator, error)
- func (ouo *OperatorUpdateOne) SaveX(ctx context.Context) *Operator
- func (ouo *OperatorUpdateOne) Select(field string, fields ...string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetColor(u uint32) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetDeletedAt(t time.Time) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetLast(t time.Time) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableColor(u *uint32) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableDeletedAt(t *time.Time) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableLast(t *time.Time) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableToken(s *string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetNillableUsername(s *string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetToken(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetUpdatedAt(t time.Time) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) SetUsername(s string) *OperatorUpdateOne
- func (ouo *OperatorUpdateOne) Where(ps ...predicate.Operator) *OperatorUpdateOne
- type Operators
- type Option
- type OrderFunc
- type Pki
- type PkiClient
- func (c *PkiClient) Create() *PkiCreate
- func (c *PkiClient) CreateBulk(builders ...*PkiCreate) *PkiCreateBulk
- func (c *PkiClient) Delete() *PkiDelete
- func (c *PkiClient) DeleteOne(pk *Pki) *PkiDeleteOne
- func (c *PkiClient) DeleteOneID(id int) *PkiDeleteOne
- func (c *PkiClient) Get(ctx context.Context, id int) (*Pki, error)
- func (c *PkiClient) GetX(ctx context.Context, id int) *Pki
- func (c *PkiClient) Hooks() []Hook
- func (c *PkiClient) Intercept(interceptors ...Interceptor)
- func (c *PkiClient) Interceptors() []Interceptor
- func (c *PkiClient) MapCreateBulk(slice any, setFunc func(*PkiCreate, int)) *PkiCreateBulk
- func (c *PkiClient) Query() *PkiQuery
- func (c *PkiClient) Update() *PkiUpdate
- func (c *PkiClient) UpdateOne(pk *Pki) *PkiUpdateOne
- func (c *PkiClient) UpdateOneID(id int) *PkiUpdateOne
- func (c *PkiClient) Use(hooks ...Hook)
- type PkiCreate
- func (pc *PkiCreate) Exec(ctx context.Context) error
- func (pc *PkiCreate) ExecX(ctx context.Context)
- func (pc *PkiCreate) Mutation() *PkiMutation
- func (pc *PkiCreate) Save(ctx context.Context) (*Pki, error)
- func (pc *PkiCreate) SaveX(ctx context.Context) *Pki
- func (pc *PkiCreate) SetCert(b []byte) *PkiCreate
- func (pc *PkiCreate) SetCreatedAt(t time.Time) *PkiCreate
- func (pc *PkiCreate) SetDeletedAt(t time.Time) *PkiCreate
- func (pc *PkiCreate) SetKey(b []byte) *PkiCreate
- func (pc *PkiCreate) SetNillableCreatedAt(t *time.Time) *PkiCreate
- func (pc *PkiCreate) SetNillableDeletedAt(t *time.Time) *PkiCreate
- func (pc *PkiCreate) SetNillableUpdatedAt(t *time.Time) *PkiCreate
- func (pc *PkiCreate) SetType(pk pki.Type) *PkiCreate
- func (pc *PkiCreate) SetUpdatedAt(t time.Time) *PkiCreate
- type PkiCreateBulk
- type PkiDelete
- type PkiDeleteOne
- type PkiGroupBy
- func (pgb *PkiGroupBy) Aggregate(fns ...AggregateFunc) *PkiGroupBy
- func (s *PkiGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PkiGroupBy) BoolX(ctx context.Context) bool
- func (s *PkiGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PkiGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PkiGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PkiGroupBy) Float64X(ctx context.Context) float64
- func (s *PkiGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PkiGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PkiGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PkiGroupBy) IntX(ctx context.Context) int
- func (s *PkiGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PkiGroupBy) IntsX(ctx context.Context) []int
- func (pgb *PkiGroupBy) Scan(ctx context.Context, v any) error
- func (s *PkiGroupBy) ScanX(ctx context.Context, v any)
- func (s *PkiGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PkiGroupBy) StringX(ctx context.Context) string
- func (s *PkiGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PkiGroupBy) StringsX(ctx context.Context) []string
- type PkiMutation
- func (m *PkiMutation) AddField(name string, value ent.Value) error
- func (m *PkiMutation) AddedEdges() []string
- func (m *PkiMutation) AddedField(name string) (ent.Value, bool)
- func (m *PkiMutation) AddedFields() []string
- func (m *PkiMutation) AddedIDs(name string) []ent.Value
- func (m *PkiMutation) Cert() (r []byte, exists bool)
- func (m *PkiMutation) ClearDeletedAt()
- func (m *PkiMutation) ClearEdge(name string) error
- func (m *PkiMutation) ClearField(name string) error
- func (m *PkiMutation) ClearedEdges() []string
- func (m *PkiMutation) ClearedFields() []string
- func (m PkiMutation) Client() *Client
- func (m *PkiMutation) CreatedAt() (r time.Time, exists bool)
- func (m *PkiMutation) DeletedAt() (r time.Time, exists bool)
- func (m *PkiMutation) DeletedAtCleared() bool
- func (m *PkiMutation) EdgeCleared(name string) bool
- func (m *PkiMutation) Field(name string) (ent.Value, bool)
- func (m *PkiMutation) FieldCleared(name string) bool
- func (m *PkiMutation) Fields() []string
- func (m *PkiMutation) GetType() (r pki.Type, exists bool)
- func (m *PkiMutation) ID() (id int, exists bool)
- func (m *PkiMutation) IDs(ctx context.Context) ([]int, error)
- func (m *PkiMutation) Key() (r []byte, exists bool)
- func (m *PkiMutation) OldCert(ctx context.Context) (v []byte, err error)
- func (m *PkiMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PkiMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)
- func (m *PkiMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PkiMutation) OldKey(ctx context.Context) (v []byte, err error)
- func (m *PkiMutation) OldType(ctx context.Context) (v pki.Type, err error)
- func (m *PkiMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PkiMutation) Op() Op
- func (m *PkiMutation) RemovedEdges() []string
- func (m *PkiMutation) RemovedIDs(name string) []ent.Value
- func (m *PkiMutation) ResetCert()
- func (m *PkiMutation) ResetCreatedAt()
- func (m *PkiMutation) ResetDeletedAt()
- func (m *PkiMutation) ResetEdge(name string) error
- func (m *PkiMutation) ResetField(name string) error
- func (m *PkiMutation) ResetKey()
- func (m *PkiMutation) ResetType()
- func (m *PkiMutation) ResetUpdatedAt()
- func (m *PkiMutation) SetCert(b []byte)
- func (m *PkiMutation) SetCreatedAt(t time.Time)
- func (m *PkiMutation) SetDeletedAt(t time.Time)
- func (m *PkiMutation) SetField(name string, value ent.Value) error
- func (m *PkiMutation) SetKey(b []byte)
- func (m *PkiMutation) SetOp(op Op)
- func (m *PkiMutation) SetType(pk pki.Type)
- func (m *PkiMutation) SetUpdatedAt(t time.Time)
- func (m PkiMutation) Tx() (*Tx, error)
- func (m *PkiMutation) Type() string
- func (m *PkiMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *PkiMutation) Where(ps ...predicate.Pki)
- func (m *PkiMutation) WhereP(ps ...func(*sql.Selector))
- type PkiQuery
- func (pq *PkiQuery) Aggregate(fns ...AggregateFunc) *PkiSelect
- func (pq *PkiQuery) All(ctx context.Context) ([]*Pki, error)
- func (pq *PkiQuery) AllX(ctx context.Context) []*Pki
- func (pq *PkiQuery) Clone() *PkiQuery
- func (pq *PkiQuery) Count(ctx context.Context) (int, error)
- func (pq *PkiQuery) CountX(ctx context.Context) int
- func (pq *PkiQuery) Exist(ctx context.Context) (bool, error)
- func (pq *PkiQuery) ExistX(ctx context.Context) bool
- func (pq *PkiQuery) First(ctx context.Context) (*Pki, error)
- func (pq *PkiQuery) FirstID(ctx context.Context) (id int, err error)
- func (pq *PkiQuery) FirstIDX(ctx context.Context) int
- func (pq *PkiQuery) FirstX(ctx context.Context) *Pki
- func (pq *PkiQuery) ForShare(opts ...sql.LockOption) *PkiQuery
- func (pq *PkiQuery) ForUpdate(opts ...sql.LockOption) *PkiQuery
- func (pq *PkiQuery) GroupBy(field string, fields ...string) *PkiGroupBy
- func (pq *PkiQuery) IDs(ctx context.Context) (ids []int, err error)
- func (pq *PkiQuery) IDsX(ctx context.Context) []int
- func (pq *PkiQuery) Limit(limit int) *PkiQuery
- func (pq *PkiQuery) Offset(offset int) *PkiQuery
- func (pq *PkiQuery) Only(ctx context.Context) (*Pki, error)
- func (pq *PkiQuery) OnlyID(ctx context.Context) (id int, err error)
- func (pq *PkiQuery) OnlyIDX(ctx context.Context) int
- func (pq *PkiQuery) OnlyX(ctx context.Context) *Pki
- func (pq *PkiQuery) Order(o ...pki.OrderOption) *PkiQuery
- func (pq *PkiQuery) Select(fields ...string) *PkiSelect
- func (pq *PkiQuery) Unique(unique bool) *PkiQuery
- func (pq *PkiQuery) Where(ps ...predicate.Pki) *PkiQuery
- type PkiSelect
- func (ps *PkiSelect) Aggregate(fns ...AggregateFunc) *PkiSelect
- func (s *PkiSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PkiSelect) BoolX(ctx context.Context) bool
- func (s *PkiSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PkiSelect) BoolsX(ctx context.Context) []bool
- func (s *PkiSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PkiSelect) Float64X(ctx context.Context) float64
- func (s *PkiSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PkiSelect) Float64sX(ctx context.Context) []float64
- func (s *PkiSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PkiSelect) IntX(ctx context.Context) int
- func (s *PkiSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PkiSelect) IntsX(ctx context.Context) []int
- func (ps *PkiSelect) Scan(ctx context.Context, v any) error
- func (s *PkiSelect) ScanX(ctx context.Context, v any)
- func (s *PkiSelect) String(ctx context.Context) (_ string, err error)
- func (s *PkiSelect) StringX(ctx context.Context) string
- func (s *PkiSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PkiSelect) StringsX(ctx context.Context) []string
- type PkiUpdate
- func (pu *PkiUpdate) ClearDeletedAt() *PkiUpdate
- func (pu *PkiUpdate) Exec(ctx context.Context) error
- func (pu *PkiUpdate) ExecX(ctx context.Context)
- func (pu *PkiUpdate) Mutation() *PkiMutation
- func (pu *PkiUpdate) Save(ctx context.Context) (int, error)
- func (pu *PkiUpdate) SaveX(ctx context.Context) int
- func (pu *PkiUpdate) SetCert(b []byte) *PkiUpdate
- func (pu *PkiUpdate) SetDeletedAt(t time.Time) *PkiUpdate
- func (pu *PkiUpdate) SetKey(b []byte) *PkiUpdate
- func (pu *PkiUpdate) SetNillableDeletedAt(t *time.Time) *PkiUpdate
- func (pu *PkiUpdate) SetNillableType(pk *pki.Type) *PkiUpdate
- func (pu *PkiUpdate) SetType(pk pki.Type) *PkiUpdate
- func (pu *PkiUpdate) SetUpdatedAt(t time.Time) *PkiUpdate
- func (pu *PkiUpdate) Where(ps ...predicate.Pki) *PkiUpdate
- type PkiUpdateOne
- func (puo *PkiUpdateOne) ClearDeletedAt() *PkiUpdateOne
- func (puo *PkiUpdateOne) Exec(ctx context.Context) error
- func (puo *PkiUpdateOne) ExecX(ctx context.Context)
- func (puo *PkiUpdateOne) Mutation() *PkiMutation
- func (puo *PkiUpdateOne) Save(ctx context.Context) (*Pki, error)
- func (puo *PkiUpdateOne) SaveX(ctx context.Context) *Pki
- func (puo *PkiUpdateOne) Select(field string, fields ...string) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetCert(b []byte) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetDeletedAt(t time.Time) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetKey(b []byte) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetNillableDeletedAt(t *time.Time) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetNillableType(pk *pki.Type) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetType(pk pki.Type) *PkiUpdateOne
- func (puo *PkiUpdateOne) SetUpdatedAt(t time.Time) *PkiUpdateOne
- func (puo *PkiUpdateOne) Where(ps ...predicate.Pki) *PkiUpdateOne
- type Pkis
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Task
- func (t *Task) QueryBeacon() *BeaconQuery
- func (t *Task) QueryBlobberArgs() *BlobberQuery
- func (t *Task) QueryBlobberOutput() *BlobberQuery
- func (t *Task) QueryGroup() *GroupQuery
- func (t *Task) String() string
- func (t *Task) Unwrap() *Task
- func (t *Task) Update() *TaskUpdateOne
- func (t *Task) Value(name string) (ent.Value, error)
- type TaskClient
- func (c *TaskClient) Create() *TaskCreate
- func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
- func (c *TaskClient) Delete() *TaskDelete
- func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
- func (c *TaskClient) DeleteOneID(id int) *TaskDeleteOne
- func (c *TaskClient) Get(ctx context.Context, id int) (*Task, error)
- func (c *TaskClient) GetX(ctx context.Context, id int) *Task
- func (c *TaskClient) Hooks() []Hook
- func (c *TaskClient) Intercept(interceptors ...Interceptor)
- func (c *TaskClient) Interceptors() []Interceptor
- func (c *TaskClient) MapCreateBulk(slice any, setFunc func(*TaskCreate, int)) *TaskCreateBulk
- func (c *TaskClient) Query() *TaskQuery
- func (c *TaskClient) QueryBeacon(t *Task) *BeaconQuery
- func (c *TaskClient) QueryBlobberArgs(t *Task) *BlobberQuery
- func (c *TaskClient) QueryBlobberOutput(t *Task) *BlobberQuery
- func (c *TaskClient) QueryGroup(t *Task) *GroupQuery
- func (c *TaskClient) Update() *TaskUpdate
- func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
- func (c *TaskClient) UpdateOneID(id int) *TaskUpdateOne
- func (c *TaskClient) Use(hooks ...Hook)
- type TaskCreate
- func (tc *TaskCreate) Exec(ctx context.Context) error
- func (tc *TaskCreate) ExecX(ctx context.Context)
- func (tc *TaskCreate) Mutation() *TaskMutation
- func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
- func (tc *TaskCreate) SaveX(ctx context.Context) *Task
- func (tc *TaskCreate) SetArgs(i int) *TaskCreate
- func (tc *TaskCreate) SetBeacon(b *Beacon) *TaskCreate
- func (tc *TaskCreate) SetBeaconID(id int) *TaskCreate
- func (tc *TaskCreate) SetBid(i int) *TaskCreate
- func (tc *TaskCreate) SetBlobberArgs(b *Blobber) *TaskCreate
- func (tc *TaskCreate) SetBlobberArgsID(id int) *TaskCreate
- func (tc *TaskCreate) SetBlobberOutput(b *Blobber) *TaskCreate
- func (tc *TaskCreate) SetBlobberOutputID(id int) *TaskCreate
- func (tc *TaskCreate) SetCap(d defaults.Capability) *TaskCreate
- func (tc *TaskCreate) SetCreatedAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetDoneAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetGid(i int) *TaskCreate
- func (tc *TaskCreate) SetGroup(g *Group) *TaskCreate
- func (tc *TaskCreate) SetGroupID(id int) *TaskCreate
- func (tc *TaskCreate) SetNillableBlobberOutputID(id *int) *TaskCreate
- func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetNillableDoneAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetNillableOutput(i *int) *TaskCreate
- func (tc *TaskCreate) SetNillableOutputBig(b *bool) *TaskCreate
- func (tc *TaskCreate) SetNillablePushedAt(t *time.Time) *TaskCreate
- func (tc *TaskCreate) SetOutput(i int) *TaskCreate
- func (tc *TaskCreate) SetOutputBig(b bool) *TaskCreate
- func (tc *TaskCreate) SetPushedAt(t time.Time) *TaskCreate
- func (tc *TaskCreate) SetStatus(ds defaults.TaskStatus) *TaskCreate
- type TaskCreateBulk
- type TaskDelete
- type TaskDeleteOne
- type TaskEdges
- type TaskGroupBy
- func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
- func (s *TaskGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TaskGroupBy) BoolX(ctx context.Context) bool
- func (s *TaskGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TaskGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TaskGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TaskGroupBy) Float64X(ctx context.Context) float64
- func (s *TaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TaskGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TaskGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TaskGroupBy) IntX(ctx context.Context) int
- func (s *TaskGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TaskGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TaskGroupBy) Scan(ctx context.Context, v any) error
- func (s *TaskGroupBy) ScanX(ctx context.Context, v any)
- func (s *TaskGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TaskGroupBy) StringX(ctx context.Context) string
- func (s *TaskGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TaskGroupBy) StringsX(ctx context.Context) []string
- type TaskMutation
- func (m *TaskMutation) AddField(name string, value ent.Value) error
- func (m *TaskMutation) AddedEdges() []string
- func (m *TaskMutation) AddedField(name string) (ent.Value, bool)
- func (m *TaskMutation) AddedFields() []string
- func (m *TaskMutation) AddedIDs(name string) []ent.Value
- func (m *TaskMutation) Args() (r int, exists bool)
- func (m *TaskMutation) BeaconCleared() bool
- func (m *TaskMutation) BeaconID() (id int, exists bool)
- func (m *TaskMutation) BeaconIDs() (ids []int)
- func (m *TaskMutation) Bid() (r int, exists bool)
- func (m *TaskMutation) BlobberArgsCleared() bool
- func (m *TaskMutation) BlobberArgsID() (id int, exists bool)
- func (m *TaskMutation) BlobberArgsIDs() (ids []int)
- func (m *TaskMutation) BlobberOutputCleared() bool
- func (m *TaskMutation) BlobberOutputID() (id int, exists bool)
- func (m *TaskMutation) BlobberOutputIDs() (ids []int)
- func (m *TaskMutation) Cap() (r defaults.Capability, exists bool)
- func (m *TaskMutation) ClearBeacon()
- func (m *TaskMutation) ClearBlobberArgs()
- func (m *TaskMutation) ClearBlobberOutput()
- func (m *TaskMutation) ClearDoneAt()
- func (m *TaskMutation) ClearEdge(name string) error
- func (m *TaskMutation) ClearField(name string) error
- func (m *TaskMutation) ClearGroup()
- func (m *TaskMutation) ClearOutput()
- func (m *TaskMutation) ClearOutputBig()
- func (m *TaskMutation) ClearPushedAt()
- func (m *TaskMutation) ClearedEdges() []string
- func (m *TaskMutation) ClearedFields() []string
- func (m TaskMutation) Client() *Client
- func (m *TaskMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TaskMutation) DoneAt() (r time.Time, exists bool)
- func (m *TaskMutation) DoneAtCleared() bool
- func (m *TaskMutation) EdgeCleared(name string) bool
- func (m *TaskMutation) Field(name string) (ent.Value, bool)
- func (m *TaskMutation) FieldCleared(name string) bool
- func (m *TaskMutation) Fields() []string
- func (m *TaskMutation) Gid() (r int, exists bool)
- func (m *TaskMutation) GroupCleared() bool
- func (m *TaskMutation) GroupID() (id int, exists bool)
- func (m *TaskMutation) GroupIDs() (ids []int)
- func (m *TaskMutation) ID() (id int, exists bool)
- func (m *TaskMutation) IDs(ctx context.Context) ([]int, error)
- func (m *TaskMutation) OldArgs(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldBid(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldCap(ctx context.Context) (v defaults.Capability, err error)
- func (m *TaskMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldDoneAt(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TaskMutation) OldGid(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldOutput(ctx context.Context) (v int, err error)
- func (m *TaskMutation) OldOutputBig(ctx context.Context) (v bool, err error)
- func (m *TaskMutation) OldPushedAt(ctx context.Context) (v time.Time, err error)
- func (m *TaskMutation) OldStatus(ctx context.Context) (v defaults.TaskStatus, err error)
- func (m *TaskMutation) Op() Op
- func (m *TaskMutation) Output() (r int, exists bool)
- func (m *TaskMutation) OutputBig() (r bool, exists bool)
- func (m *TaskMutation) OutputBigCleared() bool
- func (m *TaskMutation) OutputCleared() bool
- func (m *TaskMutation) PushedAt() (r time.Time, exists bool)
- func (m *TaskMutation) PushedAtCleared() bool
- func (m *TaskMutation) RemovedEdges() []string
- func (m *TaskMutation) RemovedIDs(name string) []ent.Value
- func (m *TaskMutation) ResetArgs()
- func (m *TaskMutation) ResetBeacon()
- func (m *TaskMutation) ResetBid()
- func (m *TaskMutation) ResetBlobberArgs()
- func (m *TaskMutation) ResetBlobberOutput()
- func (m *TaskMutation) ResetCap()
- func (m *TaskMutation) ResetCreatedAt()
- func (m *TaskMutation) ResetDoneAt()
- func (m *TaskMutation) ResetEdge(name string) error
- func (m *TaskMutation) ResetField(name string) error
- func (m *TaskMutation) ResetGid()
- func (m *TaskMutation) ResetGroup()
- func (m *TaskMutation) ResetOutput()
- func (m *TaskMutation) ResetOutputBig()
- func (m *TaskMutation) ResetPushedAt()
- func (m *TaskMutation) ResetStatus()
- func (m *TaskMutation) SetArgs(i int)
- func (m *TaskMutation) SetBeaconID(id int)
- func (m *TaskMutation) SetBid(i int)
- func (m *TaskMutation) SetBlobberArgsID(id int)
- func (m *TaskMutation) SetBlobberOutputID(id int)
- func (m *TaskMutation) SetCap(d defaults.Capability)
- func (m *TaskMutation) SetCreatedAt(t time.Time)
- func (m *TaskMutation) SetDoneAt(t time.Time)
- func (m *TaskMutation) SetField(name string, value ent.Value) error
- func (m *TaskMutation) SetGid(i int)
- func (m *TaskMutation) SetGroupID(id int)
- func (m *TaskMutation) SetOp(op Op)
- func (m *TaskMutation) SetOutput(i int)
- func (m *TaskMutation) SetOutputBig(b bool)
- func (m *TaskMutation) SetPushedAt(t time.Time)
- func (m *TaskMutation) SetStatus(ds defaults.TaskStatus)
- func (m *TaskMutation) Status() (r defaults.TaskStatus, exists bool)
- func (m TaskMutation) Tx() (*Tx, error)
- func (m *TaskMutation) Type() string
- func (m *TaskMutation) Where(ps ...predicate.Task)
- func (m *TaskMutation) WhereP(ps ...func(*sql.Selector))
- type TaskQuery
- func (tq *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect
- func (tq *TaskQuery) All(ctx context.Context) ([]*Task, error)
- func (tq *TaskQuery) AllX(ctx context.Context) []*Task
- func (tq *TaskQuery) Clone() *TaskQuery
- func (tq *TaskQuery) Count(ctx context.Context) (int, error)
- func (tq *TaskQuery) CountX(ctx context.Context) int
- func (tq *TaskQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TaskQuery) ExistX(ctx context.Context) bool
- func (tq *TaskQuery) First(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) FirstID(ctx context.Context) (id int, err error)
- func (tq *TaskQuery) FirstIDX(ctx context.Context) int
- func (tq *TaskQuery) FirstX(ctx context.Context) *Task
- func (tq *TaskQuery) ForShare(opts ...sql.LockOption) *TaskQuery
- func (tq *TaskQuery) ForUpdate(opts ...sql.LockOption) *TaskQuery
- func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
- func (tq *TaskQuery) IDs(ctx context.Context) (ids []int, err error)
- func (tq *TaskQuery) IDsX(ctx context.Context) []int
- func (tq *TaskQuery) Limit(limit int) *TaskQuery
- func (tq *TaskQuery) Offset(offset int) *TaskQuery
- func (tq *TaskQuery) Only(ctx context.Context) (*Task, error)
- func (tq *TaskQuery) OnlyID(ctx context.Context) (id int, err error)
- func (tq *TaskQuery) OnlyIDX(ctx context.Context) int
- func (tq *TaskQuery) OnlyX(ctx context.Context) *Task
- func (tq *TaskQuery) Order(o ...task.OrderOption) *TaskQuery
- func (tq *TaskQuery) QueryBeacon() *BeaconQuery
- func (tq *TaskQuery) QueryBlobberArgs() *BlobberQuery
- func (tq *TaskQuery) QueryBlobberOutput() *BlobberQuery
- func (tq *TaskQuery) QueryGroup() *GroupQuery
- func (tq *TaskQuery) Select(fields ...string) *TaskSelect
- func (tq *TaskQuery) Unique(unique bool) *TaskQuery
- func (tq *TaskQuery) Where(ps ...predicate.Task) *TaskQuery
- func (tq *TaskQuery) WithBeacon(opts ...func(*BeaconQuery)) *TaskQuery
- func (tq *TaskQuery) WithBlobberArgs(opts ...func(*BlobberQuery)) *TaskQuery
- func (tq *TaskQuery) WithBlobberOutput(opts ...func(*BlobberQuery)) *TaskQuery
- func (tq *TaskQuery) WithGroup(opts ...func(*GroupQuery)) *TaskQuery
- type TaskSelect
- func (ts *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect
- func (s *TaskSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TaskSelect) BoolX(ctx context.Context) bool
- func (s *TaskSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TaskSelect) BoolsX(ctx context.Context) []bool
- func (s *TaskSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TaskSelect) Float64X(ctx context.Context) float64
- func (s *TaskSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TaskSelect) Float64sX(ctx context.Context) []float64
- func (s *TaskSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TaskSelect) IntX(ctx context.Context) int
- func (s *TaskSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TaskSelect) IntsX(ctx context.Context) []int
- func (ts *TaskSelect) Scan(ctx context.Context, v any) error
- func (s *TaskSelect) ScanX(ctx context.Context, v any)
- func (s *TaskSelect) String(ctx context.Context) (_ string, err error)
- func (s *TaskSelect) StringX(ctx context.Context) string
- func (s *TaskSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TaskSelect) StringsX(ctx context.Context) []string
- type TaskUpdate
- func (tu *TaskUpdate) ClearBeacon() *TaskUpdate
- func (tu *TaskUpdate) ClearBlobberArgs() *TaskUpdate
- func (tu *TaskUpdate) ClearBlobberOutput() *TaskUpdate
- func (tu *TaskUpdate) ClearDoneAt() *TaskUpdate
- func (tu *TaskUpdate) ClearGroup() *TaskUpdate
- func (tu *TaskUpdate) ClearOutput() *TaskUpdate
- func (tu *TaskUpdate) ClearOutputBig() *TaskUpdate
- func (tu *TaskUpdate) ClearPushedAt() *TaskUpdate
- func (tu *TaskUpdate) Exec(ctx context.Context) error
- func (tu *TaskUpdate) ExecX(ctx context.Context)
- func (tu *TaskUpdate) Mutation() *TaskMutation
- func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
- func (tu *TaskUpdate) SaveX(ctx context.Context) int
- func (tu *TaskUpdate) SetArgs(i int) *TaskUpdate
- func (tu *TaskUpdate) SetBeacon(b *Beacon) *TaskUpdate
- func (tu *TaskUpdate) SetBeaconID(id int) *TaskUpdate
- func (tu *TaskUpdate) SetBid(i int) *TaskUpdate
- func (tu *TaskUpdate) SetBlobberArgs(b *Blobber) *TaskUpdate
- func (tu *TaskUpdate) SetBlobberArgsID(id int) *TaskUpdate
- func (tu *TaskUpdate) SetBlobberOutput(b *Blobber) *TaskUpdate
- func (tu *TaskUpdate) SetBlobberOutputID(id int) *TaskUpdate
- func (tu *TaskUpdate) SetCap(d defaults.Capability) *TaskUpdate
- func (tu *TaskUpdate) SetCreatedAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetDoneAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetGid(i int) *TaskUpdate
- func (tu *TaskUpdate) SetGroup(g *Group) *TaskUpdate
- func (tu *TaskUpdate) SetGroupID(id int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableArgs(i *int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableBid(i *int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableBlobberOutputID(id *int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableCap(d *defaults.Capability) *TaskUpdate
- func (tu *TaskUpdate) SetNillableCreatedAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableDoneAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableGid(i *int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableOutput(i *int) *TaskUpdate
- func (tu *TaskUpdate) SetNillableOutputBig(b *bool) *TaskUpdate
- func (tu *TaskUpdate) SetNillablePushedAt(t *time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetNillableStatus(ds *defaults.TaskStatus) *TaskUpdate
- func (tu *TaskUpdate) SetOutput(i int) *TaskUpdate
- func (tu *TaskUpdate) SetOutputBig(b bool) *TaskUpdate
- func (tu *TaskUpdate) SetPushedAt(t time.Time) *TaskUpdate
- func (tu *TaskUpdate) SetStatus(ds defaults.TaskStatus) *TaskUpdate
- func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
- type TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearBeacon() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearBlobberArgs() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearBlobberOutput() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearDoneAt() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearGroup() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearOutput() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearOutputBig() *TaskUpdateOne
- func (tuo *TaskUpdateOne) ClearPushedAt() *TaskUpdateOne
- func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
- func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
- func (tuo *TaskUpdateOne) Mutation() *TaskMutation
- func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
- func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
- func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetArgs(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBeacon(b *Beacon) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBeaconID(id int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBid(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBlobberArgs(b *Blobber) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBlobberArgsID(id int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBlobberOutput(b *Blobber) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetBlobberOutputID(id int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetCap(d defaults.Capability) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetCreatedAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetDoneAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetGid(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetGroup(g *Group) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetGroupID(id int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableArgs(i *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableBid(i *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableBlobberOutputID(id *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableCap(d *defaults.Capability) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableCreatedAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableDoneAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableGid(i *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableOutput(i *int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableOutputBig(b *bool) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillablePushedAt(t *time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetNillableStatus(ds *defaults.TaskStatus) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetOutput(i int) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetOutputBig(b bool) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetPushedAt(t time.Time) *TaskUpdateOne
- func (tuo *TaskUpdateOne) SetStatus(ds defaults.TaskStatus) *TaskUpdateOne
- func (tuo *TaskUpdateOne) Where(ps ...predicate.Task) *TaskUpdateOne
- type Tasks
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeBeacon = "Beacon" TypeBlobber = "Blobber" TypeChat = "Chat" TypeCredential = "Credential" TypeGroup = "Group" TypeListener = "Listener" TypeMessage = "Message" TypeOperator = "Operator" TypePki = "Pki" TypeTask = "Task" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Beacon ¶
type Beacon struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // beacon ID Bid uint32 `json:"bid,omitempty"` // linked listener ID ListenerID int `json:"listener_id,omitempty"` // external IP address of beacon ExtIP types.Inet `json:"ext_ip,omitempty"` // internal IP address of beacon IntIP types.Inet `json:"int_ip,omitempty"` // type of operating system Os defaults.BeaconOS `json:"os,omitempty"` // metadata of operating system OsMeta string `json:"os_meta,omitempty"` // hostname of machine, on which beacon deployed Hostname string `json:"hostname,omitempty"` // username of beacon's process Username string `json:"username,omitempty"` // domain of machine, on which beacon deployed Domain string `json:"domain,omitempty"` // is beacon process is privileged Privileged bool `json:"privileged,omitempty"` // name of beacon process ProcessName string `json:"process_name,omitempty"` // process ID of beacon Pid uint32 `json:"pid,omitempty"` // architecture of beacon process Arch defaults.BeaconArch `json:"arch,omitempty"` // sleep value of beacon Sleep uint32 `json:"sleep,omitempty"` // jitter value of sleep Jitter uint8 `json:"jitter,omitempty"` // first checkout timestamp First time.Time `json:"first,omitempty"` // last activity of listener Last time.Time `json:"last,omitempty"` // capabilities of beacon Caps uint32 `json:"caps,omitempty"` // note of beacon Note string `json:"note,omitempty"` // color of entity Color uint32 `json:"color,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the BeaconQuery when eager-loading is set. Edges BeaconEdges `json:"edges"` // contains filtered or unexported fields }
Beacon is the model entity for the Beacon schema.
func (*Beacon) QueryGroup ¶
func (b *Beacon) QueryGroup() *GroupQuery
QueryGroup queries the "group" edge of the Beacon entity.
func (*Beacon) QueryListener ¶
func (b *Beacon) QueryListener() *ListenerQuery
QueryListener queries the "listener" edge of the Beacon entity.
func (*Beacon) Unwrap ¶
Unwrap unwraps the Beacon entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Beacon) Update ¶
func (b *Beacon) Update() *BeaconUpdateOne
Update returns a builder for updating this Beacon. Note that you need to call Beacon.Unwrap() before calling this method if this Beacon was returned from a transaction, and the transaction was committed or rolled back.
type BeaconClient ¶
type BeaconClient struct {
// contains filtered or unexported fields
}
BeaconClient is a client for the Beacon schema.
func NewBeaconClient ¶
func NewBeaconClient(c config) *BeaconClient
NewBeaconClient returns a client for the Beacon from the given config.
func (*BeaconClient) Create ¶
func (c *BeaconClient) Create() *BeaconCreate
Create returns a builder for creating a Beacon entity.
func (*BeaconClient) CreateBulk ¶
func (c *BeaconClient) CreateBulk(builders ...*BeaconCreate) *BeaconCreateBulk
CreateBulk returns a builder for creating a bulk of Beacon entities.
func (*BeaconClient) Delete ¶
func (c *BeaconClient) Delete() *BeaconDelete
Delete returns a delete builder for Beacon.
func (*BeaconClient) DeleteOne ¶
func (c *BeaconClient) DeleteOne(b *Beacon) *BeaconDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BeaconClient) DeleteOneID ¶
func (c *BeaconClient) DeleteOneID(id int) *BeaconDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BeaconClient) GetX ¶
func (c *BeaconClient) GetX(ctx context.Context, id int) *Beacon
GetX is like Get, but panics if an error occurs.
func (*BeaconClient) Intercept ¶
func (c *BeaconClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `beacon.Intercept(f(g(h())))`.
func (*BeaconClient) Interceptors ¶
func (c *BeaconClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BeaconClient) MapCreateBulk ¶
func (c *BeaconClient) MapCreateBulk(slice any, setFunc func(*BeaconCreate, int)) *BeaconCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*BeaconClient) Query ¶
func (c *BeaconClient) Query() *BeaconQuery
Query returns a query builder for Beacon.
func (*BeaconClient) QueryGroup ¶
func (c *BeaconClient) QueryGroup(b *Beacon) *GroupQuery
QueryGroup queries the group edge of a Beacon.
func (*BeaconClient) QueryListener ¶
func (c *BeaconClient) QueryListener(b *Beacon) *ListenerQuery
QueryListener queries the listener edge of a Beacon.
func (*BeaconClient) QueryTask ¶
func (c *BeaconClient) QueryTask(b *Beacon) *TaskQuery
QueryTask queries the task edge of a Beacon.
func (*BeaconClient) Update ¶
func (c *BeaconClient) Update() *BeaconUpdate
Update returns an update builder for Beacon.
func (*BeaconClient) UpdateOne ¶
func (c *BeaconClient) UpdateOne(b *Beacon) *BeaconUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BeaconClient) UpdateOneID ¶
func (c *BeaconClient) UpdateOneID(id int) *BeaconUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BeaconClient) Use ¶
func (c *BeaconClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `beacon.Hooks(f(g(h())))`.
type BeaconCreate ¶
type BeaconCreate struct {
// contains filtered or unexported fields
}
BeaconCreate is the builder for creating a Beacon entity.
func (*BeaconCreate) AddGroup ¶
func (bc *BeaconCreate) AddGroup(g ...*Group) *BeaconCreate
AddGroup adds the "group" edges to the Group entity.
func (*BeaconCreate) AddGroupIDs ¶
func (bc *BeaconCreate) AddGroupIDs(ids ...int) *BeaconCreate
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*BeaconCreate) AddTask ¶
func (bc *BeaconCreate) AddTask(t ...*Task) *BeaconCreate
AddTask adds the "task" edges to the Task entity.
func (*BeaconCreate) AddTaskIDs ¶
func (bc *BeaconCreate) AddTaskIDs(ids ...int) *BeaconCreate
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*BeaconCreate) Exec ¶
func (bc *BeaconCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BeaconCreate) ExecX ¶
func (bc *BeaconCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeaconCreate) Mutation ¶
func (bc *BeaconCreate) Mutation() *BeaconMutation
Mutation returns the BeaconMutation object of the builder.
func (*BeaconCreate) Save ¶
func (bc *BeaconCreate) Save(ctx context.Context) (*Beacon, error)
Save creates the Beacon in the database.
func (*BeaconCreate) SaveX ¶
func (bc *BeaconCreate) SaveX(ctx context.Context) *Beacon
SaveX calls Save and panics if Save returns an error.
func (*BeaconCreate) SetArch ¶
func (bc *BeaconCreate) SetArch(da defaults.BeaconArch) *BeaconCreate
SetArch sets the "arch" field.
func (*BeaconCreate) SetBid ¶
func (bc *BeaconCreate) SetBid(u uint32) *BeaconCreate
SetBid sets the "bid" field.
func (*BeaconCreate) SetCaps ¶
func (bc *BeaconCreate) SetCaps(u uint32) *BeaconCreate
SetCaps sets the "caps" field.
func (*BeaconCreate) SetColor ¶
func (bc *BeaconCreate) SetColor(u uint32) *BeaconCreate
SetColor sets the "color" field.
func (*BeaconCreate) SetCreatedAt ¶
func (bc *BeaconCreate) SetCreatedAt(t time.Time) *BeaconCreate
SetCreatedAt sets the "created_at" field.
func (*BeaconCreate) SetDeletedAt ¶
func (bc *BeaconCreate) SetDeletedAt(t time.Time) *BeaconCreate
SetDeletedAt sets the "deleted_at" field.
func (*BeaconCreate) SetDomain ¶
func (bc *BeaconCreate) SetDomain(s string) *BeaconCreate
SetDomain sets the "domain" field.
func (*BeaconCreate) SetExtIP ¶
func (bc *BeaconCreate) SetExtIP(t types.Inet) *BeaconCreate
SetExtIP sets the "ext_ip" field.
func (*BeaconCreate) SetFirst ¶
func (bc *BeaconCreate) SetFirst(t time.Time) *BeaconCreate
SetFirst sets the "first" field.
func (*BeaconCreate) SetHostname ¶
func (bc *BeaconCreate) SetHostname(s string) *BeaconCreate
SetHostname sets the "hostname" field.
func (*BeaconCreate) SetIntIP ¶
func (bc *BeaconCreate) SetIntIP(t types.Inet) *BeaconCreate
SetIntIP sets the "int_ip" field.
func (*BeaconCreate) SetJitter ¶
func (bc *BeaconCreate) SetJitter(u uint8) *BeaconCreate
SetJitter sets the "jitter" field.
func (*BeaconCreate) SetLast ¶
func (bc *BeaconCreate) SetLast(t time.Time) *BeaconCreate
SetLast sets the "last" field.
func (*BeaconCreate) SetListener ¶
func (bc *BeaconCreate) SetListener(l *Listener) *BeaconCreate
SetListener sets the "listener" edge to the Listener entity.
func (*BeaconCreate) SetListenerID ¶
func (bc *BeaconCreate) SetListenerID(i int) *BeaconCreate
SetListenerID sets the "listener_id" field.
func (*BeaconCreate) SetNillableColor ¶
func (bc *BeaconCreate) SetNillableColor(u *uint32) *BeaconCreate
SetNillableColor sets the "color" field if the given value is not nil.
func (*BeaconCreate) SetNillableCreatedAt ¶
func (bc *BeaconCreate) SetNillableCreatedAt(t *time.Time) *BeaconCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BeaconCreate) SetNillableDeletedAt ¶
func (bc *BeaconCreate) SetNillableDeletedAt(t *time.Time) *BeaconCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BeaconCreate) SetNillableDomain ¶
func (bc *BeaconCreate) SetNillableDomain(s *string) *BeaconCreate
SetNillableDomain sets the "domain" field if the given value is not nil.
func (*BeaconCreate) SetNillableExtIP ¶
func (bc *BeaconCreate) SetNillableExtIP(t *types.Inet) *BeaconCreate
SetNillableExtIP sets the "ext_ip" field if the given value is not nil.
func (*BeaconCreate) SetNillableFirst ¶
func (bc *BeaconCreate) SetNillableFirst(t *time.Time) *BeaconCreate
SetNillableFirst sets the "first" field if the given value is not nil.
func (*BeaconCreate) SetNillableHostname ¶
func (bc *BeaconCreate) SetNillableHostname(s *string) *BeaconCreate
SetNillableHostname sets the "hostname" field if the given value is not nil.
func (*BeaconCreate) SetNillableIntIP ¶
func (bc *BeaconCreate) SetNillableIntIP(t *types.Inet) *BeaconCreate
SetNillableIntIP sets the "int_ip" field if the given value is not nil.
func (*BeaconCreate) SetNillableLast ¶
func (bc *BeaconCreate) SetNillableLast(t *time.Time) *BeaconCreate
SetNillableLast sets the "last" field if the given value is not nil.
func (*BeaconCreate) SetNillableNote ¶
func (bc *BeaconCreate) SetNillableNote(s *string) *BeaconCreate
SetNillableNote sets the "note" field if the given value is not nil.
func (*BeaconCreate) SetNillableOsMeta ¶
func (bc *BeaconCreate) SetNillableOsMeta(s *string) *BeaconCreate
SetNillableOsMeta sets the "os_meta" field if the given value is not nil.
func (*BeaconCreate) SetNillablePid ¶
func (bc *BeaconCreate) SetNillablePid(u *uint32) *BeaconCreate
SetNillablePid sets the "pid" field if the given value is not nil.
func (*BeaconCreate) SetNillablePrivileged ¶
func (bc *BeaconCreate) SetNillablePrivileged(b *bool) *BeaconCreate
SetNillablePrivileged sets the "privileged" field if the given value is not nil.
func (*BeaconCreate) SetNillableProcessName ¶
func (bc *BeaconCreate) SetNillableProcessName(s *string) *BeaconCreate
SetNillableProcessName sets the "process_name" field if the given value is not nil.
func (*BeaconCreate) SetNillableUpdatedAt ¶
func (bc *BeaconCreate) SetNillableUpdatedAt(t *time.Time) *BeaconCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BeaconCreate) SetNillableUsername ¶
func (bc *BeaconCreate) SetNillableUsername(s *string) *BeaconCreate
SetNillableUsername sets the "username" field if the given value is not nil.
func (*BeaconCreate) SetNote ¶
func (bc *BeaconCreate) SetNote(s string) *BeaconCreate
SetNote sets the "note" field.
func (*BeaconCreate) SetOs ¶
func (bc *BeaconCreate) SetOs(do defaults.BeaconOS) *BeaconCreate
SetOs sets the "os" field.
func (*BeaconCreate) SetOsMeta ¶
func (bc *BeaconCreate) SetOsMeta(s string) *BeaconCreate
SetOsMeta sets the "os_meta" field.
func (*BeaconCreate) SetPid ¶
func (bc *BeaconCreate) SetPid(u uint32) *BeaconCreate
SetPid sets the "pid" field.
func (*BeaconCreate) SetPrivileged ¶
func (bc *BeaconCreate) SetPrivileged(b bool) *BeaconCreate
SetPrivileged sets the "privileged" field.
func (*BeaconCreate) SetProcessName ¶
func (bc *BeaconCreate) SetProcessName(s string) *BeaconCreate
SetProcessName sets the "process_name" field.
func (*BeaconCreate) SetSleep ¶
func (bc *BeaconCreate) SetSleep(u uint32) *BeaconCreate
SetSleep sets the "sleep" field.
func (*BeaconCreate) SetUpdatedAt ¶
func (bc *BeaconCreate) SetUpdatedAt(t time.Time) *BeaconCreate
SetUpdatedAt sets the "updated_at" field.
func (*BeaconCreate) SetUsername ¶
func (bc *BeaconCreate) SetUsername(s string) *BeaconCreate
SetUsername sets the "username" field.
type BeaconCreateBulk ¶
type BeaconCreateBulk struct {
// contains filtered or unexported fields
}
BeaconCreateBulk is the builder for creating many Beacon entities in bulk.
func (*BeaconCreateBulk) Exec ¶
func (bcb *BeaconCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BeaconCreateBulk) ExecX ¶
func (bcb *BeaconCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type BeaconDelete ¶
type BeaconDelete struct {
// contains filtered or unexported fields
}
BeaconDelete is the builder for deleting a Beacon entity.
func (*BeaconDelete) Exec ¶
func (bd *BeaconDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BeaconDelete) ExecX ¶
func (bd *BeaconDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BeaconDelete) Where ¶
func (bd *BeaconDelete) Where(ps ...predicate.Beacon) *BeaconDelete
Where appends a list predicates to the BeaconDelete builder.
type BeaconDeleteOne ¶
type BeaconDeleteOne struct {
// contains filtered or unexported fields
}
BeaconDeleteOne is the builder for deleting a single Beacon entity.
func (*BeaconDeleteOne) Exec ¶
func (bdo *BeaconDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BeaconDeleteOne) ExecX ¶
func (bdo *BeaconDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeaconDeleteOne) Where ¶
func (bdo *BeaconDeleteOne) Where(ps ...predicate.Beacon) *BeaconDeleteOne
Where appends a list predicates to the BeaconDelete builder.
type BeaconEdges ¶
type BeaconEdges struct { // Listener holds the value of the listener edge. Listener *Listener `json:"listener,omitempty"` // Group holds the value of the group edge. Group []*Group `json:"group,omitempty"` // Task holds the value of the task edge. Task []*Task `json:"task,omitempty"` // contains filtered or unexported fields }
BeaconEdges holds the relations/edges for other nodes in the graph.
func (BeaconEdges) GroupOrErr ¶
func (e BeaconEdges) GroupOrErr() ([]*Group, error)
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading.
func (BeaconEdges) ListenerOrErr ¶
func (e BeaconEdges) ListenerOrErr() (*Listener, error)
ListenerOrErr returns the Listener value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (BeaconEdges) TaskOrErr ¶
func (e BeaconEdges) TaskOrErr() ([]*Task, error)
TaskOrErr returns the Task value or an error if the edge was not loaded in eager-loading.
type BeaconGroupBy ¶
type BeaconGroupBy struct {
// contains filtered or unexported fields
}
BeaconGroupBy is the group-by builder for Beacon entities.
func (*BeaconGroupBy) Aggregate ¶
func (bgb *BeaconGroupBy) Aggregate(fns ...AggregateFunc) *BeaconGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BeaconGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BeaconGroupBy) Scan ¶
func (bgb *BeaconGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BeaconGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BeaconMutation ¶
type BeaconMutation struct {
// contains filtered or unexported fields
}
BeaconMutation represents an operation that mutates the Beacon nodes in the graph.
func (*BeaconMutation) AddBid ¶
func (m *BeaconMutation) AddBid(u int32)
AddBid adds u to the "bid" field.
func (*BeaconMutation) AddCaps ¶
func (m *BeaconMutation) AddCaps(u int32)
AddCaps adds u to the "caps" field.
func (*BeaconMutation) AddColor ¶
func (m *BeaconMutation) AddColor(u int32)
AddColor adds u to the "color" field.
func (*BeaconMutation) AddField ¶
func (m *BeaconMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BeaconMutation) AddGroupIDs ¶
func (m *BeaconMutation) AddGroupIDs(ids ...int)
AddGroupIDs adds the "group" edge to the Group entity by ids.
func (*BeaconMutation) AddJitter ¶
func (m *BeaconMutation) AddJitter(u int8)
AddJitter adds u to the "jitter" field.
func (*BeaconMutation) AddPid ¶
func (m *BeaconMutation) AddPid(u int32)
AddPid adds u to the "pid" field.
func (*BeaconMutation) AddSleep ¶
func (m *BeaconMutation) AddSleep(u int32)
AddSleep adds u to the "sleep" field.
func (*BeaconMutation) AddTaskIDs ¶
func (m *BeaconMutation) AddTaskIDs(ids ...int)
AddTaskIDs adds the "task" edge to the Task entity by ids.
func (*BeaconMutation) AddedBid ¶
func (m *BeaconMutation) AddedBid() (r int32, exists bool)
AddedBid returns the value that was added to the "bid" field in this mutation.
func (*BeaconMutation) AddedCaps ¶
func (m *BeaconMutation) AddedCaps() (r int32, exists bool)
AddedCaps returns the value that was added to the "caps" field in this mutation.
func (*BeaconMutation) AddedColor ¶
func (m *BeaconMutation) AddedColor() (r int32, exists bool)
AddedColor returns the value that was added to the "color" field in this mutation.
func (*BeaconMutation) AddedEdges ¶
func (m *BeaconMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BeaconMutation) AddedField ¶
func (m *BeaconMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BeaconMutation) AddedFields ¶
func (m *BeaconMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BeaconMutation) AddedIDs ¶
func (m *BeaconMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BeaconMutation) AddedJitter ¶
func (m *BeaconMutation) AddedJitter() (r int8, exists bool)
AddedJitter returns the value that was added to the "jitter" field in this mutation.
func (*BeaconMutation) AddedPid ¶
func (m *BeaconMutation) AddedPid() (r int32, exists bool)
AddedPid returns the value that was added to the "pid" field in this mutation.
func (*BeaconMutation) AddedSleep ¶
func (m *BeaconMutation) AddedSleep() (r int32, exists bool)
AddedSleep returns the value that was added to the "sleep" field in this mutation.
func (*BeaconMutation) Arch ¶
func (m *BeaconMutation) Arch() (r defaults.BeaconArch, exists bool)
Arch returns the value of the "arch" field in the mutation.
func (*BeaconMutation) Bid ¶
func (m *BeaconMutation) Bid() (r uint32, exists bool)
Bid returns the value of the "bid" field in the mutation.
func (*BeaconMutation) Caps ¶
func (m *BeaconMutation) Caps() (r uint32, exists bool)
Caps returns the value of the "caps" field in the mutation.
func (*BeaconMutation) ClearDeletedAt ¶
func (m *BeaconMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BeaconMutation) ClearDomain ¶
func (m *BeaconMutation) ClearDomain()
ClearDomain clears the value of the "domain" field.
func (*BeaconMutation) ClearEdge ¶
func (m *BeaconMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*BeaconMutation) ClearExtIP ¶
func (m *BeaconMutation) ClearExtIP()
ClearExtIP clears the value of the "ext_ip" field.
func (*BeaconMutation) ClearField ¶
func (m *BeaconMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*BeaconMutation) ClearGroup ¶
func (m *BeaconMutation) ClearGroup()
ClearGroup clears the "group" edge to the Group entity.
func (*BeaconMutation) ClearHostname ¶
func (m *BeaconMutation) ClearHostname()
ClearHostname clears the value of the "hostname" field.
func (*BeaconMutation) ClearIntIP ¶
func (m *BeaconMutation) ClearIntIP()
ClearIntIP clears the value of the "int_ip" field.
func (*BeaconMutation) ClearListener ¶
func (m *BeaconMutation) ClearListener()
ClearListener clears the "listener" edge to the Listener entity.
func (*BeaconMutation) ClearNote ¶
func (m *BeaconMutation) ClearNote()
ClearNote clears the value of the "note" field.
func (*BeaconMutation) ClearOsMeta ¶
func (m *BeaconMutation) ClearOsMeta()
ClearOsMeta clears the value of the "os_meta" field.
func (*BeaconMutation) ClearPid ¶
func (m *BeaconMutation) ClearPid()
ClearPid clears the value of the "pid" field.
func (*BeaconMutation) ClearPrivileged ¶
func (m *BeaconMutation) ClearPrivileged()
ClearPrivileged clears the value of the "privileged" field.
func (*BeaconMutation) ClearProcessName ¶
func (m *BeaconMutation) ClearProcessName()
ClearProcessName clears the value of the "process_name" field.
func (*BeaconMutation) ClearTask ¶
func (m *BeaconMutation) ClearTask()
ClearTask clears the "task" edge to the Task entity.
func (*BeaconMutation) ClearUsername ¶
func (m *BeaconMutation) ClearUsername()
ClearUsername clears the value of the "username" field.
func (*BeaconMutation) ClearedEdges ¶
func (m *BeaconMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BeaconMutation) ClearedFields ¶
func (m *BeaconMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BeaconMutation) Client ¶
func (m BeaconMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*BeaconMutation) Color ¶
func (m *BeaconMutation) Color() (r uint32, exists bool)
Color returns the value of the "color" field in the mutation.
func (*BeaconMutation) CreatedAt ¶
func (m *BeaconMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BeaconMutation) DeletedAt ¶
func (m *BeaconMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BeaconMutation) DeletedAtCleared ¶
func (m *BeaconMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BeaconMutation) Domain ¶
func (m *BeaconMutation) Domain() (r string, exists bool)
Domain returns the value of the "domain" field in the mutation.
func (*BeaconMutation) DomainCleared ¶
func (m *BeaconMutation) DomainCleared() bool
DomainCleared returns if the "domain" field was cleared in this mutation.
func (*BeaconMutation) EdgeCleared ¶
func (m *BeaconMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BeaconMutation) ExtIP ¶
func (m *BeaconMutation) ExtIP() (r types.Inet, exists bool)
ExtIP returns the value of the "ext_ip" field in the mutation.
func (*BeaconMutation) ExtIPCleared ¶
func (m *BeaconMutation) ExtIPCleared() bool
ExtIPCleared returns if the "ext_ip" field was cleared in this mutation.
func (*BeaconMutation) Field ¶
func (m *BeaconMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BeaconMutation) FieldCleared ¶
func (m *BeaconMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BeaconMutation) Fields ¶
func (m *BeaconMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*BeaconMutation) First ¶
func (m *BeaconMutation) First() (r time.Time, exists bool)
First returns the value of the "first" field in the mutation.
func (*BeaconMutation) GroupCleared ¶
func (m *BeaconMutation) GroupCleared() bool
GroupCleared reports if the "group" edge to the Group entity was cleared.
func (*BeaconMutation) GroupIDs ¶
func (m *BeaconMutation) GroupIDs() (ids []int)
GroupIDs returns the "group" edge IDs in the mutation.
func (*BeaconMutation) Hostname ¶
func (m *BeaconMutation) Hostname() (r string, exists bool)
Hostname returns the value of the "hostname" field in the mutation.
func (*BeaconMutation) HostnameCleared ¶
func (m *BeaconMutation) HostnameCleared() bool
HostnameCleared returns if the "hostname" field was cleared in this mutation.
func (*BeaconMutation) ID ¶
func (m *BeaconMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*BeaconMutation) IDs ¶
func (m *BeaconMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*BeaconMutation) IntIP ¶
func (m *BeaconMutation) IntIP() (r types.Inet, exists bool)
IntIP returns the value of the "int_ip" field in the mutation.
func (*BeaconMutation) IntIPCleared ¶
func (m *BeaconMutation) IntIPCleared() bool
IntIPCleared returns if the "int_ip" field was cleared in this mutation.
func (*BeaconMutation) Jitter ¶
func (m *BeaconMutation) Jitter() (r uint8, exists bool)
Jitter returns the value of the "jitter" field in the mutation.
func (*BeaconMutation) Last ¶
func (m *BeaconMutation) Last() (r time.Time, exists bool)
Last returns the value of the "last" field in the mutation.
func (*BeaconMutation) ListenerCleared ¶
func (m *BeaconMutation) ListenerCleared() bool
ListenerCleared reports if the "listener" edge to the Listener entity was cleared.
func (*BeaconMutation) ListenerID ¶
func (m *BeaconMutation) ListenerID() (r int, exists bool)
ListenerID returns the value of the "listener_id" field in the mutation.
func (*BeaconMutation) ListenerIDs ¶
func (m *BeaconMutation) ListenerIDs() (ids []int)
ListenerIDs returns the "listener" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ListenerID instead. It exists only for internal usage by the builders.
func (*BeaconMutation) Note ¶
func (m *BeaconMutation) Note() (r string, exists bool)
Note returns the value of the "note" field in the mutation.
func (*BeaconMutation) NoteCleared ¶
func (m *BeaconMutation) NoteCleared() bool
NoteCleared returns if the "note" field was cleared in this mutation.
func (*BeaconMutation) OldArch ¶
func (m *BeaconMutation) OldArch(ctx context.Context) (v defaults.BeaconArch, err error)
OldArch returns the old "arch" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldBid ¶
func (m *BeaconMutation) OldBid(ctx context.Context) (v uint32, err error)
OldBid returns the old "bid" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldCaps ¶
func (m *BeaconMutation) OldCaps(ctx context.Context) (v uint32, err error)
OldCaps returns the old "caps" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldColor ¶
func (m *BeaconMutation) OldColor(ctx context.Context) (v uint32, err error)
OldColor returns the old "color" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldDomain ¶
func (m *BeaconMutation) OldDomain(ctx context.Context) (v string, err error)
OldDomain returns the old "domain" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldExtIP ¶
OldExtIP returns the old "ext_ip" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*BeaconMutation) OldFirst ¶
OldFirst returns the old "first" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldHostname ¶
func (m *BeaconMutation) OldHostname(ctx context.Context) (v string, err error)
OldHostname returns the old "hostname" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldIntIP ¶
OldIntIP returns the old "int_ip" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldJitter ¶
func (m *BeaconMutation) OldJitter(ctx context.Context) (v uint8, err error)
OldJitter returns the old "jitter" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldLast ¶
OldLast returns the old "last" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldListenerID ¶
func (m *BeaconMutation) OldListenerID(ctx context.Context) (v int, err error)
OldListenerID returns the old "listener_id" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldNote ¶
func (m *BeaconMutation) OldNote(ctx context.Context) (v string, err error)
OldNote returns the old "note" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldOs ¶
OldOs returns the old "os" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldOsMeta ¶
func (m *BeaconMutation) OldOsMeta(ctx context.Context) (v string, err error)
OldOsMeta returns the old "os_meta" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldPid ¶
func (m *BeaconMutation) OldPid(ctx context.Context) (v uint32, err error)
OldPid returns the old "pid" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldPrivileged ¶
func (m *BeaconMutation) OldPrivileged(ctx context.Context) (v bool, err error)
OldPrivileged returns the old "privileged" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldProcessName ¶
func (m *BeaconMutation) OldProcessName(ctx context.Context) (v string, err error)
OldProcessName returns the old "process_name" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldSleep ¶
func (m *BeaconMutation) OldSleep(ctx context.Context) (v uint32, err error)
OldSleep returns the old "sleep" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) OldUsername ¶
func (m *BeaconMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the Beacon entity. If the Beacon object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BeaconMutation) Os ¶
func (m *BeaconMutation) Os() (r defaults.BeaconOS, exists bool)
Os returns the value of the "os" field in the mutation.
func (*BeaconMutation) OsMeta ¶
func (m *BeaconMutation) OsMeta() (r string, exists bool)
OsMeta returns the value of the "os_meta" field in the mutation.
func (*BeaconMutation) OsMetaCleared ¶
func (m *BeaconMutation) OsMetaCleared() bool
OsMetaCleared returns if the "os_meta" field was cleared in this mutation.
func (*BeaconMutation) Pid ¶
func (m *BeaconMutation) Pid() (r uint32, exists bool)
Pid returns the value of the "pid" field in the mutation.
func (*BeaconMutation) PidCleared ¶
func (m *BeaconMutation) PidCleared() bool
PidCleared returns if the "pid" field was cleared in this mutation.
func (*BeaconMutation) Privileged ¶
func (m *BeaconMutation) Privileged() (r bool, exists bool)
Privileged returns the value of the "privileged" field in the mutation.
func (*BeaconMutation) PrivilegedCleared ¶
func (m *BeaconMutation) PrivilegedCleared() bool
PrivilegedCleared returns if the "privileged" field was cleared in this mutation.
func (*BeaconMutation) ProcessName ¶
func (m *BeaconMutation) ProcessName() (r string, exists bool)
ProcessName returns the value of the "process_name" field in the mutation.
func (*BeaconMutation) ProcessNameCleared ¶
func (m *BeaconMutation) ProcessNameCleared() bool
ProcessNameCleared returns if the "process_name" field was cleared in this mutation.
func (*BeaconMutation) RemoveGroupIDs ¶
func (m *BeaconMutation) RemoveGroupIDs(ids ...int)
RemoveGroupIDs removes the "group" edge to the Group entity by IDs.
func (*BeaconMutation) RemoveTaskIDs ¶
func (m *BeaconMutation) RemoveTaskIDs(ids ...int)
RemoveTaskIDs removes the "task" edge to the Task entity by IDs.
func (*BeaconMutation) RemovedEdges ¶
func (m *BeaconMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BeaconMutation) RemovedGroupIDs ¶
func (m *BeaconMutation) RemovedGroupIDs() (ids []int)
RemovedGroup returns the removed IDs of the "group" edge to the Group entity.
func (*BeaconMutation) RemovedIDs ¶
func (m *BeaconMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*BeaconMutation) RemovedTaskIDs ¶
func (m *BeaconMutation) RemovedTaskIDs() (ids []int)
RemovedTask returns the removed IDs of the "task" edge to the Task entity.
func (*BeaconMutation) ResetArch ¶
func (m *BeaconMutation) ResetArch()
ResetArch resets all changes to the "arch" field.
func (*BeaconMutation) ResetBid ¶
func (m *BeaconMutation) ResetBid()
ResetBid resets all changes to the "bid" field.
func (*BeaconMutation) ResetCaps ¶
func (m *BeaconMutation) ResetCaps()
ResetCaps resets all changes to the "caps" field.
func (*BeaconMutation) ResetColor ¶
func (m *BeaconMutation) ResetColor()
ResetColor resets all changes to the "color" field.
func (*BeaconMutation) ResetCreatedAt ¶
func (m *BeaconMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BeaconMutation) ResetDeletedAt ¶
func (m *BeaconMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BeaconMutation) ResetDomain ¶
func (m *BeaconMutation) ResetDomain()
ResetDomain resets all changes to the "domain" field.
func (*BeaconMutation) ResetEdge ¶
func (m *BeaconMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*BeaconMutation) ResetExtIP ¶
func (m *BeaconMutation) ResetExtIP()
ResetExtIP resets all changes to the "ext_ip" field.
func (*BeaconMutation) ResetField ¶
func (m *BeaconMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*BeaconMutation) ResetFirst ¶
func (m *BeaconMutation) ResetFirst()
ResetFirst resets all changes to the "first" field.
func (*BeaconMutation) ResetGroup ¶
func (m *BeaconMutation) ResetGroup()
ResetGroup resets all changes to the "group" edge.
func (*BeaconMutation) ResetHostname ¶
func (m *BeaconMutation) ResetHostname()
ResetHostname resets all changes to the "hostname" field.
func (*BeaconMutation) ResetIntIP ¶
func (m *BeaconMutation) ResetIntIP()
ResetIntIP resets all changes to the "int_ip" field.
func (*BeaconMutation) ResetJitter ¶
func (m *BeaconMutation) ResetJitter()
ResetJitter resets all changes to the "jitter" field.
func (*BeaconMutation) ResetLast ¶
func (m *BeaconMutation) ResetLast()
ResetLast resets all changes to the "last" field.
func (*BeaconMutation) ResetListener ¶
func (m *BeaconMutation) ResetListener()
ResetListener resets all changes to the "listener" edge.
func (*BeaconMutation) ResetListenerID ¶
func (m *BeaconMutation) ResetListenerID()
ResetListenerID resets all changes to the "listener_id" field.
func (*BeaconMutation) ResetNote ¶
func (m *BeaconMutation) ResetNote()
ResetNote resets all changes to the "note" field.
func (*BeaconMutation) ResetOs ¶
func (m *BeaconMutation) ResetOs()
ResetOs resets all changes to the "os" field.
func (*BeaconMutation) ResetOsMeta ¶
func (m *BeaconMutation) ResetOsMeta()
ResetOsMeta resets all changes to the "os_meta" field.
func (*BeaconMutation) ResetPid ¶
func (m *BeaconMutation) ResetPid()
ResetPid resets all changes to the "pid" field.
func (*BeaconMutation) ResetPrivileged ¶
func (m *BeaconMutation) ResetPrivileged()
ResetPrivileged resets all changes to the "privileged" field.
func (*BeaconMutation) ResetProcessName ¶
func (m *BeaconMutation) ResetProcessName()
ResetProcessName resets all changes to the "process_name" field.
func (*BeaconMutation) ResetSleep ¶
func (m *BeaconMutation) ResetSleep()
ResetSleep resets all changes to the "sleep" field.
func (*BeaconMutation) ResetTask ¶
func (m *BeaconMutation) ResetTask()
ResetTask resets all changes to the "task" edge.
func (*BeaconMutation) ResetUpdatedAt ¶
func (m *BeaconMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BeaconMutation) ResetUsername ¶
func (m *BeaconMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*BeaconMutation) SetArch ¶
func (m *BeaconMutation) SetArch(da defaults.BeaconArch)
SetArch sets the "arch" field.
func (*BeaconMutation) SetBid ¶
func (m *BeaconMutation) SetBid(u uint32)
SetBid sets the "bid" field.
func (*BeaconMutation) SetCaps ¶
func (m *BeaconMutation) SetCaps(u uint32)
SetCaps sets the "caps" field.
func (*BeaconMutation) SetColor ¶
func (m *BeaconMutation) SetColor(u uint32)
SetColor sets the "color" field.
func (*BeaconMutation) SetCreatedAt ¶
func (m *BeaconMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BeaconMutation) SetDeletedAt ¶
func (m *BeaconMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BeaconMutation) SetDomain ¶
func (m *BeaconMutation) SetDomain(s string)
SetDomain sets the "domain" field.
func (*BeaconMutation) SetExtIP ¶
func (m *BeaconMutation) SetExtIP(t types.Inet)
SetExtIP sets the "ext_ip" field.
func (*BeaconMutation) SetField ¶
func (m *BeaconMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BeaconMutation) SetFirst ¶
func (m *BeaconMutation) SetFirst(t time.Time)
SetFirst sets the "first" field.
func (*BeaconMutation) SetHostname ¶
func (m *BeaconMutation) SetHostname(s string)
SetHostname sets the "hostname" field.
func (*BeaconMutation) SetIntIP ¶
func (m *BeaconMutation) SetIntIP(t types.Inet)
SetIntIP sets the "int_ip" field.
func (*BeaconMutation) SetJitter ¶
func (m *BeaconMutation) SetJitter(u uint8)
SetJitter sets the "jitter" field.
func (*BeaconMutation) SetLast ¶
func (m *BeaconMutation) SetLast(t time.Time)
SetLast sets the "last" field.
func (*BeaconMutation) SetListenerID ¶
func (m *BeaconMutation) SetListenerID(i int)
SetListenerID sets the "listener_id" field.
func (*BeaconMutation) SetNote ¶
func (m *BeaconMutation) SetNote(s string)
SetNote sets the "note" field.
func (*BeaconMutation) SetOp ¶
func (m *BeaconMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BeaconMutation) SetOs ¶
func (m *BeaconMutation) SetOs(do defaults.BeaconOS)
SetOs sets the "os" field.
func (*BeaconMutation) SetOsMeta ¶
func (m *BeaconMutation) SetOsMeta(s string)
SetOsMeta sets the "os_meta" field.
func (*BeaconMutation) SetPid ¶
func (m *BeaconMutation) SetPid(u uint32)
SetPid sets the "pid" field.
func (*BeaconMutation) SetPrivileged ¶
func (m *BeaconMutation) SetPrivileged(b bool)
SetPrivileged sets the "privileged" field.
func (*BeaconMutation) SetProcessName ¶
func (m *BeaconMutation) SetProcessName(s string)
SetProcessName sets the "process_name" field.
func (*BeaconMutation) SetSleep ¶
func (m *BeaconMutation) SetSleep(u uint32)
SetSleep sets the "sleep" field.
func (*BeaconMutation) SetUpdatedAt ¶
func (m *BeaconMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BeaconMutation) SetUsername ¶
func (m *BeaconMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (*BeaconMutation) Sleep ¶
func (m *BeaconMutation) Sleep() (r uint32, exists bool)
Sleep returns the value of the "sleep" field in the mutation.
func (*BeaconMutation) TaskCleared ¶
func (m *BeaconMutation) TaskCleared() bool
TaskCleared reports if the "task" edge to the Task entity was cleared.
func (*BeaconMutation) TaskIDs ¶
func (m *BeaconMutation) TaskIDs() (ids []int)
TaskIDs returns the "task" edge IDs in the mutation.
func (BeaconMutation) Tx ¶
func (m BeaconMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BeaconMutation) Type ¶
func (m *BeaconMutation) Type() string
Type returns the node type of this mutation (Beacon).
func (*BeaconMutation) UpdatedAt ¶
func (m *BeaconMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BeaconMutation) Username ¶
func (m *BeaconMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*BeaconMutation) UsernameCleared ¶
func (m *BeaconMutation) UsernameCleared() bool
UsernameCleared returns if the "username" field was cleared in this mutation.
func (*BeaconMutation) Where ¶
func (m *BeaconMutation) Where(ps ...predicate.Beacon)
Where appends a list predicates to the BeaconMutation builder.
func (*BeaconMutation) WhereP ¶
func (m *BeaconMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BeaconMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BeaconQuery ¶
type BeaconQuery struct {
// contains filtered or unexported fields
}
BeaconQuery is the builder for querying Beacon entities.
func (*BeaconQuery) Aggregate ¶
func (bq *BeaconQuery) Aggregate(fns ...AggregateFunc) *BeaconSelect
Aggregate returns a BeaconSelect configured with the given aggregations.
func (*BeaconQuery) All ¶
func (bq *BeaconQuery) All(ctx context.Context) ([]*Beacon, error)
All executes the query and returns a list of Beacons.
func (*BeaconQuery) AllX ¶
func (bq *BeaconQuery) AllX(ctx context.Context) []*Beacon
AllX is like All, but panics if an error occurs.
func (*BeaconQuery) Clone ¶
func (bq *BeaconQuery) Clone() *BeaconQuery
Clone returns a duplicate of the BeaconQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BeaconQuery) Count ¶
func (bq *BeaconQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BeaconQuery) CountX ¶
func (bq *BeaconQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BeaconQuery) Exist ¶
func (bq *BeaconQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BeaconQuery) ExistX ¶
func (bq *BeaconQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BeaconQuery) First ¶
func (bq *BeaconQuery) First(ctx context.Context) (*Beacon, error)
First returns the first Beacon entity from the query. Returns a *NotFoundError when no Beacon was found.
func (*BeaconQuery) FirstID ¶
func (bq *BeaconQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Beacon ID from the query. Returns a *NotFoundError when no Beacon ID was found.
func (*BeaconQuery) FirstIDX ¶
func (bq *BeaconQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*BeaconQuery) FirstX ¶
func (bq *BeaconQuery) FirstX(ctx context.Context) *Beacon
FirstX is like First, but panics if an error occurs.
func (*BeaconQuery) ForShare ¶
func (bq *BeaconQuery) ForShare(opts ...sql.LockOption) *BeaconQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*BeaconQuery) ForUpdate ¶
func (bq *BeaconQuery) ForUpdate(opts ...sql.LockOption) *BeaconQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*BeaconQuery) GroupBy ¶
func (bq *BeaconQuery) GroupBy(field string, fields ...string) *BeaconGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Beacon.Query(). GroupBy(beacon.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*BeaconQuery) IDs ¶
func (bq *BeaconQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Beacon IDs.
func (*BeaconQuery) IDsX ¶
func (bq *BeaconQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*BeaconQuery) Limit ¶
func (bq *BeaconQuery) Limit(limit int) *BeaconQuery
Limit the number of records to be returned by this query.
func (*BeaconQuery) Offset ¶
func (bq *BeaconQuery) Offset(offset int) *BeaconQuery
Offset to start from.
func (*BeaconQuery) Only ¶
func (bq *BeaconQuery) Only(ctx context.Context) (*Beacon, error)
Only returns a single Beacon entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Beacon entity is found. Returns a *NotFoundError when no Beacon entities are found.
func (*BeaconQuery) OnlyID ¶
func (bq *BeaconQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Beacon ID in the query. Returns a *NotSingularError when more than one Beacon ID is found. Returns a *NotFoundError when no entities are found.
func (*BeaconQuery) OnlyIDX ¶
func (bq *BeaconQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BeaconQuery) OnlyX ¶
func (bq *BeaconQuery) OnlyX(ctx context.Context) *Beacon
OnlyX is like Only, but panics if an error occurs.
func (*BeaconQuery) Order ¶
func (bq *BeaconQuery) Order(o ...beacon.OrderOption) *BeaconQuery
Order specifies how the records should be ordered.
func (*BeaconQuery) QueryGroup ¶
func (bq *BeaconQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the "group" edge.
func (*BeaconQuery) QueryListener ¶
func (bq *BeaconQuery) QueryListener() *ListenerQuery
QueryListener chains the current query on the "listener" edge.
func (*BeaconQuery) QueryTask ¶
func (bq *BeaconQuery) QueryTask() *TaskQuery
QueryTask chains the current query on the "task" edge.
func (*BeaconQuery) Select ¶
func (bq *BeaconQuery) Select(fields ...string) *BeaconSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Beacon.Query(). Select(beacon.FieldCreatedAt). Scan(ctx, &v)
func (*BeaconQuery) Unique ¶
func (bq *BeaconQuery) Unique(unique bool) *BeaconQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*BeaconQuery) Where ¶
func (bq *BeaconQuery) Where(ps ...predicate.Beacon) *BeaconQuery
Where adds a new predicate for the BeaconQuery builder.
func (*BeaconQuery) WithGroup ¶
func (bq *BeaconQuery) WithGroup(opts ...func(*GroupQuery)) *BeaconQuery
WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
func (*BeaconQuery) WithListener ¶
func (bq *BeaconQuery) WithListener(opts ...func(*ListenerQuery)) *BeaconQuery
WithListener tells the query-builder to eager-load the nodes that are connected to the "listener" edge. The optional arguments are used to configure the query builder of the edge.
func (*BeaconQuery) WithTask ¶
func (bq *BeaconQuery) WithTask(opts ...func(*TaskQuery)) *BeaconQuery
WithTask tells the query-builder to eager-load the nodes that are connected to the "task" edge. The optional arguments are used to configure the query builder of the edge.
type BeaconSelect ¶
type BeaconSelect struct { *BeaconQuery // contains filtered or unexported fields }
BeaconSelect is the builder for selecting fields of Beacon entities.
func (*BeaconSelect) Aggregate ¶
func (bs *BeaconSelect) Aggregate(fns ...AggregateFunc) *BeaconSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BeaconSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BeaconSelect) Scan ¶
func (bs *BeaconSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BeaconSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BeaconUpdate ¶
type BeaconUpdate struct {
// contains filtered or unexported fields
}
BeaconUpdate is the builder for updating Beacon entities.
func (*BeaconUpdate) AddBid ¶
func (bu *BeaconUpdate) AddBid(u int32) *BeaconUpdate
AddBid adds u to the "bid" field.
func (*BeaconUpdate) AddCaps ¶
func (bu *BeaconUpdate) AddCaps(u int32) *BeaconUpdate
AddCaps adds u to the "caps" field.
func (*BeaconUpdate) AddColor ¶
func (bu *BeaconUpdate) AddColor(u int32) *BeaconUpdate
AddColor adds u to the "color" field.
func (*BeaconUpdate) AddGroup ¶
func (bu *BeaconUpdate) AddGroup(g ...*Group) *BeaconUpdate
AddGroup adds the "group" edges to the Group entity.
func (*BeaconUpdate) AddGroupIDs ¶
func (bu *BeaconUpdate) AddGroupIDs(ids ...int) *BeaconUpdate
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*BeaconUpdate) AddJitter ¶
func (bu *BeaconUpdate) AddJitter(u int8) *BeaconUpdate
AddJitter adds u to the "jitter" field.
func (*BeaconUpdate) AddPid ¶
func (bu *BeaconUpdate) AddPid(u int32) *BeaconUpdate
AddPid adds u to the "pid" field.
func (*BeaconUpdate) AddSleep ¶
func (bu *BeaconUpdate) AddSleep(u int32) *BeaconUpdate
AddSleep adds u to the "sleep" field.
func (*BeaconUpdate) AddTask ¶
func (bu *BeaconUpdate) AddTask(t ...*Task) *BeaconUpdate
AddTask adds the "task" edges to the Task entity.
func (*BeaconUpdate) AddTaskIDs ¶
func (bu *BeaconUpdate) AddTaskIDs(ids ...int) *BeaconUpdate
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*BeaconUpdate) ClearDeletedAt ¶
func (bu *BeaconUpdate) ClearDeletedAt() *BeaconUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BeaconUpdate) ClearDomain ¶
func (bu *BeaconUpdate) ClearDomain() *BeaconUpdate
ClearDomain clears the value of the "domain" field.
func (*BeaconUpdate) ClearExtIP ¶
func (bu *BeaconUpdate) ClearExtIP() *BeaconUpdate
ClearExtIP clears the value of the "ext_ip" field.
func (*BeaconUpdate) ClearGroup ¶
func (bu *BeaconUpdate) ClearGroup() *BeaconUpdate
ClearGroup clears all "group" edges to the Group entity.
func (*BeaconUpdate) ClearHostname ¶
func (bu *BeaconUpdate) ClearHostname() *BeaconUpdate
ClearHostname clears the value of the "hostname" field.
func (*BeaconUpdate) ClearIntIP ¶
func (bu *BeaconUpdate) ClearIntIP() *BeaconUpdate
ClearIntIP clears the value of the "int_ip" field.
func (*BeaconUpdate) ClearListener ¶
func (bu *BeaconUpdate) ClearListener() *BeaconUpdate
ClearListener clears the "listener" edge to the Listener entity.
func (*BeaconUpdate) ClearNote ¶
func (bu *BeaconUpdate) ClearNote() *BeaconUpdate
ClearNote clears the value of the "note" field.
func (*BeaconUpdate) ClearOsMeta ¶
func (bu *BeaconUpdate) ClearOsMeta() *BeaconUpdate
ClearOsMeta clears the value of the "os_meta" field.
func (*BeaconUpdate) ClearPid ¶
func (bu *BeaconUpdate) ClearPid() *BeaconUpdate
ClearPid clears the value of the "pid" field.
func (*BeaconUpdate) ClearPrivileged ¶
func (bu *BeaconUpdate) ClearPrivileged() *BeaconUpdate
ClearPrivileged clears the value of the "privileged" field.
func (*BeaconUpdate) ClearProcessName ¶
func (bu *BeaconUpdate) ClearProcessName() *BeaconUpdate
ClearProcessName clears the value of the "process_name" field.
func (*BeaconUpdate) ClearTask ¶
func (bu *BeaconUpdate) ClearTask() *BeaconUpdate
ClearTask clears all "task" edges to the Task entity.
func (*BeaconUpdate) ClearUsername ¶
func (bu *BeaconUpdate) ClearUsername() *BeaconUpdate
ClearUsername clears the value of the "username" field.
func (*BeaconUpdate) Exec ¶
func (bu *BeaconUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BeaconUpdate) ExecX ¶
func (bu *BeaconUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeaconUpdate) Mutation ¶
func (bu *BeaconUpdate) Mutation() *BeaconMutation
Mutation returns the BeaconMutation object of the builder.
func (*BeaconUpdate) RemoveGroup ¶
func (bu *BeaconUpdate) RemoveGroup(g ...*Group) *BeaconUpdate
RemoveGroup removes "group" edges to Group entities.
func (*BeaconUpdate) RemoveGroupIDs ¶
func (bu *BeaconUpdate) RemoveGroupIDs(ids ...int) *BeaconUpdate
RemoveGroupIDs removes the "group" edge to Group entities by IDs.
func (*BeaconUpdate) RemoveTask ¶
func (bu *BeaconUpdate) RemoveTask(t ...*Task) *BeaconUpdate
RemoveTask removes "task" edges to Task entities.
func (*BeaconUpdate) RemoveTaskIDs ¶
func (bu *BeaconUpdate) RemoveTaskIDs(ids ...int) *BeaconUpdate
RemoveTaskIDs removes the "task" edge to Task entities by IDs.
func (*BeaconUpdate) Save ¶
func (bu *BeaconUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BeaconUpdate) SaveX ¶
func (bu *BeaconUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BeaconUpdate) SetArch ¶
func (bu *BeaconUpdate) SetArch(da defaults.BeaconArch) *BeaconUpdate
SetArch sets the "arch" field.
func (*BeaconUpdate) SetBid ¶
func (bu *BeaconUpdate) SetBid(u uint32) *BeaconUpdate
SetBid sets the "bid" field.
func (*BeaconUpdate) SetCaps ¶
func (bu *BeaconUpdate) SetCaps(u uint32) *BeaconUpdate
SetCaps sets the "caps" field.
func (*BeaconUpdate) SetColor ¶
func (bu *BeaconUpdate) SetColor(u uint32) *BeaconUpdate
SetColor sets the "color" field.
func (*BeaconUpdate) SetDeletedAt ¶
func (bu *BeaconUpdate) SetDeletedAt(t time.Time) *BeaconUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BeaconUpdate) SetDomain ¶
func (bu *BeaconUpdate) SetDomain(s string) *BeaconUpdate
SetDomain sets the "domain" field.
func (*BeaconUpdate) SetExtIP ¶
func (bu *BeaconUpdate) SetExtIP(t types.Inet) *BeaconUpdate
SetExtIP sets the "ext_ip" field.
func (*BeaconUpdate) SetFirst ¶
func (bu *BeaconUpdate) SetFirst(t time.Time) *BeaconUpdate
SetFirst sets the "first" field.
func (*BeaconUpdate) SetHostname ¶
func (bu *BeaconUpdate) SetHostname(s string) *BeaconUpdate
SetHostname sets the "hostname" field.
func (*BeaconUpdate) SetIntIP ¶
func (bu *BeaconUpdate) SetIntIP(t types.Inet) *BeaconUpdate
SetIntIP sets the "int_ip" field.
func (*BeaconUpdate) SetJitter ¶
func (bu *BeaconUpdate) SetJitter(u uint8) *BeaconUpdate
SetJitter sets the "jitter" field.
func (*BeaconUpdate) SetLast ¶
func (bu *BeaconUpdate) SetLast(t time.Time) *BeaconUpdate
SetLast sets the "last" field.
func (*BeaconUpdate) SetListener ¶
func (bu *BeaconUpdate) SetListener(l *Listener) *BeaconUpdate
SetListener sets the "listener" edge to the Listener entity.
func (*BeaconUpdate) SetListenerID ¶
func (bu *BeaconUpdate) SetListenerID(i int) *BeaconUpdate
SetListenerID sets the "listener_id" field.
func (*BeaconUpdate) SetNillableArch ¶
func (bu *BeaconUpdate) SetNillableArch(da *defaults.BeaconArch) *BeaconUpdate
SetNillableArch sets the "arch" field if the given value is not nil.
func (*BeaconUpdate) SetNillableBid ¶
func (bu *BeaconUpdate) SetNillableBid(u *uint32) *BeaconUpdate
SetNillableBid sets the "bid" field if the given value is not nil.
func (*BeaconUpdate) SetNillableCaps ¶
func (bu *BeaconUpdate) SetNillableCaps(u *uint32) *BeaconUpdate
SetNillableCaps sets the "caps" field if the given value is not nil.
func (*BeaconUpdate) SetNillableColor ¶
func (bu *BeaconUpdate) SetNillableColor(u *uint32) *BeaconUpdate
SetNillableColor sets the "color" field if the given value is not nil.
func (*BeaconUpdate) SetNillableDeletedAt ¶
func (bu *BeaconUpdate) SetNillableDeletedAt(t *time.Time) *BeaconUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BeaconUpdate) SetNillableDomain ¶
func (bu *BeaconUpdate) SetNillableDomain(s *string) *BeaconUpdate
SetNillableDomain sets the "domain" field if the given value is not nil.
func (*BeaconUpdate) SetNillableExtIP ¶
func (bu *BeaconUpdate) SetNillableExtIP(t *types.Inet) *BeaconUpdate
SetNillableExtIP sets the "ext_ip" field if the given value is not nil.
func (*BeaconUpdate) SetNillableFirst ¶
func (bu *BeaconUpdate) SetNillableFirst(t *time.Time) *BeaconUpdate
SetNillableFirst sets the "first" field if the given value is not nil.
func (*BeaconUpdate) SetNillableHostname ¶
func (bu *BeaconUpdate) SetNillableHostname(s *string) *BeaconUpdate
SetNillableHostname sets the "hostname" field if the given value is not nil.
func (*BeaconUpdate) SetNillableIntIP ¶
func (bu *BeaconUpdate) SetNillableIntIP(t *types.Inet) *BeaconUpdate
SetNillableIntIP sets the "int_ip" field if the given value is not nil.
func (*BeaconUpdate) SetNillableJitter ¶
func (bu *BeaconUpdate) SetNillableJitter(u *uint8) *BeaconUpdate
SetNillableJitter sets the "jitter" field if the given value is not nil.
func (*BeaconUpdate) SetNillableLast ¶
func (bu *BeaconUpdate) SetNillableLast(t *time.Time) *BeaconUpdate
SetNillableLast sets the "last" field if the given value is not nil.
func (*BeaconUpdate) SetNillableListenerID ¶
func (bu *BeaconUpdate) SetNillableListenerID(i *int) *BeaconUpdate
SetNillableListenerID sets the "listener_id" field if the given value is not nil.
func (*BeaconUpdate) SetNillableNote ¶
func (bu *BeaconUpdate) SetNillableNote(s *string) *BeaconUpdate
SetNillableNote sets the "note" field if the given value is not nil.
func (*BeaconUpdate) SetNillableOs ¶
func (bu *BeaconUpdate) SetNillableOs(do *defaults.BeaconOS) *BeaconUpdate
SetNillableOs sets the "os" field if the given value is not nil.
func (*BeaconUpdate) SetNillableOsMeta ¶
func (bu *BeaconUpdate) SetNillableOsMeta(s *string) *BeaconUpdate
SetNillableOsMeta sets the "os_meta" field if the given value is not nil.
func (*BeaconUpdate) SetNillablePid ¶
func (bu *BeaconUpdate) SetNillablePid(u *uint32) *BeaconUpdate
SetNillablePid sets the "pid" field if the given value is not nil.
func (*BeaconUpdate) SetNillablePrivileged ¶
func (bu *BeaconUpdate) SetNillablePrivileged(b *bool) *BeaconUpdate
SetNillablePrivileged sets the "privileged" field if the given value is not nil.
func (*BeaconUpdate) SetNillableProcessName ¶
func (bu *BeaconUpdate) SetNillableProcessName(s *string) *BeaconUpdate
SetNillableProcessName sets the "process_name" field if the given value is not nil.
func (*BeaconUpdate) SetNillableSleep ¶
func (bu *BeaconUpdate) SetNillableSleep(u *uint32) *BeaconUpdate
SetNillableSleep sets the "sleep" field if the given value is not nil.
func (*BeaconUpdate) SetNillableUsername ¶
func (bu *BeaconUpdate) SetNillableUsername(s *string) *BeaconUpdate
SetNillableUsername sets the "username" field if the given value is not nil.
func (*BeaconUpdate) SetNote ¶
func (bu *BeaconUpdate) SetNote(s string) *BeaconUpdate
SetNote sets the "note" field.
func (*BeaconUpdate) SetOs ¶
func (bu *BeaconUpdate) SetOs(do defaults.BeaconOS) *BeaconUpdate
SetOs sets the "os" field.
func (*BeaconUpdate) SetOsMeta ¶
func (bu *BeaconUpdate) SetOsMeta(s string) *BeaconUpdate
SetOsMeta sets the "os_meta" field.
func (*BeaconUpdate) SetPid ¶
func (bu *BeaconUpdate) SetPid(u uint32) *BeaconUpdate
SetPid sets the "pid" field.
func (*BeaconUpdate) SetPrivileged ¶
func (bu *BeaconUpdate) SetPrivileged(b bool) *BeaconUpdate
SetPrivileged sets the "privileged" field.
func (*BeaconUpdate) SetProcessName ¶
func (bu *BeaconUpdate) SetProcessName(s string) *BeaconUpdate
SetProcessName sets the "process_name" field.
func (*BeaconUpdate) SetSleep ¶
func (bu *BeaconUpdate) SetSleep(u uint32) *BeaconUpdate
SetSleep sets the "sleep" field.
func (*BeaconUpdate) SetUpdatedAt ¶
func (bu *BeaconUpdate) SetUpdatedAt(t time.Time) *BeaconUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BeaconUpdate) SetUsername ¶
func (bu *BeaconUpdate) SetUsername(s string) *BeaconUpdate
SetUsername sets the "username" field.
func (*BeaconUpdate) Where ¶
func (bu *BeaconUpdate) Where(ps ...predicate.Beacon) *BeaconUpdate
Where appends a list predicates to the BeaconUpdate builder.
type BeaconUpdateOne ¶
type BeaconUpdateOne struct {
// contains filtered or unexported fields
}
BeaconUpdateOne is the builder for updating a single Beacon entity.
func (*BeaconUpdateOne) AddBid ¶
func (buo *BeaconUpdateOne) AddBid(u int32) *BeaconUpdateOne
AddBid adds u to the "bid" field.
func (*BeaconUpdateOne) AddCaps ¶
func (buo *BeaconUpdateOne) AddCaps(u int32) *BeaconUpdateOne
AddCaps adds u to the "caps" field.
func (*BeaconUpdateOne) AddColor ¶
func (buo *BeaconUpdateOne) AddColor(u int32) *BeaconUpdateOne
AddColor adds u to the "color" field.
func (*BeaconUpdateOne) AddGroup ¶
func (buo *BeaconUpdateOne) AddGroup(g ...*Group) *BeaconUpdateOne
AddGroup adds the "group" edges to the Group entity.
func (*BeaconUpdateOne) AddGroupIDs ¶
func (buo *BeaconUpdateOne) AddGroupIDs(ids ...int) *BeaconUpdateOne
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*BeaconUpdateOne) AddJitter ¶
func (buo *BeaconUpdateOne) AddJitter(u int8) *BeaconUpdateOne
AddJitter adds u to the "jitter" field.
func (*BeaconUpdateOne) AddPid ¶
func (buo *BeaconUpdateOne) AddPid(u int32) *BeaconUpdateOne
AddPid adds u to the "pid" field.
func (*BeaconUpdateOne) AddSleep ¶
func (buo *BeaconUpdateOne) AddSleep(u int32) *BeaconUpdateOne
AddSleep adds u to the "sleep" field.
func (*BeaconUpdateOne) AddTask ¶
func (buo *BeaconUpdateOne) AddTask(t ...*Task) *BeaconUpdateOne
AddTask adds the "task" edges to the Task entity.
func (*BeaconUpdateOne) AddTaskIDs ¶
func (buo *BeaconUpdateOne) AddTaskIDs(ids ...int) *BeaconUpdateOne
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*BeaconUpdateOne) ClearDeletedAt ¶
func (buo *BeaconUpdateOne) ClearDeletedAt() *BeaconUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BeaconUpdateOne) ClearDomain ¶
func (buo *BeaconUpdateOne) ClearDomain() *BeaconUpdateOne
ClearDomain clears the value of the "domain" field.
func (*BeaconUpdateOne) ClearExtIP ¶
func (buo *BeaconUpdateOne) ClearExtIP() *BeaconUpdateOne
ClearExtIP clears the value of the "ext_ip" field.
func (*BeaconUpdateOne) ClearGroup ¶
func (buo *BeaconUpdateOne) ClearGroup() *BeaconUpdateOne
ClearGroup clears all "group" edges to the Group entity.
func (*BeaconUpdateOne) ClearHostname ¶
func (buo *BeaconUpdateOne) ClearHostname() *BeaconUpdateOne
ClearHostname clears the value of the "hostname" field.
func (*BeaconUpdateOne) ClearIntIP ¶
func (buo *BeaconUpdateOne) ClearIntIP() *BeaconUpdateOne
ClearIntIP clears the value of the "int_ip" field.
func (*BeaconUpdateOne) ClearListener ¶
func (buo *BeaconUpdateOne) ClearListener() *BeaconUpdateOne
ClearListener clears the "listener" edge to the Listener entity.
func (*BeaconUpdateOne) ClearNote ¶
func (buo *BeaconUpdateOne) ClearNote() *BeaconUpdateOne
ClearNote clears the value of the "note" field.
func (*BeaconUpdateOne) ClearOsMeta ¶
func (buo *BeaconUpdateOne) ClearOsMeta() *BeaconUpdateOne
ClearOsMeta clears the value of the "os_meta" field.
func (*BeaconUpdateOne) ClearPid ¶
func (buo *BeaconUpdateOne) ClearPid() *BeaconUpdateOne
ClearPid clears the value of the "pid" field.
func (*BeaconUpdateOne) ClearPrivileged ¶
func (buo *BeaconUpdateOne) ClearPrivileged() *BeaconUpdateOne
ClearPrivileged clears the value of the "privileged" field.
func (*BeaconUpdateOne) ClearProcessName ¶
func (buo *BeaconUpdateOne) ClearProcessName() *BeaconUpdateOne
ClearProcessName clears the value of the "process_name" field.
func (*BeaconUpdateOne) ClearTask ¶
func (buo *BeaconUpdateOne) ClearTask() *BeaconUpdateOne
ClearTask clears all "task" edges to the Task entity.
func (*BeaconUpdateOne) ClearUsername ¶
func (buo *BeaconUpdateOne) ClearUsername() *BeaconUpdateOne
ClearUsername clears the value of the "username" field.
func (*BeaconUpdateOne) Exec ¶
func (buo *BeaconUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BeaconUpdateOne) ExecX ¶
func (buo *BeaconUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeaconUpdateOne) Mutation ¶
func (buo *BeaconUpdateOne) Mutation() *BeaconMutation
Mutation returns the BeaconMutation object of the builder.
func (*BeaconUpdateOne) RemoveGroup ¶
func (buo *BeaconUpdateOne) RemoveGroup(g ...*Group) *BeaconUpdateOne
RemoveGroup removes "group" edges to Group entities.
func (*BeaconUpdateOne) RemoveGroupIDs ¶
func (buo *BeaconUpdateOne) RemoveGroupIDs(ids ...int) *BeaconUpdateOne
RemoveGroupIDs removes the "group" edge to Group entities by IDs.
func (*BeaconUpdateOne) RemoveTask ¶
func (buo *BeaconUpdateOne) RemoveTask(t ...*Task) *BeaconUpdateOne
RemoveTask removes "task" edges to Task entities.
func (*BeaconUpdateOne) RemoveTaskIDs ¶
func (buo *BeaconUpdateOne) RemoveTaskIDs(ids ...int) *BeaconUpdateOne
RemoveTaskIDs removes the "task" edge to Task entities by IDs.
func (*BeaconUpdateOne) Save ¶
func (buo *BeaconUpdateOne) Save(ctx context.Context) (*Beacon, error)
Save executes the query and returns the updated Beacon entity.
func (*BeaconUpdateOne) SaveX ¶
func (buo *BeaconUpdateOne) SaveX(ctx context.Context) *Beacon
SaveX is like Save, but panics if an error occurs.
func (*BeaconUpdateOne) Select ¶
func (buo *BeaconUpdateOne) Select(field string, fields ...string) *BeaconUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BeaconUpdateOne) SetArch ¶
func (buo *BeaconUpdateOne) SetArch(da defaults.BeaconArch) *BeaconUpdateOne
SetArch sets the "arch" field.
func (*BeaconUpdateOne) SetBid ¶
func (buo *BeaconUpdateOne) SetBid(u uint32) *BeaconUpdateOne
SetBid sets the "bid" field.
func (*BeaconUpdateOne) SetCaps ¶
func (buo *BeaconUpdateOne) SetCaps(u uint32) *BeaconUpdateOne
SetCaps sets the "caps" field.
func (*BeaconUpdateOne) SetColor ¶
func (buo *BeaconUpdateOne) SetColor(u uint32) *BeaconUpdateOne
SetColor sets the "color" field.
func (*BeaconUpdateOne) SetDeletedAt ¶
func (buo *BeaconUpdateOne) SetDeletedAt(t time.Time) *BeaconUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BeaconUpdateOne) SetDomain ¶
func (buo *BeaconUpdateOne) SetDomain(s string) *BeaconUpdateOne
SetDomain sets the "domain" field.
func (*BeaconUpdateOne) SetExtIP ¶
func (buo *BeaconUpdateOne) SetExtIP(t types.Inet) *BeaconUpdateOne
SetExtIP sets the "ext_ip" field.
func (*BeaconUpdateOne) SetFirst ¶
func (buo *BeaconUpdateOne) SetFirst(t time.Time) *BeaconUpdateOne
SetFirst sets the "first" field.
func (*BeaconUpdateOne) SetHostname ¶
func (buo *BeaconUpdateOne) SetHostname(s string) *BeaconUpdateOne
SetHostname sets the "hostname" field.
func (*BeaconUpdateOne) SetIntIP ¶
func (buo *BeaconUpdateOne) SetIntIP(t types.Inet) *BeaconUpdateOne
SetIntIP sets the "int_ip" field.
func (*BeaconUpdateOne) SetJitter ¶
func (buo *BeaconUpdateOne) SetJitter(u uint8) *BeaconUpdateOne
SetJitter sets the "jitter" field.
func (*BeaconUpdateOne) SetLast ¶
func (buo *BeaconUpdateOne) SetLast(t time.Time) *BeaconUpdateOne
SetLast sets the "last" field.
func (*BeaconUpdateOne) SetListener ¶
func (buo *BeaconUpdateOne) SetListener(l *Listener) *BeaconUpdateOne
SetListener sets the "listener" edge to the Listener entity.
func (*BeaconUpdateOne) SetListenerID ¶
func (buo *BeaconUpdateOne) SetListenerID(i int) *BeaconUpdateOne
SetListenerID sets the "listener_id" field.
func (*BeaconUpdateOne) SetNillableArch ¶
func (buo *BeaconUpdateOne) SetNillableArch(da *defaults.BeaconArch) *BeaconUpdateOne
SetNillableArch sets the "arch" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableBid ¶
func (buo *BeaconUpdateOne) SetNillableBid(u *uint32) *BeaconUpdateOne
SetNillableBid sets the "bid" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableCaps ¶
func (buo *BeaconUpdateOne) SetNillableCaps(u *uint32) *BeaconUpdateOne
SetNillableCaps sets the "caps" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableColor ¶
func (buo *BeaconUpdateOne) SetNillableColor(u *uint32) *BeaconUpdateOne
SetNillableColor sets the "color" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableDeletedAt ¶
func (buo *BeaconUpdateOne) SetNillableDeletedAt(t *time.Time) *BeaconUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableDomain ¶
func (buo *BeaconUpdateOne) SetNillableDomain(s *string) *BeaconUpdateOne
SetNillableDomain sets the "domain" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableExtIP ¶
func (buo *BeaconUpdateOne) SetNillableExtIP(t *types.Inet) *BeaconUpdateOne
SetNillableExtIP sets the "ext_ip" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableFirst ¶
func (buo *BeaconUpdateOne) SetNillableFirst(t *time.Time) *BeaconUpdateOne
SetNillableFirst sets the "first" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableHostname ¶
func (buo *BeaconUpdateOne) SetNillableHostname(s *string) *BeaconUpdateOne
SetNillableHostname sets the "hostname" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableIntIP ¶
func (buo *BeaconUpdateOne) SetNillableIntIP(t *types.Inet) *BeaconUpdateOne
SetNillableIntIP sets the "int_ip" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableJitter ¶
func (buo *BeaconUpdateOne) SetNillableJitter(u *uint8) *BeaconUpdateOne
SetNillableJitter sets the "jitter" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableLast ¶
func (buo *BeaconUpdateOne) SetNillableLast(t *time.Time) *BeaconUpdateOne
SetNillableLast sets the "last" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableListenerID ¶
func (buo *BeaconUpdateOne) SetNillableListenerID(i *int) *BeaconUpdateOne
SetNillableListenerID sets the "listener_id" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableNote ¶
func (buo *BeaconUpdateOne) SetNillableNote(s *string) *BeaconUpdateOne
SetNillableNote sets the "note" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableOs ¶
func (buo *BeaconUpdateOne) SetNillableOs(do *defaults.BeaconOS) *BeaconUpdateOne
SetNillableOs sets the "os" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableOsMeta ¶
func (buo *BeaconUpdateOne) SetNillableOsMeta(s *string) *BeaconUpdateOne
SetNillableOsMeta sets the "os_meta" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillablePid ¶
func (buo *BeaconUpdateOne) SetNillablePid(u *uint32) *BeaconUpdateOne
SetNillablePid sets the "pid" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillablePrivileged ¶
func (buo *BeaconUpdateOne) SetNillablePrivileged(b *bool) *BeaconUpdateOne
SetNillablePrivileged sets the "privileged" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableProcessName ¶
func (buo *BeaconUpdateOne) SetNillableProcessName(s *string) *BeaconUpdateOne
SetNillableProcessName sets the "process_name" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableSleep ¶
func (buo *BeaconUpdateOne) SetNillableSleep(u *uint32) *BeaconUpdateOne
SetNillableSleep sets the "sleep" field if the given value is not nil.
func (*BeaconUpdateOne) SetNillableUsername ¶
func (buo *BeaconUpdateOne) SetNillableUsername(s *string) *BeaconUpdateOne
SetNillableUsername sets the "username" field if the given value is not nil.
func (*BeaconUpdateOne) SetNote ¶
func (buo *BeaconUpdateOne) SetNote(s string) *BeaconUpdateOne
SetNote sets the "note" field.
func (*BeaconUpdateOne) SetOs ¶
func (buo *BeaconUpdateOne) SetOs(do defaults.BeaconOS) *BeaconUpdateOne
SetOs sets the "os" field.
func (*BeaconUpdateOne) SetOsMeta ¶
func (buo *BeaconUpdateOne) SetOsMeta(s string) *BeaconUpdateOne
SetOsMeta sets the "os_meta" field.
func (*BeaconUpdateOne) SetPid ¶
func (buo *BeaconUpdateOne) SetPid(u uint32) *BeaconUpdateOne
SetPid sets the "pid" field.
func (*BeaconUpdateOne) SetPrivileged ¶
func (buo *BeaconUpdateOne) SetPrivileged(b bool) *BeaconUpdateOne
SetPrivileged sets the "privileged" field.
func (*BeaconUpdateOne) SetProcessName ¶
func (buo *BeaconUpdateOne) SetProcessName(s string) *BeaconUpdateOne
SetProcessName sets the "process_name" field.
func (*BeaconUpdateOne) SetSleep ¶
func (buo *BeaconUpdateOne) SetSleep(u uint32) *BeaconUpdateOne
SetSleep sets the "sleep" field.
func (*BeaconUpdateOne) SetUpdatedAt ¶
func (buo *BeaconUpdateOne) SetUpdatedAt(t time.Time) *BeaconUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BeaconUpdateOne) SetUsername ¶
func (buo *BeaconUpdateOne) SetUsername(s string) *BeaconUpdateOne
SetUsername sets the "username" field.
func (*BeaconUpdateOne) Where ¶
func (buo *BeaconUpdateOne) Where(ps ...predicate.Beacon) *BeaconUpdateOne
Where appends a list predicates to the BeaconUpdate builder.
type Blobber ¶
type Blobber struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // non-cryptographic hash of blob Hash []byte `json:"hash,omitempty"` // blob to store Blob []byte `json:"blob,omitempty"` // real size of blob Size int `json:"size,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the BlobberQuery when eager-loading is set. Edges BlobberEdges `json:"edges"` // contains filtered or unexported fields }
Blobber is the model entity for the Blobber schema.
func (*Blobber) QueryTaskArgs ¶
QueryTaskArgs queries the "task_args" edge of the Blobber entity.
func (*Blobber) QueryTaskOutput ¶
QueryTaskOutput queries the "task_output" edge of the Blobber entity.
func (*Blobber) Unwrap ¶
Unwrap unwraps the Blobber entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Blobber) Update ¶
func (b *Blobber) Update() *BlobberUpdateOne
Update returns a builder for updating this Blobber. Note that you need to call Blobber.Unwrap() before calling this method if this Blobber was returned from a transaction, and the transaction was committed or rolled back.
type BlobberClient ¶
type BlobberClient struct {
// contains filtered or unexported fields
}
BlobberClient is a client for the Blobber schema.
func NewBlobberClient ¶
func NewBlobberClient(c config) *BlobberClient
NewBlobberClient returns a client for the Blobber from the given config.
func (*BlobberClient) Create ¶
func (c *BlobberClient) Create() *BlobberCreate
Create returns a builder for creating a Blobber entity.
func (*BlobberClient) CreateBulk ¶
func (c *BlobberClient) CreateBulk(builders ...*BlobberCreate) *BlobberCreateBulk
CreateBulk returns a builder for creating a bulk of Blobber entities.
func (*BlobberClient) Delete ¶
func (c *BlobberClient) Delete() *BlobberDelete
Delete returns a delete builder for Blobber.
func (*BlobberClient) DeleteOne ¶
func (c *BlobberClient) DeleteOne(b *Blobber) *BlobberDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BlobberClient) DeleteOneID ¶
func (c *BlobberClient) DeleteOneID(id int) *BlobberDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BlobberClient) GetX ¶
func (c *BlobberClient) GetX(ctx context.Context, id int) *Blobber
GetX is like Get, but panics if an error occurs.
func (*BlobberClient) Hooks ¶
func (c *BlobberClient) Hooks() []Hook
Hooks returns the client hooks.
func (*BlobberClient) Intercept ¶
func (c *BlobberClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `blobber.Intercept(f(g(h())))`.
func (*BlobberClient) Interceptors ¶
func (c *BlobberClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*BlobberClient) MapCreateBulk ¶
func (c *BlobberClient) MapCreateBulk(slice any, setFunc func(*BlobberCreate, int)) *BlobberCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*BlobberClient) Query ¶
func (c *BlobberClient) Query() *BlobberQuery
Query returns a query builder for Blobber.
func (*BlobberClient) QueryTaskArgs ¶
func (c *BlobberClient) QueryTaskArgs(b *Blobber) *TaskQuery
QueryTaskArgs queries the task_args edge of a Blobber.
func (*BlobberClient) QueryTaskOutput ¶
func (c *BlobberClient) QueryTaskOutput(b *Blobber) *TaskQuery
QueryTaskOutput queries the task_output edge of a Blobber.
func (*BlobberClient) Update ¶
func (c *BlobberClient) Update() *BlobberUpdate
Update returns an update builder for Blobber.
func (*BlobberClient) UpdateOne ¶
func (c *BlobberClient) UpdateOne(b *Blobber) *BlobberUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BlobberClient) UpdateOneID ¶
func (c *BlobberClient) UpdateOneID(id int) *BlobberUpdateOne
UpdateOneID returns an update builder for the given id.
func (*BlobberClient) Use ¶
func (c *BlobberClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `blobber.Hooks(f(g(h())))`.
type BlobberCreate ¶
type BlobberCreate struct {
// contains filtered or unexported fields
}
BlobberCreate is the builder for creating a Blobber entity.
func (*BlobberCreate) AddTaskArgIDs ¶
func (bc *BlobberCreate) AddTaskArgIDs(ids ...int) *BlobberCreate
AddTaskArgIDs adds the "task_args" edge to the Task entity by IDs.
func (*BlobberCreate) AddTaskArgs ¶
func (bc *BlobberCreate) AddTaskArgs(t ...*Task) *BlobberCreate
AddTaskArgs adds the "task_args" edges to the Task entity.
func (*BlobberCreate) AddTaskOutput ¶
func (bc *BlobberCreate) AddTaskOutput(t ...*Task) *BlobberCreate
AddTaskOutput adds the "task_output" edges to the Task entity.
func (*BlobberCreate) AddTaskOutputIDs ¶
func (bc *BlobberCreate) AddTaskOutputIDs(ids ...int) *BlobberCreate
AddTaskOutputIDs adds the "task_output" edge to the Task entity by IDs.
func (*BlobberCreate) Exec ¶
func (bc *BlobberCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*BlobberCreate) ExecX ¶
func (bc *BlobberCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BlobberCreate) Mutation ¶
func (bc *BlobberCreate) Mutation() *BlobberMutation
Mutation returns the BlobberMutation object of the builder.
func (*BlobberCreate) Save ¶
func (bc *BlobberCreate) Save(ctx context.Context) (*Blobber, error)
Save creates the Blobber in the database.
func (*BlobberCreate) SaveX ¶
func (bc *BlobberCreate) SaveX(ctx context.Context) *Blobber
SaveX calls Save and panics if Save returns an error.
func (*BlobberCreate) SetBlob ¶
func (bc *BlobberCreate) SetBlob(b []byte) *BlobberCreate
SetBlob sets the "blob" field.
func (*BlobberCreate) SetCreatedAt ¶
func (bc *BlobberCreate) SetCreatedAt(t time.Time) *BlobberCreate
SetCreatedAt sets the "created_at" field.
func (*BlobberCreate) SetDeletedAt ¶
func (bc *BlobberCreate) SetDeletedAt(t time.Time) *BlobberCreate
SetDeletedAt sets the "deleted_at" field.
func (*BlobberCreate) SetHash ¶
func (bc *BlobberCreate) SetHash(b []byte) *BlobberCreate
SetHash sets the "hash" field.
func (*BlobberCreate) SetNillableCreatedAt ¶
func (bc *BlobberCreate) SetNillableCreatedAt(t *time.Time) *BlobberCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*BlobberCreate) SetNillableDeletedAt ¶
func (bc *BlobberCreate) SetNillableDeletedAt(t *time.Time) *BlobberCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BlobberCreate) SetNillableUpdatedAt ¶
func (bc *BlobberCreate) SetNillableUpdatedAt(t *time.Time) *BlobberCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*BlobberCreate) SetSize ¶
func (bc *BlobberCreate) SetSize(i int) *BlobberCreate
SetSize sets the "size" field.
func (*BlobberCreate) SetUpdatedAt ¶
func (bc *BlobberCreate) SetUpdatedAt(t time.Time) *BlobberCreate
SetUpdatedAt sets the "updated_at" field.
type BlobberCreateBulk ¶
type BlobberCreateBulk struct {
// contains filtered or unexported fields
}
BlobberCreateBulk is the builder for creating many Blobber entities in bulk.
func (*BlobberCreateBulk) Exec ¶
func (bcb *BlobberCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BlobberCreateBulk) ExecX ¶
func (bcb *BlobberCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type BlobberDelete ¶
type BlobberDelete struct {
// contains filtered or unexported fields
}
BlobberDelete is the builder for deleting a Blobber entity.
func (*BlobberDelete) Exec ¶
func (bd *BlobberDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*BlobberDelete) ExecX ¶
func (bd *BlobberDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*BlobberDelete) Where ¶
func (bd *BlobberDelete) Where(ps ...predicate.Blobber) *BlobberDelete
Where appends a list predicates to the BlobberDelete builder.
type BlobberDeleteOne ¶
type BlobberDeleteOne struct {
// contains filtered or unexported fields
}
BlobberDeleteOne is the builder for deleting a single Blobber entity.
func (*BlobberDeleteOne) Exec ¶
func (bdo *BlobberDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*BlobberDeleteOne) ExecX ¶
func (bdo *BlobberDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BlobberDeleteOne) Where ¶
func (bdo *BlobberDeleteOne) Where(ps ...predicate.Blobber) *BlobberDeleteOne
Where appends a list predicates to the BlobberDelete builder.
type BlobberEdges ¶
type BlobberEdges struct { // TaskArgs holds the value of the task_args edge. TaskArgs []*Task `json:"task_args,omitempty"` // TaskOutput holds the value of the task_output edge. TaskOutput []*Task `json:"task_output,omitempty"` // contains filtered or unexported fields }
BlobberEdges holds the relations/edges for other nodes in the graph.
func (BlobberEdges) TaskArgsOrErr ¶
func (e BlobberEdges) TaskArgsOrErr() ([]*Task, error)
TaskArgsOrErr returns the TaskArgs value or an error if the edge was not loaded in eager-loading.
func (BlobberEdges) TaskOutputOrErr ¶
func (e BlobberEdges) TaskOutputOrErr() ([]*Task, error)
TaskOutputOrErr returns the TaskOutput value or an error if the edge was not loaded in eager-loading.
type BlobberGroupBy ¶
type BlobberGroupBy struct {
// contains filtered or unexported fields
}
BlobberGroupBy is the group-by builder for Blobber entities.
func (*BlobberGroupBy) Aggregate ¶
func (bgb *BlobberGroupBy) Aggregate(fns ...AggregateFunc) *BlobberGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BlobberGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BlobberGroupBy) Scan ¶
func (bgb *BlobberGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BlobberGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BlobberMutation ¶
type BlobberMutation struct {
// contains filtered or unexported fields
}
BlobberMutation represents an operation that mutates the Blobber nodes in the graph.
func (*BlobberMutation) AddField ¶
func (m *BlobberMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BlobberMutation) AddSize ¶
func (m *BlobberMutation) AddSize(i int)
AddSize adds i to the "size" field.
func (*BlobberMutation) AddTaskArgIDs ¶
func (m *BlobberMutation) AddTaskArgIDs(ids ...int)
AddTaskArgIDs adds the "task_args" edge to the Task entity by ids.
func (*BlobberMutation) AddTaskOutputIDs ¶
func (m *BlobberMutation) AddTaskOutputIDs(ids ...int)
AddTaskOutputIDs adds the "task_output" edge to the Task entity by ids.
func (*BlobberMutation) AddedEdges ¶
func (m *BlobberMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*BlobberMutation) AddedField ¶
func (m *BlobberMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BlobberMutation) AddedFields ¶
func (m *BlobberMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*BlobberMutation) AddedIDs ¶
func (m *BlobberMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*BlobberMutation) AddedSize ¶
func (m *BlobberMutation) AddedSize() (r int, exists bool)
AddedSize returns the value that was added to the "size" field in this mutation.
func (*BlobberMutation) Blob ¶
func (m *BlobberMutation) Blob() (r []byte, exists bool)
Blob returns the value of the "blob" field in the mutation.
func (*BlobberMutation) ClearDeletedAt ¶
func (m *BlobberMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BlobberMutation) ClearEdge ¶
func (m *BlobberMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*BlobberMutation) ClearField ¶
func (m *BlobberMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*BlobberMutation) ClearTaskArgs ¶
func (m *BlobberMutation) ClearTaskArgs()
ClearTaskArgs clears the "task_args" edge to the Task entity.
func (*BlobberMutation) ClearTaskOutput ¶
func (m *BlobberMutation) ClearTaskOutput()
ClearTaskOutput clears the "task_output" edge to the Task entity.
func (*BlobberMutation) ClearedEdges ¶
func (m *BlobberMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*BlobberMutation) ClearedFields ¶
func (m *BlobberMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (BlobberMutation) Client ¶
func (m BlobberMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*BlobberMutation) CreatedAt ¶
func (m *BlobberMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*BlobberMutation) DeletedAt ¶
func (m *BlobberMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*BlobberMutation) DeletedAtCleared ¶
func (m *BlobberMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*BlobberMutation) EdgeCleared ¶
func (m *BlobberMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*BlobberMutation) Field ¶
func (m *BlobberMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*BlobberMutation) FieldCleared ¶
func (m *BlobberMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*BlobberMutation) Fields ¶
func (m *BlobberMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*BlobberMutation) Hash ¶
func (m *BlobberMutation) Hash() (r []byte, exists bool)
Hash returns the value of the "hash" field in the mutation.
func (*BlobberMutation) ID ¶
func (m *BlobberMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*BlobberMutation) IDs ¶
func (m *BlobberMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*BlobberMutation) OldBlob ¶
func (m *BlobberMutation) OldBlob(ctx context.Context) (v []byte, err error)
OldBlob returns the old "blob" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*BlobberMutation) OldHash ¶
func (m *BlobberMutation) OldHash(ctx context.Context) (v []byte, err error)
OldHash returns the old "hash" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) OldSize ¶
func (m *BlobberMutation) OldSize(ctx context.Context) (v int, err error)
OldSize returns the old "size" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Blobber entity. If the Blobber object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*BlobberMutation) RemoveTaskArgIDs ¶
func (m *BlobberMutation) RemoveTaskArgIDs(ids ...int)
RemoveTaskArgIDs removes the "task_args" edge to the Task entity by IDs.
func (*BlobberMutation) RemoveTaskOutputIDs ¶
func (m *BlobberMutation) RemoveTaskOutputIDs(ids ...int)
RemoveTaskOutputIDs removes the "task_output" edge to the Task entity by IDs.
func (*BlobberMutation) RemovedEdges ¶
func (m *BlobberMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*BlobberMutation) RemovedIDs ¶
func (m *BlobberMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*BlobberMutation) RemovedTaskArgsIDs ¶
func (m *BlobberMutation) RemovedTaskArgsIDs() (ids []int)
RemovedTaskArgs returns the removed IDs of the "task_args" edge to the Task entity.
func (*BlobberMutation) RemovedTaskOutputIDs ¶
func (m *BlobberMutation) RemovedTaskOutputIDs() (ids []int)
RemovedTaskOutput returns the removed IDs of the "task_output" edge to the Task entity.
func (*BlobberMutation) ResetBlob ¶
func (m *BlobberMutation) ResetBlob()
ResetBlob resets all changes to the "blob" field.
func (*BlobberMutation) ResetCreatedAt ¶
func (m *BlobberMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*BlobberMutation) ResetDeletedAt ¶
func (m *BlobberMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*BlobberMutation) ResetEdge ¶
func (m *BlobberMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*BlobberMutation) ResetField ¶
func (m *BlobberMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*BlobberMutation) ResetHash ¶
func (m *BlobberMutation) ResetHash()
ResetHash resets all changes to the "hash" field.
func (*BlobberMutation) ResetSize ¶
func (m *BlobberMutation) ResetSize()
ResetSize resets all changes to the "size" field.
func (*BlobberMutation) ResetTaskArgs ¶
func (m *BlobberMutation) ResetTaskArgs()
ResetTaskArgs resets all changes to the "task_args" edge.
func (*BlobberMutation) ResetTaskOutput ¶
func (m *BlobberMutation) ResetTaskOutput()
ResetTaskOutput resets all changes to the "task_output" edge.
func (*BlobberMutation) ResetUpdatedAt ¶
func (m *BlobberMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*BlobberMutation) SetBlob ¶
func (m *BlobberMutation) SetBlob(b []byte)
SetBlob sets the "blob" field.
func (*BlobberMutation) SetCreatedAt ¶
func (m *BlobberMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*BlobberMutation) SetDeletedAt ¶
func (m *BlobberMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*BlobberMutation) SetField ¶
func (m *BlobberMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*BlobberMutation) SetHash ¶
func (m *BlobberMutation) SetHash(b []byte)
SetHash sets the "hash" field.
func (*BlobberMutation) SetOp ¶
func (m *BlobberMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*BlobberMutation) SetSize ¶
func (m *BlobberMutation) SetSize(i int)
SetSize sets the "size" field.
func (*BlobberMutation) SetUpdatedAt ¶
func (m *BlobberMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*BlobberMutation) Size ¶
func (m *BlobberMutation) Size() (r int, exists bool)
Size returns the value of the "size" field in the mutation.
func (*BlobberMutation) TaskArgsCleared ¶
func (m *BlobberMutation) TaskArgsCleared() bool
TaskArgsCleared reports if the "task_args" edge to the Task entity was cleared.
func (*BlobberMutation) TaskArgsIDs ¶
func (m *BlobberMutation) TaskArgsIDs() (ids []int)
TaskArgsIDs returns the "task_args" edge IDs in the mutation.
func (*BlobberMutation) TaskOutputCleared ¶
func (m *BlobberMutation) TaskOutputCleared() bool
TaskOutputCleared reports if the "task_output" edge to the Task entity was cleared.
func (*BlobberMutation) TaskOutputIDs ¶
func (m *BlobberMutation) TaskOutputIDs() (ids []int)
TaskOutputIDs returns the "task_output" edge IDs in the mutation.
func (BlobberMutation) Tx ¶
func (m BlobberMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*BlobberMutation) Type ¶
func (m *BlobberMutation) Type() string
Type returns the node type of this mutation (Blobber).
func (*BlobberMutation) UpdatedAt ¶
func (m *BlobberMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*BlobberMutation) Where ¶
func (m *BlobberMutation) Where(ps ...predicate.Blobber)
Where appends a list predicates to the BlobberMutation builder.
func (*BlobberMutation) WhereP ¶
func (m *BlobberMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the BlobberMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type BlobberQuery ¶
type BlobberQuery struct {
// contains filtered or unexported fields
}
BlobberQuery is the builder for querying Blobber entities.
func (*BlobberQuery) Aggregate ¶
func (bq *BlobberQuery) Aggregate(fns ...AggregateFunc) *BlobberSelect
Aggregate returns a BlobberSelect configured with the given aggregations.
func (*BlobberQuery) All ¶
func (bq *BlobberQuery) All(ctx context.Context) ([]*Blobber, error)
All executes the query and returns a list of Blobbers.
func (*BlobberQuery) AllX ¶
func (bq *BlobberQuery) AllX(ctx context.Context) []*Blobber
AllX is like All, but panics if an error occurs.
func (*BlobberQuery) Clone ¶
func (bq *BlobberQuery) Clone() *BlobberQuery
Clone returns a duplicate of the BlobberQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*BlobberQuery) Count ¶
func (bq *BlobberQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*BlobberQuery) CountX ¶
func (bq *BlobberQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*BlobberQuery) Exist ¶
func (bq *BlobberQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*BlobberQuery) ExistX ¶
func (bq *BlobberQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*BlobberQuery) First ¶
func (bq *BlobberQuery) First(ctx context.Context) (*Blobber, error)
First returns the first Blobber entity from the query. Returns a *NotFoundError when no Blobber was found.
func (*BlobberQuery) FirstID ¶
func (bq *BlobberQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Blobber ID from the query. Returns a *NotFoundError when no Blobber ID was found.
func (*BlobberQuery) FirstIDX ¶
func (bq *BlobberQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*BlobberQuery) FirstX ¶
func (bq *BlobberQuery) FirstX(ctx context.Context) *Blobber
FirstX is like First, but panics if an error occurs.
func (*BlobberQuery) ForShare ¶
func (bq *BlobberQuery) ForShare(opts ...sql.LockOption) *BlobberQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*BlobberQuery) ForUpdate ¶
func (bq *BlobberQuery) ForUpdate(opts ...sql.LockOption) *BlobberQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*BlobberQuery) GroupBy ¶
func (bq *BlobberQuery) GroupBy(field string, fields ...string) *BlobberGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Blobber.Query(). GroupBy(blobber.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*BlobberQuery) IDs ¶
func (bq *BlobberQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Blobber IDs.
func (*BlobberQuery) IDsX ¶
func (bq *BlobberQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*BlobberQuery) Limit ¶
func (bq *BlobberQuery) Limit(limit int) *BlobberQuery
Limit the number of records to be returned by this query.
func (*BlobberQuery) Offset ¶
func (bq *BlobberQuery) Offset(offset int) *BlobberQuery
Offset to start from.
func (*BlobberQuery) Only ¶
func (bq *BlobberQuery) Only(ctx context.Context) (*Blobber, error)
Only returns a single Blobber entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Blobber entity is found. Returns a *NotFoundError when no Blobber entities are found.
func (*BlobberQuery) OnlyID ¶
func (bq *BlobberQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Blobber ID in the query. Returns a *NotSingularError when more than one Blobber ID is found. Returns a *NotFoundError when no entities are found.
func (*BlobberQuery) OnlyIDX ¶
func (bq *BlobberQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*BlobberQuery) OnlyX ¶
func (bq *BlobberQuery) OnlyX(ctx context.Context) *Blobber
OnlyX is like Only, but panics if an error occurs.
func (*BlobberQuery) Order ¶
func (bq *BlobberQuery) Order(o ...blobber.OrderOption) *BlobberQuery
Order specifies how the records should be ordered.
func (*BlobberQuery) QueryTaskArgs ¶
func (bq *BlobberQuery) QueryTaskArgs() *TaskQuery
QueryTaskArgs chains the current query on the "task_args" edge.
func (*BlobberQuery) QueryTaskOutput ¶
func (bq *BlobberQuery) QueryTaskOutput() *TaskQuery
QueryTaskOutput chains the current query on the "task_output" edge.
func (*BlobberQuery) Select ¶
func (bq *BlobberQuery) Select(fields ...string) *BlobberSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Blobber.Query(). Select(blobber.FieldCreatedAt). Scan(ctx, &v)
func (*BlobberQuery) Unique ¶
func (bq *BlobberQuery) Unique(unique bool) *BlobberQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*BlobberQuery) Where ¶
func (bq *BlobberQuery) Where(ps ...predicate.Blobber) *BlobberQuery
Where adds a new predicate for the BlobberQuery builder.
func (*BlobberQuery) WithTaskArgs ¶
func (bq *BlobberQuery) WithTaskArgs(opts ...func(*TaskQuery)) *BlobberQuery
WithTaskArgs tells the query-builder to eager-load the nodes that are connected to the "task_args" edge. The optional arguments are used to configure the query builder of the edge.
func (*BlobberQuery) WithTaskOutput ¶
func (bq *BlobberQuery) WithTaskOutput(opts ...func(*TaskQuery)) *BlobberQuery
WithTaskOutput tells the query-builder to eager-load the nodes that are connected to the "task_output" edge. The optional arguments are used to configure the query builder of the edge.
type BlobberSelect ¶
type BlobberSelect struct { *BlobberQuery // contains filtered or unexported fields }
BlobberSelect is the builder for selecting fields of Blobber entities.
func (*BlobberSelect) Aggregate ¶
func (bs *BlobberSelect) Aggregate(fns ...AggregateFunc) *BlobberSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BlobberSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*BlobberSelect) Scan ¶
func (bs *BlobberSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*BlobberSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type BlobberUpdate ¶
type BlobberUpdate struct {
// contains filtered or unexported fields
}
BlobberUpdate is the builder for updating Blobber entities.
func (*BlobberUpdate) AddSize ¶
func (bu *BlobberUpdate) AddSize(i int) *BlobberUpdate
AddSize adds i to the "size" field.
func (*BlobberUpdate) AddTaskArgIDs ¶
func (bu *BlobberUpdate) AddTaskArgIDs(ids ...int) *BlobberUpdate
AddTaskArgIDs adds the "task_args" edge to the Task entity by IDs.
func (*BlobberUpdate) AddTaskArgs ¶
func (bu *BlobberUpdate) AddTaskArgs(t ...*Task) *BlobberUpdate
AddTaskArgs adds the "task_args" edges to the Task entity.
func (*BlobberUpdate) AddTaskOutput ¶
func (bu *BlobberUpdate) AddTaskOutput(t ...*Task) *BlobberUpdate
AddTaskOutput adds the "task_output" edges to the Task entity.
func (*BlobberUpdate) AddTaskOutputIDs ¶
func (bu *BlobberUpdate) AddTaskOutputIDs(ids ...int) *BlobberUpdate
AddTaskOutputIDs adds the "task_output" edge to the Task entity by IDs.
func (*BlobberUpdate) ClearDeletedAt ¶
func (bu *BlobberUpdate) ClearDeletedAt() *BlobberUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BlobberUpdate) ClearTaskArgs ¶
func (bu *BlobberUpdate) ClearTaskArgs() *BlobberUpdate
ClearTaskArgs clears all "task_args" edges to the Task entity.
func (*BlobberUpdate) ClearTaskOutput ¶
func (bu *BlobberUpdate) ClearTaskOutput() *BlobberUpdate
ClearTaskOutput clears all "task_output" edges to the Task entity.
func (*BlobberUpdate) Exec ¶
func (bu *BlobberUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*BlobberUpdate) ExecX ¶
func (bu *BlobberUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BlobberUpdate) Mutation ¶
func (bu *BlobberUpdate) Mutation() *BlobberMutation
Mutation returns the BlobberMutation object of the builder.
func (*BlobberUpdate) RemoveTaskArgIDs ¶
func (bu *BlobberUpdate) RemoveTaskArgIDs(ids ...int) *BlobberUpdate
RemoveTaskArgIDs removes the "task_args" edge to Task entities by IDs.
func (*BlobberUpdate) RemoveTaskArgs ¶
func (bu *BlobberUpdate) RemoveTaskArgs(t ...*Task) *BlobberUpdate
RemoveTaskArgs removes "task_args" edges to Task entities.
func (*BlobberUpdate) RemoveTaskOutput ¶
func (bu *BlobberUpdate) RemoveTaskOutput(t ...*Task) *BlobberUpdate
RemoveTaskOutput removes "task_output" edges to Task entities.
func (*BlobberUpdate) RemoveTaskOutputIDs ¶
func (bu *BlobberUpdate) RemoveTaskOutputIDs(ids ...int) *BlobberUpdate
RemoveTaskOutputIDs removes the "task_output" edge to Task entities by IDs.
func (*BlobberUpdate) Save ¶
func (bu *BlobberUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*BlobberUpdate) SaveX ¶
func (bu *BlobberUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*BlobberUpdate) SetBlob ¶
func (bu *BlobberUpdate) SetBlob(b []byte) *BlobberUpdate
SetBlob sets the "blob" field.
func (*BlobberUpdate) SetDeletedAt ¶
func (bu *BlobberUpdate) SetDeletedAt(t time.Time) *BlobberUpdate
SetDeletedAt sets the "deleted_at" field.
func (*BlobberUpdate) SetHash ¶
func (bu *BlobberUpdate) SetHash(b []byte) *BlobberUpdate
SetHash sets the "hash" field.
func (*BlobberUpdate) SetNillableDeletedAt ¶
func (bu *BlobberUpdate) SetNillableDeletedAt(t *time.Time) *BlobberUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BlobberUpdate) SetNillableSize ¶
func (bu *BlobberUpdate) SetNillableSize(i *int) *BlobberUpdate
SetNillableSize sets the "size" field if the given value is not nil.
func (*BlobberUpdate) SetSize ¶
func (bu *BlobberUpdate) SetSize(i int) *BlobberUpdate
SetSize sets the "size" field.
func (*BlobberUpdate) SetUpdatedAt ¶
func (bu *BlobberUpdate) SetUpdatedAt(t time.Time) *BlobberUpdate
SetUpdatedAt sets the "updated_at" field.
func (*BlobberUpdate) Where ¶
func (bu *BlobberUpdate) Where(ps ...predicate.Blobber) *BlobberUpdate
Where appends a list predicates to the BlobberUpdate builder.
type BlobberUpdateOne ¶
type BlobberUpdateOne struct {
// contains filtered or unexported fields
}
BlobberUpdateOne is the builder for updating a single Blobber entity.
func (*BlobberUpdateOne) AddSize ¶
func (buo *BlobberUpdateOne) AddSize(i int) *BlobberUpdateOne
AddSize adds i to the "size" field.
func (*BlobberUpdateOne) AddTaskArgIDs ¶
func (buo *BlobberUpdateOne) AddTaskArgIDs(ids ...int) *BlobberUpdateOne
AddTaskArgIDs adds the "task_args" edge to the Task entity by IDs.
func (*BlobberUpdateOne) AddTaskArgs ¶
func (buo *BlobberUpdateOne) AddTaskArgs(t ...*Task) *BlobberUpdateOne
AddTaskArgs adds the "task_args" edges to the Task entity.
func (*BlobberUpdateOne) AddTaskOutput ¶
func (buo *BlobberUpdateOne) AddTaskOutput(t ...*Task) *BlobberUpdateOne
AddTaskOutput adds the "task_output" edges to the Task entity.
func (*BlobberUpdateOne) AddTaskOutputIDs ¶
func (buo *BlobberUpdateOne) AddTaskOutputIDs(ids ...int) *BlobberUpdateOne
AddTaskOutputIDs adds the "task_output" edge to the Task entity by IDs.
func (*BlobberUpdateOne) ClearDeletedAt ¶
func (buo *BlobberUpdateOne) ClearDeletedAt() *BlobberUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*BlobberUpdateOne) ClearTaskArgs ¶
func (buo *BlobberUpdateOne) ClearTaskArgs() *BlobberUpdateOne
ClearTaskArgs clears all "task_args" edges to the Task entity.
func (*BlobberUpdateOne) ClearTaskOutput ¶
func (buo *BlobberUpdateOne) ClearTaskOutput() *BlobberUpdateOne
ClearTaskOutput clears all "task_output" edges to the Task entity.
func (*BlobberUpdateOne) Exec ¶
func (buo *BlobberUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*BlobberUpdateOne) ExecX ¶
func (buo *BlobberUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BlobberUpdateOne) Mutation ¶
func (buo *BlobberUpdateOne) Mutation() *BlobberMutation
Mutation returns the BlobberMutation object of the builder.
func (*BlobberUpdateOne) RemoveTaskArgIDs ¶
func (buo *BlobberUpdateOne) RemoveTaskArgIDs(ids ...int) *BlobberUpdateOne
RemoveTaskArgIDs removes the "task_args" edge to Task entities by IDs.
func (*BlobberUpdateOne) RemoveTaskArgs ¶
func (buo *BlobberUpdateOne) RemoveTaskArgs(t ...*Task) *BlobberUpdateOne
RemoveTaskArgs removes "task_args" edges to Task entities.
func (*BlobberUpdateOne) RemoveTaskOutput ¶
func (buo *BlobberUpdateOne) RemoveTaskOutput(t ...*Task) *BlobberUpdateOne
RemoveTaskOutput removes "task_output" edges to Task entities.
func (*BlobberUpdateOne) RemoveTaskOutputIDs ¶
func (buo *BlobberUpdateOne) RemoveTaskOutputIDs(ids ...int) *BlobberUpdateOne
RemoveTaskOutputIDs removes the "task_output" edge to Task entities by IDs.
func (*BlobberUpdateOne) Save ¶
func (buo *BlobberUpdateOne) Save(ctx context.Context) (*Blobber, error)
Save executes the query and returns the updated Blobber entity.
func (*BlobberUpdateOne) SaveX ¶
func (buo *BlobberUpdateOne) SaveX(ctx context.Context) *Blobber
SaveX is like Save, but panics if an error occurs.
func (*BlobberUpdateOne) Select ¶
func (buo *BlobberUpdateOne) Select(field string, fields ...string) *BlobberUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*BlobberUpdateOne) SetBlob ¶
func (buo *BlobberUpdateOne) SetBlob(b []byte) *BlobberUpdateOne
SetBlob sets the "blob" field.
func (*BlobberUpdateOne) SetDeletedAt ¶
func (buo *BlobberUpdateOne) SetDeletedAt(t time.Time) *BlobberUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*BlobberUpdateOne) SetHash ¶
func (buo *BlobberUpdateOne) SetHash(b []byte) *BlobberUpdateOne
SetHash sets the "hash" field.
func (*BlobberUpdateOne) SetNillableDeletedAt ¶
func (buo *BlobberUpdateOne) SetNillableDeletedAt(t *time.Time) *BlobberUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*BlobberUpdateOne) SetNillableSize ¶
func (buo *BlobberUpdateOne) SetNillableSize(i *int) *BlobberUpdateOne
SetNillableSize sets the "size" field if the given value is not nil.
func (*BlobberUpdateOne) SetSize ¶
func (buo *BlobberUpdateOne) SetSize(i int) *BlobberUpdateOne
SetSize sets the "size" field.
func (*BlobberUpdateOne) SetUpdatedAt ¶
func (buo *BlobberUpdateOne) SetUpdatedAt(t time.Time) *BlobberUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*BlobberUpdateOne) Where ¶
func (buo *BlobberUpdateOne) Where(ps ...predicate.Blobber) *BlobberUpdateOne
Where appends a list predicates to the BlobberUpdate builder.
type Chat ¶
type Chat struct { // ID of the ent. ID int `json:"id,omitempty"` // when message created CreatedAt time.Time `json:"created_at,omitempty"` // creator of message From int `json:"from,omitempty"` // message itself Message string `json:"message,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ChatQuery when eager-loading is set. Edges ChatEdges `json:"edges"` // contains filtered or unexported fields }
Chat is the model entity for the Chat schema.
func (*Chat) QueryOperator ¶
func (c *Chat) QueryOperator() *OperatorQuery
QueryOperator queries the "operator" edge of the Chat entity.
func (*Chat) Unwrap ¶
Unwrap unwraps the Chat entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Chat) Update ¶
func (c *Chat) Update() *ChatUpdateOne
Update returns a builder for updating this Chat. Note that you need to call Chat.Unwrap() before calling this method if this Chat was returned from a transaction, and the transaction was committed or rolled back.
type ChatClient ¶
type ChatClient struct {
// contains filtered or unexported fields
}
ChatClient is a client for the Chat schema.
func NewChatClient ¶
func NewChatClient(c config) *ChatClient
NewChatClient returns a client for the Chat from the given config.
func (*ChatClient) Create ¶
func (c *ChatClient) Create() *ChatCreate
Create returns a builder for creating a Chat entity.
func (*ChatClient) CreateBulk ¶
func (c *ChatClient) CreateBulk(builders ...*ChatCreate) *ChatCreateBulk
CreateBulk returns a builder for creating a bulk of Chat entities.
func (*ChatClient) Delete ¶
func (c *ChatClient) Delete() *ChatDelete
Delete returns a delete builder for Chat.
func (*ChatClient) DeleteOne ¶
func (c *ChatClient) DeleteOne(ch *Chat) *ChatDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ChatClient) DeleteOneID ¶
func (c *ChatClient) DeleteOneID(id int) *ChatDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ChatClient) GetX ¶
func (c *ChatClient) GetX(ctx context.Context, id int) *Chat
GetX is like Get, but panics if an error occurs.
func (*ChatClient) Intercept ¶
func (c *ChatClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `chat.Intercept(f(g(h())))`.
func (*ChatClient) Interceptors ¶
func (c *ChatClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ChatClient) MapCreateBulk ¶
func (c *ChatClient) MapCreateBulk(slice any, setFunc func(*ChatCreate, int)) *ChatCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ChatClient) Query ¶
func (c *ChatClient) Query() *ChatQuery
Query returns a query builder for Chat.
func (*ChatClient) QueryOperator ¶
func (c *ChatClient) QueryOperator(ch *Chat) *OperatorQuery
QueryOperator queries the operator edge of a Chat.
func (*ChatClient) Update ¶
func (c *ChatClient) Update() *ChatUpdate
Update returns an update builder for Chat.
func (*ChatClient) UpdateOne ¶
func (c *ChatClient) UpdateOne(ch *Chat) *ChatUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ChatClient) UpdateOneID ¶
func (c *ChatClient) UpdateOneID(id int) *ChatUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ChatClient) Use ¶
func (c *ChatClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `chat.Hooks(f(g(h())))`.
type ChatCreate ¶
type ChatCreate struct {
// contains filtered or unexported fields
}
ChatCreate is the builder for creating a Chat entity.
func (*ChatCreate) Exec ¶
func (cc *ChatCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ChatCreate) ExecX ¶
func (cc *ChatCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ChatCreate) Mutation ¶
func (cc *ChatCreate) Mutation() *ChatMutation
Mutation returns the ChatMutation object of the builder.
func (*ChatCreate) Save ¶
func (cc *ChatCreate) Save(ctx context.Context) (*Chat, error)
Save creates the Chat in the database.
func (*ChatCreate) SaveX ¶
func (cc *ChatCreate) SaveX(ctx context.Context) *Chat
SaveX calls Save and panics if Save returns an error.
func (*ChatCreate) SetCreatedAt ¶
func (cc *ChatCreate) SetCreatedAt(t time.Time) *ChatCreate
SetCreatedAt sets the "created_at" field.
func (*ChatCreate) SetFrom ¶
func (cc *ChatCreate) SetFrom(i int) *ChatCreate
SetFrom sets the "from" field.
func (*ChatCreate) SetMessage ¶
func (cc *ChatCreate) SetMessage(s string) *ChatCreate
SetMessage sets the "message" field.
func (*ChatCreate) SetNillableCreatedAt ¶
func (cc *ChatCreate) SetNillableCreatedAt(t *time.Time) *ChatCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ChatCreate) SetNillableFrom ¶
func (cc *ChatCreate) SetNillableFrom(i *int) *ChatCreate
SetNillableFrom sets the "from" field if the given value is not nil.
func (*ChatCreate) SetNillableOperatorID ¶
func (cc *ChatCreate) SetNillableOperatorID(id *int) *ChatCreate
SetNillableOperatorID sets the "operator" edge to the Operator entity by ID if the given value is not nil.
func (*ChatCreate) SetOperator ¶
func (cc *ChatCreate) SetOperator(o *Operator) *ChatCreate
SetOperator sets the "operator" edge to the Operator entity.
func (*ChatCreate) SetOperatorID ¶
func (cc *ChatCreate) SetOperatorID(id int) *ChatCreate
SetOperatorID sets the "operator" edge to the Operator entity by ID.
type ChatCreateBulk ¶
type ChatCreateBulk struct {
// contains filtered or unexported fields
}
ChatCreateBulk is the builder for creating many Chat entities in bulk.
func (*ChatCreateBulk) Exec ¶
func (ccb *ChatCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ChatCreateBulk) ExecX ¶
func (ccb *ChatCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ChatDelete ¶
type ChatDelete struct {
// contains filtered or unexported fields
}
ChatDelete is the builder for deleting a Chat entity.
func (*ChatDelete) Exec ¶
func (cd *ChatDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ChatDelete) ExecX ¶
func (cd *ChatDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ChatDelete) Where ¶
func (cd *ChatDelete) Where(ps ...predicate.Chat) *ChatDelete
Where appends a list predicates to the ChatDelete builder.
type ChatDeleteOne ¶
type ChatDeleteOne struct {
// contains filtered or unexported fields
}
ChatDeleteOne is the builder for deleting a single Chat entity.
func (*ChatDeleteOne) Exec ¶
func (cdo *ChatDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ChatDeleteOne) ExecX ¶
func (cdo *ChatDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ChatDeleteOne) Where ¶
func (cdo *ChatDeleteOne) Where(ps ...predicate.Chat) *ChatDeleteOne
Where appends a list predicates to the ChatDelete builder.
type ChatEdges ¶
type ChatEdges struct { // Operator holds the value of the operator edge. Operator *Operator `json:"operator,omitempty"` // contains filtered or unexported fields }
ChatEdges holds the relations/edges for other nodes in the graph.
func (ChatEdges) OperatorOrErr ¶
OperatorOrErr returns the Operator value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ChatGroupBy ¶
type ChatGroupBy struct {
// contains filtered or unexported fields
}
ChatGroupBy is the group-by builder for Chat entities.
func (*ChatGroupBy) Aggregate ¶
func (cgb *ChatGroupBy) Aggregate(fns ...AggregateFunc) *ChatGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ChatGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ChatGroupBy) Scan ¶
func (cgb *ChatGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ChatGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ChatMutation ¶
type ChatMutation struct {
// contains filtered or unexported fields
}
ChatMutation represents an operation that mutates the Chat nodes in the graph.
func (*ChatMutation) AddField ¶
func (m *ChatMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ChatMutation) AddedEdges ¶
func (m *ChatMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ChatMutation) AddedField ¶
func (m *ChatMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ChatMutation) AddedFields ¶
func (m *ChatMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ChatMutation) AddedIDs ¶
func (m *ChatMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ChatMutation) ClearEdge ¶
func (m *ChatMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*ChatMutation) ClearField ¶
func (m *ChatMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*ChatMutation) ClearFrom ¶
func (m *ChatMutation) ClearFrom()
ClearFrom clears the value of the "from" field.
func (*ChatMutation) ClearOperator ¶
func (m *ChatMutation) ClearOperator()
ClearOperator clears the "operator" edge to the Operator entity.
func (*ChatMutation) ClearedEdges ¶
func (m *ChatMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ChatMutation) ClearedFields ¶
func (m *ChatMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ChatMutation) Client ¶
func (m ChatMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*ChatMutation) CreatedAt ¶
func (m *ChatMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ChatMutation) EdgeCleared ¶
func (m *ChatMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ChatMutation) Field ¶
func (m *ChatMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ChatMutation) FieldCleared ¶
func (m *ChatMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ChatMutation) Fields ¶
func (m *ChatMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*ChatMutation) From ¶
func (m *ChatMutation) From() (r int, exists bool)
From returns the value of the "from" field in the mutation.
func (*ChatMutation) FromCleared ¶
func (m *ChatMutation) FromCleared() bool
FromCleared returns if the "from" field was cleared in this mutation.
func (*ChatMutation) ID ¶
func (m *ChatMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ChatMutation) IDs ¶
func (m *ChatMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*ChatMutation) Message ¶
func (m *ChatMutation) Message() (r string, exists bool)
Message returns the value of the "message" field in the mutation.
func (*ChatMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Chat entity. If the Chat object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ChatMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ChatMutation) OldFrom ¶
func (m *ChatMutation) OldFrom(ctx context.Context) (v int, err error)
OldFrom returns the old "from" field's value of the Chat entity. If the Chat object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ChatMutation) OldMessage ¶
func (m *ChatMutation) OldMessage(ctx context.Context) (v string, err error)
OldMessage returns the old "message" field's value of the Chat entity. If the Chat object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ChatMutation) OperatorCleared ¶
func (m *ChatMutation) OperatorCleared() bool
OperatorCleared reports if the "operator" edge to the Operator entity was cleared.
func (*ChatMutation) OperatorID ¶
func (m *ChatMutation) OperatorID() (id int, exists bool)
OperatorID returns the "operator" edge ID in the mutation.
func (*ChatMutation) OperatorIDs ¶
func (m *ChatMutation) OperatorIDs() (ids []int)
OperatorIDs returns the "operator" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OperatorID instead. It exists only for internal usage by the builders.
func (*ChatMutation) RemovedEdges ¶
func (m *ChatMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ChatMutation) RemovedIDs ¶
func (m *ChatMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*ChatMutation) ResetCreatedAt ¶
func (m *ChatMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ChatMutation) ResetEdge ¶
func (m *ChatMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*ChatMutation) ResetField ¶
func (m *ChatMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*ChatMutation) ResetFrom ¶
func (m *ChatMutation) ResetFrom()
ResetFrom resets all changes to the "from" field.
func (*ChatMutation) ResetMessage ¶
func (m *ChatMutation) ResetMessage()
ResetMessage resets all changes to the "message" field.
func (*ChatMutation) ResetOperator ¶
func (m *ChatMutation) ResetOperator()
ResetOperator resets all changes to the "operator" edge.
func (*ChatMutation) SetCreatedAt ¶
func (m *ChatMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ChatMutation) SetField ¶
func (m *ChatMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ChatMutation) SetMessage ¶
func (m *ChatMutation) SetMessage(s string)
SetMessage sets the "message" field.
func (*ChatMutation) SetOp ¶
func (m *ChatMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ChatMutation) SetOperatorID ¶
func (m *ChatMutation) SetOperatorID(id int)
SetOperatorID sets the "operator" edge to the Operator entity by id.
func (ChatMutation) Tx ¶
func (m ChatMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ChatMutation) Type ¶
func (m *ChatMutation) Type() string
Type returns the node type of this mutation (Chat).
func (*ChatMutation) Where ¶
func (m *ChatMutation) Where(ps ...predicate.Chat)
Where appends a list predicates to the ChatMutation builder.
func (*ChatMutation) WhereP ¶
func (m *ChatMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ChatMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ChatQuery ¶
type ChatQuery struct {
// contains filtered or unexported fields
}
ChatQuery is the builder for querying Chat entities.
func (*ChatQuery) Aggregate ¶
func (cq *ChatQuery) Aggregate(fns ...AggregateFunc) *ChatSelect
Aggregate returns a ChatSelect configured with the given aggregations.
func (*ChatQuery) Clone ¶
Clone returns a duplicate of the ChatQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ChatQuery) First ¶
First returns the first Chat entity from the query. Returns a *NotFoundError when no Chat was found.
func (*ChatQuery) FirstID ¶
FirstID returns the first Chat ID from the query. Returns a *NotFoundError when no Chat ID was found.
func (*ChatQuery) ForShare ¶
func (cq *ChatQuery) ForShare(opts ...sql.LockOption) *ChatQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*ChatQuery) ForUpdate ¶
func (cq *ChatQuery) ForUpdate(opts ...sql.LockOption) *ChatQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*ChatQuery) GroupBy ¶
func (cq *ChatQuery) GroupBy(field string, fields ...string) *ChatGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Chat.Query(). GroupBy(chat.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ChatQuery) Only ¶
Only returns a single Chat entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Chat entity is found. Returns a *NotFoundError when no Chat entities are found.
func (*ChatQuery) OnlyID ¶
OnlyID is like Only, but returns the only Chat ID in the query. Returns a *NotSingularError when more than one Chat ID is found. Returns a *NotFoundError when no entities are found.
func (*ChatQuery) Order ¶
func (cq *ChatQuery) Order(o ...chat.OrderOption) *ChatQuery
Order specifies how the records should be ordered.
func (*ChatQuery) QueryOperator ¶
func (cq *ChatQuery) QueryOperator() *OperatorQuery
QueryOperator chains the current query on the "operator" edge.
func (*ChatQuery) Select ¶
func (cq *ChatQuery) Select(fields ...string) *ChatSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Chat.Query(). Select(chat.FieldCreatedAt). Scan(ctx, &v)
func (*ChatQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*ChatQuery) WithOperator ¶
func (cq *ChatQuery) WithOperator(opts ...func(*OperatorQuery)) *ChatQuery
WithOperator tells the query-builder to eager-load the nodes that are connected to the "operator" edge. The optional arguments are used to configure the query builder of the edge.
type ChatSelect ¶
type ChatSelect struct { *ChatQuery // contains filtered or unexported fields }
ChatSelect is the builder for selecting fields of Chat entities.
func (*ChatSelect) Aggregate ¶
func (cs *ChatSelect) Aggregate(fns ...AggregateFunc) *ChatSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ChatSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ChatSelect) Scan ¶
func (cs *ChatSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ChatSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ChatUpdate ¶
type ChatUpdate struct {
// contains filtered or unexported fields
}
ChatUpdate is the builder for updating Chat entities.
func (*ChatUpdate) ClearFrom ¶
func (cu *ChatUpdate) ClearFrom() *ChatUpdate
ClearFrom clears the value of the "from" field.
func (*ChatUpdate) ClearOperator ¶
func (cu *ChatUpdate) ClearOperator() *ChatUpdate
ClearOperator clears the "operator" edge to the Operator entity.
func (*ChatUpdate) Exec ¶
func (cu *ChatUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ChatUpdate) ExecX ¶
func (cu *ChatUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ChatUpdate) Mutation ¶
func (cu *ChatUpdate) Mutation() *ChatMutation
Mutation returns the ChatMutation object of the builder.
func (*ChatUpdate) Save ¶
func (cu *ChatUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ChatUpdate) SaveX ¶
func (cu *ChatUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ChatUpdate) SetFrom ¶
func (cu *ChatUpdate) SetFrom(i int) *ChatUpdate
SetFrom sets the "from" field.
func (*ChatUpdate) SetMessage ¶
func (cu *ChatUpdate) SetMessage(s string) *ChatUpdate
SetMessage sets the "message" field.
func (*ChatUpdate) SetNillableFrom ¶
func (cu *ChatUpdate) SetNillableFrom(i *int) *ChatUpdate
SetNillableFrom sets the "from" field if the given value is not nil.
func (*ChatUpdate) SetNillableMessage ¶
func (cu *ChatUpdate) SetNillableMessage(s *string) *ChatUpdate
SetNillableMessage sets the "message" field if the given value is not nil.
func (*ChatUpdate) SetNillableOperatorID ¶
func (cu *ChatUpdate) SetNillableOperatorID(id *int) *ChatUpdate
SetNillableOperatorID sets the "operator" edge to the Operator entity by ID if the given value is not nil.
func (*ChatUpdate) SetOperator ¶
func (cu *ChatUpdate) SetOperator(o *Operator) *ChatUpdate
SetOperator sets the "operator" edge to the Operator entity.
func (*ChatUpdate) SetOperatorID ¶
func (cu *ChatUpdate) SetOperatorID(id int) *ChatUpdate
SetOperatorID sets the "operator" edge to the Operator entity by ID.
func (*ChatUpdate) Where ¶
func (cu *ChatUpdate) Where(ps ...predicate.Chat) *ChatUpdate
Where appends a list predicates to the ChatUpdate builder.
type ChatUpdateOne ¶
type ChatUpdateOne struct {
// contains filtered or unexported fields
}
ChatUpdateOne is the builder for updating a single Chat entity.
func (*ChatUpdateOne) ClearFrom ¶
func (cuo *ChatUpdateOne) ClearFrom() *ChatUpdateOne
ClearFrom clears the value of the "from" field.
func (*ChatUpdateOne) ClearOperator ¶
func (cuo *ChatUpdateOne) ClearOperator() *ChatUpdateOne
ClearOperator clears the "operator" edge to the Operator entity.
func (*ChatUpdateOne) Exec ¶
func (cuo *ChatUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ChatUpdateOne) ExecX ¶
func (cuo *ChatUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ChatUpdateOne) Mutation ¶
func (cuo *ChatUpdateOne) Mutation() *ChatMutation
Mutation returns the ChatMutation object of the builder.
func (*ChatUpdateOne) Save ¶
func (cuo *ChatUpdateOne) Save(ctx context.Context) (*Chat, error)
Save executes the query and returns the updated Chat entity.
func (*ChatUpdateOne) SaveX ¶
func (cuo *ChatUpdateOne) SaveX(ctx context.Context) *Chat
SaveX is like Save, but panics if an error occurs.
func (*ChatUpdateOne) Select ¶
func (cuo *ChatUpdateOne) Select(field string, fields ...string) *ChatUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ChatUpdateOne) SetFrom ¶
func (cuo *ChatUpdateOne) SetFrom(i int) *ChatUpdateOne
SetFrom sets the "from" field.
func (*ChatUpdateOne) SetMessage ¶
func (cuo *ChatUpdateOne) SetMessage(s string) *ChatUpdateOne
SetMessage sets the "message" field.
func (*ChatUpdateOne) SetNillableFrom ¶
func (cuo *ChatUpdateOne) SetNillableFrom(i *int) *ChatUpdateOne
SetNillableFrom sets the "from" field if the given value is not nil.
func (*ChatUpdateOne) SetNillableMessage ¶
func (cuo *ChatUpdateOne) SetNillableMessage(s *string) *ChatUpdateOne
SetNillableMessage sets the "message" field if the given value is not nil.
func (*ChatUpdateOne) SetNillableOperatorID ¶
func (cuo *ChatUpdateOne) SetNillableOperatorID(id *int) *ChatUpdateOne
SetNillableOperatorID sets the "operator" edge to the Operator entity by ID if the given value is not nil.
func (*ChatUpdateOne) SetOperator ¶
func (cuo *ChatUpdateOne) SetOperator(o *Operator) *ChatUpdateOne
SetOperator sets the "operator" edge to the Operator entity.
func (*ChatUpdateOne) SetOperatorID ¶
func (cuo *ChatUpdateOne) SetOperatorID(id int) *ChatUpdateOne
SetOperatorID sets the "operator" edge to the Operator entity by ID.
func (*ChatUpdateOne) Where ¶
func (cuo *ChatUpdateOne) Where(ps ...predicate.Chat) *ChatUpdateOne
Where appends a list predicates to the ChatUpdate builder.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // Beacon is the client for interacting with the Beacon builders. Beacon *BeaconClient // Blobber is the client for interacting with the Blobber builders. Blobber *BlobberClient // Chat is the client for interacting with the Chat builders. Chat *ChatClient // Credential is the client for interacting with the Credential builders. Credential *CredentialClient // Group is the client for interacting with the Group builders. Group *GroupClient // Listener is the client for interacting with the Listener builders. Listener *ListenerClient // Message is the client for interacting with the Message builders. Message *MessageClient // Operator is the client for interacting with the Operator builders. Operator *OperatorClient // Pki is the client for interacting with the Pki builders. Pki *PkiClient // Task is the client for interacting with the Task builders. Task *TaskClient // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Beacon. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Credential ¶
type Credential struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // username of credential Username string `json:"username,omitempty"` // password/hash/secret Secret string `json:"secret,omitempty"` // realm of host (or zone where credentials are valid) Realm string `json:"realm,omitempty"` // host from which creds has been extracted Host string `json:"host,omitempty"` // note of credential Note string `json:"note,omitempty"` // color of entity Color uint32 `json:"color,omitempty"` // contains filtered or unexported fields }
Credential is the model entity for the Credential schema.
func (*Credential) String ¶
func (c *Credential) String() string
String implements the fmt.Stringer.
func (*Credential) Unwrap ¶
func (c *Credential) Unwrap() *Credential
Unwrap unwraps the Credential entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Credential) Update ¶
func (c *Credential) Update() *CredentialUpdateOne
Update returns a builder for updating this Credential. Note that you need to call Credential.Unwrap() before calling this method if this Credential was returned from a transaction, and the transaction was committed or rolled back.
type CredentialClient ¶
type CredentialClient struct {
// contains filtered or unexported fields
}
CredentialClient is a client for the Credential schema.
func NewCredentialClient ¶
func NewCredentialClient(c config) *CredentialClient
NewCredentialClient returns a client for the Credential from the given config.
func (*CredentialClient) Create ¶
func (c *CredentialClient) Create() *CredentialCreate
Create returns a builder for creating a Credential entity.
func (*CredentialClient) CreateBulk ¶
func (c *CredentialClient) CreateBulk(builders ...*CredentialCreate) *CredentialCreateBulk
CreateBulk returns a builder for creating a bulk of Credential entities.
func (*CredentialClient) Delete ¶
func (c *CredentialClient) Delete() *CredentialDelete
Delete returns a delete builder for Credential.
func (*CredentialClient) DeleteOne ¶
func (c *CredentialClient) DeleteOne(cr *Credential) *CredentialDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CredentialClient) DeleteOneID ¶
func (c *CredentialClient) DeleteOneID(id int) *CredentialDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CredentialClient) Get ¶
func (c *CredentialClient) Get(ctx context.Context, id int) (*Credential, error)
Get returns a Credential entity by its id.
func (*CredentialClient) GetX ¶
func (c *CredentialClient) GetX(ctx context.Context, id int) *Credential
GetX is like Get, but panics if an error occurs.
func (*CredentialClient) Hooks ¶
func (c *CredentialClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CredentialClient) Intercept ¶
func (c *CredentialClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `credential.Intercept(f(g(h())))`.
func (*CredentialClient) Interceptors ¶
func (c *CredentialClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CredentialClient) MapCreateBulk ¶
func (c *CredentialClient) MapCreateBulk(slice any, setFunc func(*CredentialCreate, int)) *CredentialCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*CredentialClient) Query ¶
func (c *CredentialClient) Query() *CredentialQuery
Query returns a query builder for Credential.
func (*CredentialClient) Update ¶
func (c *CredentialClient) Update() *CredentialUpdate
Update returns an update builder for Credential.
func (*CredentialClient) UpdateOne ¶
func (c *CredentialClient) UpdateOne(cr *Credential) *CredentialUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CredentialClient) UpdateOneID ¶
func (c *CredentialClient) UpdateOneID(id int) *CredentialUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CredentialClient) Use ¶
func (c *CredentialClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `credential.Hooks(f(g(h())))`.
type CredentialCreate ¶
type CredentialCreate struct {
// contains filtered or unexported fields
}
CredentialCreate is the builder for creating a Credential entity.
func (*CredentialCreate) Exec ¶
func (cc *CredentialCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialCreate) ExecX ¶
func (cc *CredentialCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialCreate) Mutation ¶
func (cc *CredentialCreate) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialCreate) Save ¶
func (cc *CredentialCreate) Save(ctx context.Context) (*Credential, error)
Save creates the Credential in the database.
func (*CredentialCreate) SaveX ¶
func (cc *CredentialCreate) SaveX(ctx context.Context) *Credential
SaveX calls Save and panics if Save returns an error.
func (*CredentialCreate) SetColor ¶
func (cc *CredentialCreate) SetColor(u uint32) *CredentialCreate
SetColor sets the "color" field.
func (*CredentialCreate) SetCreatedAt ¶
func (cc *CredentialCreate) SetCreatedAt(t time.Time) *CredentialCreate
SetCreatedAt sets the "created_at" field.
func (*CredentialCreate) SetDeletedAt ¶
func (cc *CredentialCreate) SetDeletedAt(t time.Time) *CredentialCreate
SetDeletedAt sets the "deleted_at" field.
func (*CredentialCreate) SetHost ¶
func (cc *CredentialCreate) SetHost(s string) *CredentialCreate
SetHost sets the "host" field.
func (*CredentialCreate) SetNillableColor ¶
func (cc *CredentialCreate) SetNillableColor(u *uint32) *CredentialCreate
SetNillableColor sets the "color" field if the given value is not nil.
func (*CredentialCreate) SetNillableCreatedAt ¶
func (cc *CredentialCreate) SetNillableCreatedAt(t *time.Time) *CredentialCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*CredentialCreate) SetNillableDeletedAt ¶
func (cc *CredentialCreate) SetNillableDeletedAt(t *time.Time) *CredentialCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CredentialCreate) SetNillableHost ¶
func (cc *CredentialCreate) SetNillableHost(s *string) *CredentialCreate
SetNillableHost sets the "host" field if the given value is not nil.
func (*CredentialCreate) SetNillableNote ¶
func (cc *CredentialCreate) SetNillableNote(s *string) *CredentialCreate
SetNillableNote sets the "note" field if the given value is not nil.
func (*CredentialCreate) SetNillableRealm ¶
func (cc *CredentialCreate) SetNillableRealm(s *string) *CredentialCreate
SetNillableRealm sets the "realm" field if the given value is not nil.
func (*CredentialCreate) SetNillableSecret ¶
func (cc *CredentialCreate) SetNillableSecret(s *string) *CredentialCreate
SetNillableSecret sets the "secret" field if the given value is not nil.
func (*CredentialCreate) SetNillableUpdatedAt ¶
func (cc *CredentialCreate) SetNillableUpdatedAt(t *time.Time) *CredentialCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*CredentialCreate) SetNillableUsername ¶
func (cc *CredentialCreate) SetNillableUsername(s *string) *CredentialCreate
SetNillableUsername sets the "username" field if the given value is not nil.
func (*CredentialCreate) SetNote ¶
func (cc *CredentialCreate) SetNote(s string) *CredentialCreate
SetNote sets the "note" field.
func (*CredentialCreate) SetRealm ¶
func (cc *CredentialCreate) SetRealm(s string) *CredentialCreate
SetRealm sets the "realm" field.
func (*CredentialCreate) SetSecret ¶
func (cc *CredentialCreate) SetSecret(s string) *CredentialCreate
SetSecret sets the "secret" field.
func (*CredentialCreate) SetUpdatedAt ¶
func (cc *CredentialCreate) SetUpdatedAt(t time.Time) *CredentialCreate
SetUpdatedAt sets the "updated_at" field.
func (*CredentialCreate) SetUsername ¶
func (cc *CredentialCreate) SetUsername(s string) *CredentialCreate
SetUsername sets the "username" field.
type CredentialCreateBulk ¶
type CredentialCreateBulk struct {
// contains filtered or unexported fields
}
CredentialCreateBulk is the builder for creating many Credential entities in bulk.
func (*CredentialCreateBulk) Exec ¶
func (ccb *CredentialCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialCreateBulk) ExecX ¶
func (ccb *CredentialCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialCreateBulk) Save ¶
func (ccb *CredentialCreateBulk) Save(ctx context.Context) ([]*Credential, error)
Save creates the Credential entities in the database.
func (*CredentialCreateBulk) SaveX ¶
func (ccb *CredentialCreateBulk) SaveX(ctx context.Context) []*Credential
SaveX is like Save, but panics if an error occurs.
type CredentialDelete ¶
type CredentialDelete struct {
// contains filtered or unexported fields
}
CredentialDelete is the builder for deleting a Credential entity.
func (*CredentialDelete) Exec ¶
func (cd *CredentialDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CredentialDelete) ExecX ¶
func (cd *CredentialDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CredentialDelete) Where ¶
func (cd *CredentialDelete) Where(ps ...predicate.Credential) *CredentialDelete
Where appends a list predicates to the CredentialDelete builder.
type CredentialDeleteOne ¶
type CredentialDeleteOne struct {
// contains filtered or unexported fields
}
CredentialDeleteOne is the builder for deleting a single Credential entity.
func (*CredentialDeleteOne) Exec ¶
func (cdo *CredentialDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CredentialDeleteOne) ExecX ¶
func (cdo *CredentialDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialDeleteOne) Where ¶
func (cdo *CredentialDeleteOne) Where(ps ...predicate.Credential) *CredentialDeleteOne
Where appends a list predicates to the CredentialDelete builder.
type CredentialGroupBy ¶
type CredentialGroupBy struct {
// contains filtered or unexported fields
}
CredentialGroupBy is the group-by builder for Credential entities.
func (*CredentialGroupBy) Aggregate ¶
func (cgb *CredentialGroupBy) Aggregate(fns ...AggregateFunc) *CredentialGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CredentialGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CredentialGroupBy) Scan ¶
func (cgb *CredentialGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CredentialGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CredentialMutation ¶
type CredentialMutation struct {
// contains filtered or unexported fields
}
CredentialMutation represents an operation that mutates the Credential nodes in the graph.
func (*CredentialMutation) AddColor ¶
func (m *CredentialMutation) AddColor(u int32)
AddColor adds u to the "color" field.
func (*CredentialMutation) AddField ¶
func (m *CredentialMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*CredentialMutation) AddedColor ¶
func (m *CredentialMutation) AddedColor() (r int32, exists bool)
AddedColor returns the value that was added to the "color" field in this mutation.
func (*CredentialMutation) AddedEdges ¶
func (m *CredentialMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CredentialMutation) AddedField ¶
func (m *CredentialMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*CredentialMutation) AddedFields ¶
func (m *CredentialMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CredentialMutation) AddedIDs ¶
func (m *CredentialMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CredentialMutation) ClearDeletedAt ¶
func (m *CredentialMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CredentialMutation) ClearEdge ¶
func (m *CredentialMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*CredentialMutation) ClearField ¶
func (m *CredentialMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*CredentialMutation) ClearHost ¶
func (m *CredentialMutation) ClearHost()
ClearHost clears the value of the "host" field.
func (*CredentialMutation) ClearNote ¶
func (m *CredentialMutation) ClearNote()
ClearNote clears the value of the "note" field.
func (*CredentialMutation) ClearRealm ¶
func (m *CredentialMutation) ClearRealm()
ClearRealm clears the value of the "realm" field.
func (*CredentialMutation) ClearSecret ¶
func (m *CredentialMutation) ClearSecret()
ClearSecret clears the value of the "secret" field.
func (*CredentialMutation) ClearUsername ¶
func (m *CredentialMutation) ClearUsername()
ClearUsername clears the value of the "username" field.
func (*CredentialMutation) ClearedEdges ¶
func (m *CredentialMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CredentialMutation) ClearedFields ¶
func (m *CredentialMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CredentialMutation) Client ¶
func (m CredentialMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*CredentialMutation) Color ¶
func (m *CredentialMutation) Color() (r uint32, exists bool)
Color returns the value of the "color" field in the mutation.
func (*CredentialMutation) CreatedAt ¶
func (m *CredentialMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*CredentialMutation) DeletedAt ¶
func (m *CredentialMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*CredentialMutation) DeletedAtCleared ¶
func (m *CredentialMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*CredentialMutation) EdgeCleared ¶
func (m *CredentialMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CredentialMutation) Field ¶
func (m *CredentialMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*CredentialMutation) FieldCleared ¶
func (m *CredentialMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CredentialMutation) Fields ¶
func (m *CredentialMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*CredentialMutation) Host ¶
func (m *CredentialMutation) Host() (r string, exists bool)
Host returns the value of the "host" field in the mutation.
func (*CredentialMutation) HostCleared ¶
func (m *CredentialMutation) HostCleared() bool
HostCleared returns if the "host" field was cleared in this mutation.
func (*CredentialMutation) ID ¶
func (m *CredentialMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CredentialMutation) IDs ¶
func (m *CredentialMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CredentialMutation) Note ¶
func (m *CredentialMutation) Note() (r string, exists bool)
Note returns the value of the "note" field in the mutation.
func (*CredentialMutation) NoteCleared ¶
func (m *CredentialMutation) NoteCleared() bool
NoteCleared returns if the "note" field was cleared in this mutation.
func (*CredentialMutation) OldColor ¶
func (m *CredentialMutation) OldColor(ctx context.Context) (v uint32, err error)
OldColor returns the old "color" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*CredentialMutation) OldHost ¶
func (m *CredentialMutation) OldHost(ctx context.Context) (v string, err error)
OldHost returns the old "host" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldNote ¶
func (m *CredentialMutation) OldNote(ctx context.Context) (v string, err error)
OldNote returns the old "note" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldRealm ¶
func (m *CredentialMutation) OldRealm(ctx context.Context) (v string, err error)
OldRealm returns the old "realm" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldSecret ¶
func (m *CredentialMutation) OldSecret(ctx context.Context) (v string, err error)
OldSecret returns the old "secret" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) OldUsername ¶
func (m *CredentialMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the Credential entity. If the Credential object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CredentialMutation) Realm ¶
func (m *CredentialMutation) Realm() (r string, exists bool)
Realm returns the value of the "realm" field in the mutation.
func (*CredentialMutation) RealmCleared ¶
func (m *CredentialMutation) RealmCleared() bool
RealmCleared returns if the "realm" field was cleared in this mutation.
func (*CredentialMutation) RemovedEdges ¶
func (m *CredentialMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CredentialMutation) RemovedIDs ¶
func (m *CredentialMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*CredentialMutation) ResetColor ¶
func (m *CredentialMutation) ResetColor()
ResetColor resets all changes to the "color" field.
func (*CredentialMutation) ResetCreatedAt ¶
func (m *CredentialMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*CredentialMutation) ResetDeletedAt ¶
func (m *CredentialMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*CredentialMutation) ResetEdge ¶
func (m *CredentialMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*CredentialMutation) ResetField ¶
func (m *CredentialMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*CredentialMutation) ResetHost ¶
func (m *CredentialMutation) ResetHost()
ResetHost resets all changes to the "host" field.
func (*CredentialMutation) ResetNote ¶
func (m *CredentialMutation) ResetNote()
ResetNote resets all changes to the "note" field.
func (*CredentialMutation) ResetRealm ¶
func (m *CredentialMutation) ResetRealm()
ResetRealm resets all changes to the "realm" field.
func (*CredentialMutation) ResetSecret ¶
func (m *CredentialMutation) ResetSecret()
ResetSecret resets all changes to the "secret" field.
func (*CredentialMutation) ResetUpdatedAt ¶
func (m *CredentialMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*CredentialMutation) ResetUsername ¶
func (m *CredentialMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*CredentialMutation) Secret ¶
func (m *CredentialMutation) Secret() (r string, exists bool)
Secret returns the value of the "secret" field in the mutation.
func (*CredentialMutation) SecretCleared ¶
func (m *CredentialMutation) SecretCleared() bool
SecretCleared returns if the "secret" field was cleared in this mutation.
func (*CredentialMutation) SetColor ¶
func (m *CredentialMutation) SetColor(u uint32)
SetColor sets the "color" field.
func (*CredentialMutation) SetCreatedAt ¶
func (m *CredentialMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*CredentialMutation) SetDeletedAt ¶
func (m *CredentialMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*CredentialMutation) SetField ¶
func (m *CredentialMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*CredentialMutation) SetHost ¶
func (m *CredentialMutation) SetHost(s string)
SetHost sets the "host" field.
func (*CredentialMutation) SetNote ¶
func (m *CredentialMutation) SetNote(s string)
SetNote sets the "note" field.
func (*CredentialMutation) SetOp ¶
func (m *CredentialMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CredentialMutation) SetRealm ¶
func (m *CredentialMutation) SetRealm(s string)
SetRealm sets the "realm" field.
func (*CredentialMutation) SetSecret ¶
func (m *CredentialMutation) SetSecret(s string)
SetSecret sets the "secret" field.
func (*CredentialMutation) SetUpdatedAt ¶
func (m *CredentialMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*CredentialMutation) SetUsername ¶
func (m *CredentialMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (CredentialMutation) Tx ¶
func (m CredentialMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CredentialMutation) Type ¶
func (m *CredentialMutation) Type() string
Type returns the node type of this mutation (Credential).
func (*CredentialMutation) UpdatedAt ¶
func (m *CredentialMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*CredentialMutation) Username ¶
func (m *CredentialMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*CredentialMutation) UsernameCleared ¶
func (m *CredentialMutation) UsernameCleared() bool
UsernameCleared returns if the "username" field was cleared in this mutation.
func (*CredentialMutation) Where ¶
func (m *CredentialMutation) Where(ps ...predicate.Credential)
Where appends a list predicates to the CredentialMutation builder.
func (*CredentialMutation) WhereP ¶
func (m *CredentialMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CredentialMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CredentialQuery ¶
type CredentialQuery struct {
// contains filtered or unexported fields
}
CredentialQuery is the builder for querying Credential entities.
func (*CredentialQuery) Aggregate ¶
func (cq *CredentialQuery) Aggregate(fns ...AggregateFunc) *CredentialSelect
Aggregate returns a CredentialSelect configured with the given aggregations.
func (*CredentialQuery) All ¶
func (cq *CredentialQuery) All(ctx context.Context) ([]*Credential, error)
All executes the query and returns a list of Credentials.
func (*CredentialQuery) AllX ¶
func (cq *CredentialQuery) AllX(ctx context.Context) []*Credential
AllX is like All, but panics if an error occurs.
func (*CredentialQuery) Clone ¶
func (cq *CredentialQuery) Clone() *CredentialQuery
Clone returns a duplicate of the CredentialQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CredentialQuery) Count ¶
func (cq *CredentialQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CredentialQuery) CountX ¶
func (cq *CredentialQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CredentialQuery) Exist ¶
func (cq *CredentialQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CredentialQuery) ExistX ¶
func (cq *CredentialQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CredentialQuery) First ¶
func (cq *CredentialQuery) First(ctx context.Context) (*Credential, error)
First returns the first Credential entity from the query. Returns a *NotFoundError when no Credential was found.
func (*CredentialQuery) FirstID ¶
func (cq *CredentialQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Credential ID from the query. Returns a *NotFoundError when no Credential ID was found.
func (*CredentialQuery) FirstIDX ¶
func (cq *CredentialQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CredentialQuery) FirstX ¶
func (cq *CredentialQuery) FirstX(ctx context.Context) *Credential
FirstX is like First, but panics if an error occurs.
func (*CredentialQuery) ForShare ¶
func (cq *CredentialQuery) ForShare(opts ...sql.LockOption) *CredentialQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*CredentialQuery) ForUpdate ¶
func (cq *CredentialQuery) ForUpdate(opts ...sql.LockOption) *CredentialQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*CredentialQuery) GroupBy ¶
func (cq *CredentialQuery) GroupBy(field string, fields ...string) *CredentialGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Credential.Query(). GroupBy(credential.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CredentialQuery) IDs ¶
func (cq *CredentialQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Credential IDs.
func (*CredentialQuery) IDsX ¶
func (cq *CredentialQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CredentialQuery) Limit ¶
func (cq *CredentialQuery) Limit(limit int) *CredentialQuery
Limit the number of records to be returned by this query.
func (*CredentialQuery) Offset ¶
func (cq *CredentialQuery) Offset(offset int) *CredentialQuery
Offset to start from.
func (*CredentialQuery) Only ¶
func (cq *CredentialQuery) Only(ctx context.Context) (*Credential, error)
Only returns a single Credential entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Credential entity is found. Returns a *NotFoundError when no Credential entities are found.
func (*CredentialQuery) OnlyID ¶
func (cq *CredentialQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Credential ID in the query. Returns a *NotSingularError when more than one Credential ID is found. Returns a *NotFoundError when no entities are found.
func (*CredentialQuery) OnlyIDX ¶
func (cq *CredentialQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CredentialQuery) OnlyX ¶
func (cq *CredentialQuery) OnlyX(ctx context.Context) *Credential
OnlyX is like Only, but panics if an error occurs.
func (*CredentialQuery) Order ¶
func (cq *CredentialQuery) Order(o ...credential.OrderOption) *CredentialQuery
Order specifies how the records should be ordered.
func (*CredentialQuery) Select ¶
func (cq *CredentialQuery) Select(fields ...string) *CredentialSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Credential.Query(). Select(credential.FieldCreatedAt). Scan(ctx, &v)
func (*CredentialQuery) Unique ¶
func (cq *CredentialQuery) Unique(unique bool) *CredentialQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*CredentialQuery) Where ¶
func (cq *CredentialQuery) Where(ps ...predicate.Credential) *CredentialQuery
Where adds a new predicate for the CredentialQuery builder.
type CredentialSelect ¶
type CredentialSelect struct { *CredentialQuery // contains filtered or unexported fields }
CredentialSelect is the builder for selecting fields of Credential entities.
func (*CredentialSelect) Aggregate ¶
func (cs *CredentialSelect) Aggregate(fns ...AggregateFunc) *CredentialSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CredentialSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CredentialSelect) Scan ¶
func (cs *CredentialSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CredentialSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CredentialUpdate ¶
type CredentialUpdate struct {
// contains filtered or unexported fields
}
CredentialUpdate is the builder for updating Credential entities.
func (*CredentialUpdate) AddColor ¶
func (cu *CredentialUpdate) AddColor(u int32) *CredentialUpdate
AddColor adds u to the "color" field.
func (*CredentialUpdate) ClearDeletedAt ¶
func (cu *CredentialUpdate) ClearDeletedAt() *CredentialUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CredentialUpdate) ClearHost ¶
func (cu *CredentialUpdate) ClearHost() *CredentialUpdate
ClearHost clears the value of the "host" field.
func (*CredentialUpdate) ClearNote ¶
func (cu *CredentialUpdate) ClearNote() *CredentialUpdate
ClearNote clears the value of the "note" field.
func (*CredentialUpdate) ClearRealm ¶
func (cu *CredentialUpdate) ClearRealm() *CredentialUpdate
ClearRealm clears the value of the "realm" field.
func (*CredentialUpdate) ClearSecret ¶
func (cu *CredentialUpdate) ClearSecret() *CredentialUpdate
ClearSecret clears the value of the "secret" field.
func (*CredentialUpdate) ClearUsername ¶
func (cu *CredentialUpdate) ClearUsername() *CredentialUpdate
ClearUsername clears the value of the "username" field.
func (*CredentialUpdate) Exec ¶
func (cu *CredentialUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CredentialUpdate) ExecX ¶
func (cu *CredentialUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialUpdate) Mutation ¶
func (cu *CredentialUpdate) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialUpdate) Save ¶
func (cu *CredentialUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CredentialUpdate) SaveX ¶
func (cu *CredentialUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CredentialUpdate) SetColor ¶
func (cu *CredentialUpdate) SetColor(u uint32) *CredentialUpdate
SetColor sets the "color" field.
func (*CredentialUpdate) SetDeletedAt ¶
func (cu *CredentialUpdate) SetDeletedAt(t time.Time) *CredentialUpdate
SetDeletedAt sets the "deleted_at" field.
func (*CredentialUpdate) SetHost ¶
func (cu *CredentialUpdate) SetHost(s string) *CredentialUpdate
SetHost sets the "host" field.
func (*CredentialUpdate) SetNillableColor ¶
func (cu *CredentialUpdate) SetNillableColor(u *uint32) *CredentialUpdate
SetNillableColor sets the "color" field if the given value is not nil.
func (*CredentialUpdate) SetNillableDeletedAt ¶
func (cu *CredentialUpdate) SetNillableDeletedAt(t *time.Time) *CredentialUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CredentialUpdate) SetNillableHost ¶
func (cu *CredentialUpdate) SetNillableHost(s *string) *CredentialUpdate
SetNillableHost sets the "host" field if the given value is not nil.
func (*CredentialUpdate) SetNillableNote ¶
func (cu *CredentialUpdate) SetNillableNote(s *string) *CredentialUpdate
SetNillableNote sets the "note" field if the given value is not nil.
func (*CredentialUpdate) SetNillableRealm ¶
func (cu *CredentialUpdate) SetNillableRealm(s *string) *CredentialUpdate
SetNillableRealm sets the "realm" field if the given value is not nil.
func (*CredentialUpdate) SetNillableSecret ¶
func (cu *CredentialUpdate) SetNillableSecret(s *string) *CredentialUpdate
SetNillableSecret sets the "secret" field if the given value is not nil.
func (*CredentialUpdate) SetNillableUsername ¶
func (cu *CredentialUpdate) SetNillableUsername(s *string) *CredentialUpdate
SetNillableUsername sets the "username" field if the given value is not nil.
func (*CredentialUpdate) SetNote ¶
func (cu *CredentialUpdate) SetNote(s string) *CredentialUpdate
SetNote sets the "note" field.
func (*CredentialUpdate) SetRealm ¶
func (cu *CredentialUpdate) SetRealm(s string) *CredentialUpdate
SetRealm sets the "realm" field.
func (*CredentialUpdate) SetSecret ¶
func (cu *CredentialUpdate) SetSecret(s string) *CredentialUpdate
SetSecret sets the "secret" field.
func (*CredentialUpdate) SetUpdatedAt ¶
func (cu *CredentialUpdate) SetUpdatedAt(t time.Time) *CredentialUpdate
SetUpdatedAt sets the "updated_at" field.
func (*CredentialUpdate) SetUsername ¶
func (cu *CredentialUpdate) SetUsername(s string) *CredentialUpdate
SetUsername sets the "username" field.
func (*CredentialUpdate) Where ¶
func (cu *CredentialUpdate) Where(ps ...predicate.Credential) *CredentialUpdate
Where appends a list predicates to the CredentialUpdate builder.
type CredentialUpdateOne ¶
type CredentialUpdateOne struct {
// contains filtered or unexported fields
}
CredentialUpdateOne is the builder for updating a single Credential entity.
func (*CredentialUpdateOne) AddColor ¶
func (cuo *CredentialUpdateOne) AddColor(u int32) *CredentialUpdateOne
AddColor adds u to the "color" field.
func (*CredentialUpdateOne) ClearDeletedAt ¶
func (cuo *CredentialUpdateOne) ClearDeletedAt() *CredentialUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*CredentialUpdateOne) ClearHost ¶
func (cuo *CredentialUpdateOne) ClearHost() *CredentialUpdateOne
ClearHost clears the value of the "host" field.
func (*CredentialUpdateOne) ClearNote ¶
func (cuo *CredentialUpdateOne) ClearNote() *CredentialUpdateOne
ClearNote clears the value of the "note" field.
func (*CredentialUpdateOne) ClearRealm ¶
func (cuo *CredentialUpdateOne) ClearRealm() *CredentialUpdateOne
ClearRealm clears the value of the "realm" field.
func (*CredentialUpdateOne) ClearSecret ¶
func (cuo *CredentialUpdateOne) ClearSecret() *CredentialUpdateOne
ClearSecret clears the value of the "secret" field.
func (*CredentialUpdateOne) ClearUsername ¶
func (cuo *CredentialUpdateOne) ClearUsername() *CredentialUpdateOne
ClearUsername clears the value of the "username" field.
func (*CredentialUpdateOne) Exec ¶
func (cuo *CredentialUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CredentialUpdateOne) ExecX ¶
func (cuo *CredentialUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CredentialUpdateOne) Mutation ¶
func (cuo *CredentialUpdateOne) Mutation() *CredentialMutation
Mutation returns the CredentialMutation object of the builder.
func (*CredentialUpdateOne) Save ¶
func (cuo *CredentialUpdateOne) Save(ctx context.Context) (*Credential, error)
Save executes the query and returns the updated Credential entity.
func (*CredentialUpdateOne) SaveX ¶
func (cuo *CredentialUpdateOne) SaveX(ctx context.Context) *Credential
SaveX is like Save, but panics if an error occurs.
func (*CredentialUpdateOne) Select ¶
func (cuo *CredentialUpdateOne) Select(field string, fields ...string) *CredentialUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CredentialUpdateOne) SetColor ¶
func (cuo *CredentialUpdateOne) SetColor(u uint32) *CredentialUpdateOne
SetColor sets the "color" field.
func (*CredentialUpdateOne) SetDeletedAt ¶
func (cuo *CredentialUpdateOne) SetDeletedAt(t time.Time) *CredentialUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*CredentialUpdateOne) SetHost ¶
func (cuo *CredentialUpdateOne) SetHost(s string) *CredentialUpdateOne
SetHost sets the "host" field.
func (*CredentialUpdateOne) SetNillableColor ¶
func (cuo *CredentialUpdateOne) SetNillableColor(u *uint32) *CredentialUpdateOne
SetNillableColor sets the "color" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableDeletedAt ¶
func (cuo *CredentialUpdateOne) SetNillableDeletedAt(t *time.Time) *CredentialUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableHost ¶
func (cuo *CredentialUpdateOne) SetNillableHost(s *string) *CredentialUpdateOne
SetNillableHost sets the "host" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableNote ¶
func (cuo *CredentialUpdateOne) SetNillableNote(s *string) *CredentialUpdateOne
SetNillableNote sets the "note" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableRealm ¶
func (cuo *CredentialUpdateOne) SetNillableRealm(s *string) *CredentialUpdateOne
SetNillableRealm sets the "realm" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableSecret ¶
func (cuo *CredentialUpdateOne) SetNillableSecret(s *string) *CredentialUpdateOne
SetNillableSecret sets the "secret" field if the given value is not nil.
func (*CredentialUpdateOne) SetNillableUsername ¶
func (cuo *CredentialUpdateOne) SetNillableUsername(s *string) *CredentialUpdateOne
SetNillableUsername sets the "username" field if the given value is not nil.
func (*CredentialUpdateOne) SetNote ¶
func (cuo *CredentialUpdateOne) SetNote(s string) *CredentialUpdateOne
SetNote sets the "note" field.
func (*CredentialUpdateOne) SetRealm ¶
func (cuo *CredentialUpdateOne) SetRealm(s string) *CredentialUpdateOne
SetRealm sets the "realm" field.
func (*CredentialUpdateOne) SetSecret ¶
func (cuo *CredentialUpdateOne) SetSecret(s string) *CredentialUpdateOne
SetSecret sets the "secret" field.
func (*CredentialUpdateOne) SetUpdatedAt ¶
func (cuo *CredentialUpdateOne) SetUpdatedAt(t time.Time) *CredentialUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*CredentialUpdateOne) SetUsername ¶
func (cuo *CredentialUpdateOne) SetUsername(s string) *CredentialUpdateOne
SetUsername sets the "username" field.
func (*CredentialUpdateOne) Where ¶
func (cuo *CredentialUpdateOne) Where(ps ...predicate.Credential) *CredentialUpdateOne
Where appends a list predicates to the CredentialUpdate builder.
type Group ¶
type Group struct { // ID of the ent. ID int `json:"id,omitempty"` // beacon ID Bid int `json:"bid,omitempty"` // command with arguments Cmd string `json:"cmd,omitempty"` // is group visible for other operators Visible bool `json:"visible,omitempty"` // author of group Author int `json:"author,omitempty"` // when group created CreatedAt time.Time `json:"created_at,omitempty"` // when group closed ClosedAt time.Time `json:"closed_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GroupQuery when eager-loading is set. Edges GroupEdges `json:"edges"` // contains filtered or unexported fields }
Group is the model entity for the Group schema.
func (*Group) QueryBeacon ¶
func (gr *Group) QueryBeacon() *BeaconQuery
QueryBeacon queries the "beacon" edge of the Group entity.
func (*Group) QueryMessage ¶
func (gr *Group) QueryMessage() *MessageQuery
QueryMessage queries the "message" edge of the Group entity.
func (*Group) QueryOperator ¶
func (gr *Group) QueryOperator() *OperatorQuery
QueryOperator queries the "operator" edge of the Group entity.
func (*Group) Unwrap ¶
Unwrap unwraps the Group entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Group) Update ¶
func (gr *Group) Update() *GroupUpdateOne
Update returns a builder for updating this Group. Note that you need to call Group.Unwrap() before calling this method if this Group was returned from a transaction, and the transaction was committed or rolled back.
type GroupClient ¶
type GroupClient struct {
// contains filtered or unexported fields
}
GroupClient is a client for the Group schema.
func NewGroupClient ¶
func NewGroupClient(c config) *GroupClient
NewGroupClient returns a client for the Group from the given config.
func (*GroupClient) Create ¶
func (c *GroupClient) Create() *GroupCreate
Create returns a builder for creating a Group entity.
func (*GroupClient) CreateBulk ¶
func (c *GroupClient) CreateBulk(builders ...*GroupCreate) *GroupCreateBulk
CreateBulk returns a builder for creating a bulk of Group entities.
func (*GroupClient) Delete ¶
func (c *GroupClient) Delete() *GroupDelete
Delete returns a delete builder for Group.
func (*GroupClient) DeleteOne ¶
func (c *GroupClient) DeleteOne(gr *Group) *GroupDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*GroupClient) DeleteOneID ¶
func (c *GroupClient) DeleteOneID(id int) *GroupDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*GroupClient) GetX ¶
func (c *GroupClient) GetX(ctx context.Context, id int) *Group
GetX is like Get, but panics if an error occurs.
func (*GroupClient) Intercept ¶
func (c *GroupClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `group.Intercept(f(g(h())))`.
func (*GroupClient) Interceptors ¶
func (c *GroupClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*GroupClient) MapCreateBulk ¶
func (c *GroupClient) MapCreateBulk(slice any, setFunc func(*GroupCreate, int)) *GroupCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*GroupClient) Query ¶
func (c *GroupClient) Query() *GroupQuery
Query returns a query builder for Group.
func (*GroupClient) QueryBeacon ¶
func (c *GroupClient) QueryBeacon(gr *Group) *BeaconQuery
QueryBeacon queries the beacon edge of a Group.
func (*GroupClient) QueryMessage ¶
func (c *GroupClient) QueryMessage(gr *Group) *MessageQuery
QueryMessage queries the message edge of a Group.
func (*GroupClient) QueryOperator ¶
func (c *GroupClient) QueryOperator(gr *Group) *OperatorQuery
QueryOperator queries the operator edge of a Group.
func (*GroupClient) QueryTask ¶
func (c *GroupClient) QueryTask(gr *Group) *TaskQuery
QueryTask queries the task edge of a Group.
func (*GroupClient) Update ¶
func (c *GroupClient) Update() *GroupUpdate
Update returns an update builder for Group.
func (*GroupClient) UpdateOne ¶
func (c *GroupClient) UpdateOne(gr *Group) *GroupUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GroupClient) UpdateOneID ¶
func (c *GroupClient) UpdateOneID(id int) *GroupUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GroupClient) Use ¶
func (c *GroupClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `group.Hooks(f(g(h())))`.
type GroupCreate ¶
type GroupCreate struct {
// contains filtered or unexported fields
}
GroupCreate is the builder for creating a Group entity.
func (*GroupCreate) AddMessage ¶
func (gc *GroupCreate) AddMessage(m ...*Message) *GroupCreate
AddMessage adds the "message" edges to the Message entity.
func (*GroupCreate) AddMessageIDs ¶
func (gc *GroupCreate) AddMessageIDs(ids ...int) *GroupCreate
AddMessageIDs adds the "message" edge to the Message entity by IDs.
func (*GroupCreate) AddTask ¶
func (gc *GroupCreate) AddTask(t ...*Task) *GroupCreate
AddTask adds the "task" edges to the Task entity.
func (*GroupCreate) AddTaskIDs ¶
func (gc *GroupCreate) AddTaskIDs(ids ...int) *GroupCreate
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*GroupCreate) Exec ¶
func (gc *GroupCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupCreate) ExecX ¶
func (gc *GroupCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupCreate) Mutation ¶
func (gc *GroupCreate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupCreate) Save ¶
func (gc *GroupCreate) Save(ctx context.Context) (*Group, error)
Save creates the Group in the database.
func (*GroupCreate) SaveX ¶
func (gc *GroupCreate) SaveX(ctx context.Context) *Group
SaveX calls Save and panics if Save returns an error.
func (*GroupCreate) SetAuthor ¶
func (gc *GroupCreate) SetAuthor(i int) *GroupCreate
SetAuthor sets the "author" field.
func (*GroupCreate) SetBeacon ¶
func (gc *GroupCreate) SetBeacon(b *Beacon) *GroupCreate
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*GroupCreate) SetBeaconID ¶
func (gc *GroupCreate) SetBeaconID(id int) *GroupCreate
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*GroupCreate) SetBid ¶
func (gc *GroupCreate) SetBid(i int) *GroupCreate
SetBid sets the "bid" field.
func (*GroupCreate) SetClosedAt ¶
func (gc *GroupCreate) SetClosedAt(t time.Time) *GroupCreate
SetClosedAt sets the "closed_at" field.
func (*GroupCreate) SetCmd ¶
func (gc *GroupCreate) SetCmd(s string) *GroupCreate
SetCmd sets the "cmd" field.
func (*GroupCreate) SetCreatedAt ¶
func (gc *GroupCreate) SetCreatedAt(t time.Time) *GroupCreate
SetCreatedAt sets the "created_at" field.
func (*GroupCreate) SetNillableClosedAt ¶
func (gc *GroupCreate) SetNillableClosedAt(t *time.Time) *GroupCreate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*GroupCreate) SetNillableCreatedAt ¶
func (gc *GroupCreate) SetNillableCreatedAt(t *time.Time) *GroupCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GroupCreate) SetOperator ¶
func (gc *GroupCreate) SetOperator(o *Operator) *GroupCreate
SetOperator sets the "operator" edge to the Operator entity.
func (*GroupCreate) SetOperatorID ¶
func (gc *GroupCreate) SetOperatorID(id int) *GroupCreate
SetOperatorID sets the "operator" edge to the Operator entity by ID.
func (*GroupCreate) SetVisible ¶
func (gc *GroupCreate) SetVisible(b bool) *GroupCreate
SetVisible sets the "visible" field.
type GroupCreateBulk ¶
type GroupCreateBulk struct {
// contains filtered or unexported fields
}
GroupCreateBulk is the builder for creating many Group entities in bulk.
func (*GroupCreateBulk) Exec ¶
func (gcb *GroupCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupCreateBulk) ExecX ¶
func (gcb *GroupCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type GroupDelete ¶
type GroupDelete struct {
// contains filtered or unexported fields
}
GroupDelete is the builder for deleting a Group entity.
func (*GroupDelete) Exec ¶
func (gd *GroupDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GroupDelete) ExecX ¶
func (gd *GroupDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GroupDelete) Where ¶
func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete
Where appends a list predicates to the GroupDelete builder.
type GroupDeleteOne ¶
type GroupDeleteOne struct {
// contains filtered or unexported fields
}
GroupDeleteOne is the builder for deleting a single Group entity.
func (*GroupDeleteOne) Exec ¶
func (gdo *GroupDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GroupDeleteOne) ExecX ¶
func (gdo *GroupDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupDeleteOne) Where ¶
func (gdo *GroupDeleteOne) Where(ps ...predicate.Group) *GroupDeleteOne
Where appends a list predicates to the GroupDelete builder.
type GroupEdges ¶
type GroupEdges struct { // Beacon holds the value of the beacon edge. Beacon *Beacon `json:"beacon,omitempty"` // Operator holds the value of the operator edge. Operator *Operator `json:"operator,omitempty"` // Message holds the value of the message edge. Message []*Message `json:"message,omitempty"` // Task holds the value of the task edge. Task []*Task `json:"task,omitempty"` // contains filtered or unexported fields }
GroupEdges holds the relations/edges for other nodes in the graph.
func (GroupEdges) BeaconOrErr ¶
func (e GroupEdges) BeaconOrErr() (*Beacon, error)
BeaconOrErr returns the Beacon value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (GroupEdges) MessageOrErr ¶
func (e GroupEdges) MessageOrErr() ([]*Message, error)
MessageOrErr returns the Message value or an error if the edge was not loaded in eager-loading.
func (GroupEdges) OperatorOrErr ¶
func (e GroupEdges) OperatorOrErr() (*Operator, error)
OperatorOrErr returns the Operator value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (GroupEdges) TaskOrErr ¶
func (e GroupEdges) TaskOrErr() ([]*Task, error)
TaskOrErr returns the Task value or an error if the edge was not loaded in eager-loading.
type GroupGroupBy ¶
type GroupGroupBy struct {
// contains filtered or unexported fields
}
GroupGroupBy is the group-by builder for Group entities.
func (*GroupGroupBy) Aggregate ¶
func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GroupGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupGroupBy) Scan ¶
func (ggb *GroupGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupMutation ¶
type GroupMutation struct {
// contains filtered or unexported fields
}
GroupMutation represents an operation that mutates the Group nodes in the graph.
func (*GroupMutation) AddField ¶
func (m *GroupMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*GroupMutation) AddMessageIDs ¶
func (m *GroupMutation) AddMessageIDs(ids ...int)
AddMessageIDs adds the "message" edge to the Message entity by ids.
func (*GroupMutation) AddTaskIDs ¶
func (m *GroupMutation) AddTaskIDs(ids ...int)
AddTaskIDs adds the "task" edge to the Task entity by ids.
func (*GroupMutation) AddedEdges ¶
func (m *GroupMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GroupMutation) AddedField ¶
func (m *GroupMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*GroupMutation) AddedFields ¶
func (m *GroupMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GroupMutation) AddedIDs ¶
func (m *GroupMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GroupMutation) Author ¶
func (m *GroupMutation) Author() (r int, exists bool)
Author returns the value of the "author" field in the mutation.
func (*GroupMutation) BeaconCleared ¶
func (m *GroupMutation) BeaconCleared() bool
BeaconCleared reports if the "beacon" edge to the Beacon entity was cleared.
func (*GroupMutation) BeaconID ¶
func (m *GroupMutation) BeaconID() (id int, exists bool)
BeaconID returns the "beacon" edge ID in the mutation.
func (*GroupMutation) BeaconIDs ¶
func (m *GroupMutation) BeaconIDs() (ids []int)
BeaconIDs returns the "beacon" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BeaconID instead. It exists only for internal usage by the builders.
func (*GroupMutation) Bid ¶
func (m *GroupMutation) Bid() (r int, exists bool)
Bid returns the value of the "bid" field in the mutation.
func (*GroupMutation) ClearBeacon ¶
func (m *GroupMutation) ClearBeacon()
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*GroupMutation) ClearClosedAt ¶
func (m *GroupMutation) ClearClosedAt()
ClearClosedAt clears the value of the "closed_at" field.
func (*GroupMutation) ClearEdge ¶
func (m *GroupMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*GroupMutation) ClearField ¶
func (m *GroupMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*GroupMutation) ClearMessage ¶
func (m *GroupMutation) ClearMessage()
ClearMessage clears the "message" edge to the Message entity.
func (*GroupMutation) ClearOperator ¶
func (m *GroupMutation) ClearOperator()
ClearOperator clears the "operator" edge to the Operator entity.
func (*GroupMutation) ClearTask ¶
func (m *GroupMutation) ClearTask()
ClearTask clears the "task" edge to the Task entity.
func (*GroupMutation) ClearedEdges ¶
func (m *GroupMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GroupMutation) ClearedFields ¶
func (m *GroupMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GroupMutation) Client ¶
func (m GroupMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*GroupMutation) ClosedAt ¶
func (m *GroupMutation) ClosedAt() (r time.Time, exists bool)
ClosedAt returns the value of the "closed_at" field in the mutation.
func (*GroupMutation) ClosedAtCleared ¶
func (m *GroupMutation) ClosedAtCleared() bool
ClosedAtCleared returns if the "closed_at" field was cleared in this mutation.
func (*GroupMutation) Cmd ¶
func (m *GroupMutation) Cmd() (r string, exists bool)
Cmd returns the value of the "cmd" field in the mutation.
func (*GroupMutation) CreatedAt ¶
func (m *GroupMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*GroupMutation) EdgeCleared ¶
func (m *GroupMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GroupMutation) Field ¶
func (m *GroupMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*GroupMutation) FieldCleared ¶
func (m *GroupMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GroupMutation) Fields ¶
func (m *GroupMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*GroupMutation) ID ¶
func (m *GroupMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*GroupMutation) IDs ¶
func (m *GroupMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*GroupMutation) MessageCleared ¶
func (m *GroupMutation) MessageCleared() bool
MessageCleared reports if the "message" edge to the Message entity was cleared.
func (*GroupMutation) MessageIDs ¶
func (m *GroupMutation) MessageIDs() (ids []int)
MessageIDs returns the "message" edge IDs in the mutation.
func (*GroupMutation) OldAuthor ¶
func (m *GroupMutation) OldAuthor(ctx context.Context) (v int, err error)
OldAuthor returns the old "author" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldBid ¶
func (m *GroupMutation) OldBid(ctx context.Context) (v int, err error)
OldBid returns the old "bid" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldClosedAt ¶
OldClosedAt returns the old "closed_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldCmd ¶
func (m *GroupMutation) OldCmd(ctx context.Context) (v string, err error)
OldCmd returns the old "cmd" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*GroupMutation) OldVisible ¶
func (m *GroupMutation) OldVisible(ctx context.Context) (v bool, err error)
OldVisible returns the old "visible" field's value of the Group entity. If the Group object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GroupMutation) OperatorCleared ¶
func (m *GroupMutation) OperatorCleared() bool
OperatorCleared reports if the "operator" edge to the Operator entity was cleared.
func (*GroupMutation) OperatorID ¶
func (m *GroupMutation) OperatorID() (id int, exists bool)
OperatorID returns the "operator" edge ID in the mutation.
func (*GroupMutation) OperatorIDs ¶
func (m *GroupMutation) OperatorIDs() (ids []int)
OperatorIDs returns the "operator" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OperatorID instead. It exists only for internal usage by the builders.
func (*GroupMutation) RemoveMessageIDs ¶
func (m *GroupMutation) RemoveMessageIDs(ids ...int)
RemoveMessageIDs removes the "message" edge to the Message entity by IDs.
func (*GroupMutation) RemoveTaskIDs ¶
func (m *GroupMutation) RemoveTaskIDs(ids ...int)
RemoveTaskIDs removes the "task" edge to the Task entity by IDs.
func (*GroupMutation) RemovedEdges ¶
func (m *GroupMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GroupMutation) RemovedIDs ¶
func (m *GroupMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*GroupMutation) RemovedMessageIDs ¶
func (m *GroupMutation) RemovedMessageIDs() (ids []int)
RemovedMessage returns the removed IDs of the "message" edge to the Message entity.
func (*GroupMutation) RemovedTaskIDs ¶
func (m *GroupMutation) RemovedTaskIDs() (ids []int)
RemovedTask returns the removed IDs of the "task" edge to the Task entity.
func (*GroupMutation) ResetAuthor ¶
func (m *GroupMutation) ResetAuthor()
ResetAuthor resets all changes to the "author" field.
func (*GroupMutation) ResetBeacon ¶
func (m *GroupMutation) ResetBeacon()
ResetBeacon resets all changes to the "beacon" edge.
func (*GroupMutation) ResetBid ¶
func (m *GroupMutation) ResetBid()
ResetBid resets all changes to the "bid" field.
func (*GroupMutation) ResetClosedAt ¶
func (m *GroupMutation) ResetClosedAt()
ResetClosedAt resets all changes to the "closed_at" field.
func (*GroupMutation) ResetCmd ¶
func (m *GroupMutation) ResetCmd()
ResetCmd resets all changes to the "cmd" field.
func (*GroupMutation) ResetCreatedAt ¶
func (m *GroupMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*GroupMutation) ResetEdge ¶
func (m *GroupMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*GroupMutation) ResetField ¶
func (m *GroupMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*GroupMutation) ResetMessage ¶
func (m *GroupMutation) ResetMessage()
ResetMessage resets all changes to the "message" edge.
func (*GroupMutation) ResetOperator ¶
func (m *GroupMutation) ResetOperator()
ResetOperator resets all changes to the "operator" edge.
func (*GroupMutation) ResetTask ¶
func (m *GroupMutation) ResetTask()
ResetTask resets all changes to the "task" edge.
func (*GroupMutation) ResetVisible ¶
func (m *GroupMutation) ResetVisible()
ResetVisible resets all changes to the "visible" field.
func (*GroupMutation) SetAuthor ¶
func (m *GroupMutation) SetAuthor(i int)
SetAuthor sets the "author" field.
func (*GroupMutation) SetBeaconID ¶
func (m *GroupMutation) SetBeaconID(id int)
SetBeaconID sets the "beacon" edge to the Beacon entity by id.
func (*GroupMutation) SetClosedAt ¶
func (m *GroupMutation) SetClosedAt(t time.Time)
SetClosedAt sets the "closed_at" field.
func (*GroupMutation) SetCmd ¶
func (m *GroupMutation) SetCmd(s string)
SetCmd sets the "cmd" field.
func (*GroupMutation) SetCreatedAt ¶
func (m *GroupMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*GroupMutation) SetField ¶
func (m *GroupMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*GroupMutation) SetOp ¶
func (m *GroupMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*GroupMutation) SetOperatorID ¶
func (m *GroupMutation) SetOperatorID(id int)
SetOperatorID sets the "operator" edge to the Operator entity by id.
func (*GroupMutation) SetVisible ¶
func (m *GroupMutation) SetVisible(b bool)
SetVisible sets the "visible" field.
func (*GroupMutation) TaskCleared ¶
func (m *GroupMutation) TaskCleared() bool
TaskCleared reports if the "task" edge to the Task entity was cleared.
func (*GroupMutation) TaskIDs ¶
func (m *GroupMutation) TaskIDs() (ids []int)
TaskIDs returns the "task" edge IDs in the mutation.
func (GroupMutation) Tx ¶
func (m GroupMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GroupMutation) Type ¶
func (m *GroupMutation) Type() string
Type returns the node type of this mutation (Group).
func (*GroupMutation) Visible ¶
func (m *GroupMutation) Visible() (r bool, exists bool)
Visible returns the value of the "visible" field in the mutation.
func (*GroupMutation) Where ¶
func (m *GroupMutation) Where(ps ...predicate.Group)
Where appends a list predicates to the GroupMutation builder.
func (*GroupMutation) WhereP ¶
func (m *GroupMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the GroupMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type GroupQuery ¶
type GroupQuery struct {
// contains filtered or unexported fields
}
GroupQuery is the builder for querying Group entities.
func (*GroupQuery) Aggregate ¶
func (gq *GroupQuery) Aggregate(fns ...AggregateFunc) *GroupSelect
Aggregate returns a GroupSelect configured with the given aggregations.
func (*GroupQuery) All ¶
func (gq *GroupQuery) All(ctx context.Context) ([]*Group, error)
All executes the query and returns a list of Groups.
func (*GroupQuery) AllX ¶
func (gq *GroupQuery) AllX(ctx context.Context) []*Group
AllX is like All, but panics if an error occurs.
func (*GroupQuery) Clone ¶
func (gq *GroupQuery) Clone() *GroupQuery
Clone returns a duplicate of the GroupQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GroupQuery) Count ¶
func (gq *GroupQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GroupQuery) CountX ¶
func (gq *GroupQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GroupQuery) Exist ¶
func (gq *GroupQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GroupQuery) ExistX ¶
func (gq *GroupQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GroupQuery) First ¶
func (gq *GroupQuery) First(ctx context.Context) (*Group, error)
First returns the first Group entity from the query. Returns a *NotFoundError when no Group was found.
func (*GroupQuery) FirstID ¶
func (gq *GroupQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Group ID from the query. Returns a *NotFoundError when no Group ID was found.
func (*GroupQuery) FirstIDX ¶
func (gq *GroupQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*GroupQuery) FirstX ¶
func (gq *GroupQuery) FirstX(ctx context.Context) *Group
FirstX is like First, but panics if an error occurs.
func (*GroupQuery) ForShare ¶
func (gq *GroupQuery) ForShare(opts ...sql.LockOption) *GroupQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*GroupQuery) ForUpdate ¶
func (gq *GroupQuery) ForUpdate(opts ...sql.LockOption) *GroupQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*GroupQuery) GroupBy ¶
func (gq *GroupQuery) GroupBy(field string, fields ...string) *GroupGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Bid int `json:"bid,omitempty"` Count int `json:"count,omitempty"` } client.Group.Query(). GroupBy(group.FieldBid). Aggregate(ent.Count()). Scan(ctx, &v)
func (*GroupQuery) IDs ¶
func (gq *GroupQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Group IDs.
func (*GroupQuery) IDsX ¶
func (gq *GroupQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*GroupQuery) Limit ¶
func (gq *GroupQuery) Limit(limit int) *GroupQuery
Limit the number of records to be returned by this query.
func (*GroupQuery) Offset ¶
func (gq *GroupQuery) Offset(offset int) *GroupQuery
Offset to start from.
func (*GroupQuery) Only ¶
func (gq *GroupQuery) Only(ctx context.Context) (*Group, error)
Only returns a single Group entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Group entity is found. Returns a *NotFoundError when no Group entities are found.
func (*GroupQuery) OnlyID ¶
func (gq *GroupQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Group ID in the query. Returns a *NotSingularError when more than one Group ID is found. Returns a *NotFoundError when no entities are found.
func (*GroupQuery) OnlyIDX ¶
func (gq *GroupQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GroupQuery) OnlyX ¶
func (gq *GroupQuery) OnlyX(ctx context.Context) *Group
OnlyX is like Only, but panics if an error occurs.
func (*GroupQuery) Order ¶
func (gq *GroupQuery) Order(o ...group.OrderOption) *GroupQuery
Order specifies how the records should be ordered.
func (*GroupQuery) QueryBeacon ¶
func (gq *GroupQuery) QueryBeacon() *BeaconQuery
QueryBeacon chains the current query on the "beacon" edge.
func (*GroupQuery) QueryMessage ¶
func (gq *GroupQuery) QueryMessage() *MessageQuery
QueryMessage chains the current query on the "message" edge.
func (*GroupQuery) QueryOperator ¶
func (gq *GroupQuery) QueryOperator() *OperatorQuery
QueryOperator chains the current query on the "operator" edge.
func (*GroupQuery) QueryTask ¶
func (gq *GroupQuery) QueryTask() *TaskQuery
QueryTask chains the current query on the "task" edge.
func (*GroupQuery) Select ¶
func (gq *GroupQuery) Select(fields ...string) *GroupSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Bid int `json:"bid,omitempty"` } client.Group.Query(). Select(group.FieldBid). Scan(ctx, &v)
func (*GroupQuery) Unique ¶
func (gq *GroupQuery) Unique(unique bool) *GroupQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*GroupQuery) Where ¶
func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery
Where adds a new predicate for the GroupQuery builder.
func (*GroupQuery) WithBeacon ¶
func (gq *GroupQuery) WithBeacon(opts ...func(*BeaconQuery)) *GroupQuery
WithBeacon tells the query-builder to eager-load the nodes that are connected to the "beacon" edge. The optional arguments are used to configure the query builder of the edge.
func (*GroupQuery) WithMessage ¶
func (gq *GroupQuery) WithMessage(opts ...func(*MessageQuery)) *GroupQuery
WithMessage tells the query-builder to eager-load the nodes that are connected to the "message" edge. The optional arguments are used to configure the query builder of the edge.
func (*GroupQuery) WithOperator ¶
func (gq *GroupQuery) WithOperator(opts ...func(*OperatorQuery)) *GroupQuery
WithOperator tells the query-builder to eager-load the nodes that are connected to the "operator" edge. The optional arguments are used to configure the query builder of the edge.
func (*GroupQuery) WithTask ¶
func (gq *GroupQuery) WithTask(opts ...func(*TaskQuery)) *GroupQuery
WithTask tells the query-builder to eager-load the nodes that are connected to the "task" edge. The optional arguments are used to configure the query builder of the edge.
type GroupSelect ¶
type GroupSelect struct { *GroupQuery // contains filtered or unexported fields }
GroupSelect is the builder for selecting fields of Group entities.
func (*GroupSelect) Aggregate ¶
func (gs *GroupSelect) Aggregate(fns ...AggregateFunc) *GroupSelect
Aggregate adds the given aggregation functions to the selector query.
func (*GroupSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GroupSelect) Scan ¶
func (gs *GroupSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*GroupSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type GroupUpdate ¶
type GroupUpdate struct {
// contains filtered or unexported fields
}
GroupUpdate is the builder for updating Group entities.
func (*GroupUpdate) AddMessage ¶
func (gu *GroupUpdate) AddMessage(m ...*Message) *GroupUpdate
AddMessage adds the "message" edges to the Message entity.
func (*GroupUpdate) AddMessageIDs ¶
func (gu *GroupUpdate) AddMessageIDs(ids ...int) *GroupUpdate
AddMessageIDs adds the "message" edge to the Message entity by IDs.
func (*GroupUpdate) AddTask ¶
func (gu *GroupUpdate) AddTask(t ...*Task) *GroupUpdate
AddTask adds the "task" edges to the Task entity.
func (*GroupUpdate) AddTaskIDs ¶
func (gu *GroupUpdate) AddTaskIDs(ids ...int) *GroupUpdate
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*GroupUpdate) ClearBeacon ¶
func (gu *GroupUpdate) ClearBeacon() *GroupUpdate
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*GroupUpdate) ClearClosedAt ¶
func (gu *GroupUpdate) ClearClosedAt() *GroupUpdate
ClearClosedAt clears the value of the "closed_at" field.
func (*GroupUpdate) ClearMessage ¶
func (gu *GroupUpdate) ClearMessage() *GroupUpdate
ClearMessage clears all "message" edges to the Message entity.
func (*GroupUpdate) ClearOperator ¶
func (gu *GroupUpdate) ClearOperator() *GroupUpdate
ClearOperator clears the "operator" edge to the Operator entity.
func (*GroupUpdate) ClearTask ¶
func (gu *GroupUpdate) ClearTask() *GroupUpdate
ClearTask clears all "task" edges to the Task entity.
func (*GroupUpdate) Exec ¶
func (gu *GroupUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GroupUpdate) ExecX ¶
func (gu *GroupUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdate) Mutation ¶
func (gu *GroupUpdate) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdate) RemoveMessage ¶
func (gu *GroupUpdate) RemoveMessage(m ...*Message) *GroupUpdate
RemoveMessage removes "message" edges to Message entities.
func (*GroupUpdate) RemoveMessageIDs ¶
func (gu *GroupUpdate) RemoveMessageIDs(ids ...int) *GroupUpdate
RemoveMessageIDs removes the "message" edge to Message entities by IDs.
func (*GroupUpdate) RemoveTask ¶
func (gu *GroupUpdate) RemoveTask(t ...*Task) *GroupUpdate
RemoveTask removes "task" edges to Task entities.
func (*GroupUpdate) RemoveTaskIDs ¶
func (gu *GroupUpdate) RemoveTaskIDs(ids ...int) *GroupUpdate
RemoveTaskIDs removes the "task" edge to Task entities by IDs.
func (*GroupUpdate) Save ¶
func (gu *GroupUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GroupUpdate) SaveX ¶
func (gu *GroupUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdate) SetAuthor ¶
func (gu *GroupUpdate) SetAuthor(i int) *GroupUpdate
SetAuthor sets the "author" field.
func (*GroupUpdate) SetBeacon ¶
func (gu *GroupUpdate) SetBeacon(b *Beacon) *GroupUpdate
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*GroupUpdate) SetBeaconID ¶
func (gu *GroupUpdate) SetBeaconID(id int) *GroupUpdate
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*GroupUpdate) SetBid ¶
func (gu *GroupUpdate) SetBid(i int) *GroupUpdate
SetBid sets the "bid" field.
func (*GroupUpdate) SetClosedAt ¶
func (gu *GroupUpdate) SetClosedAt(t time.Time) *GroupUpdate
SetClosedAt sets the "closed_at" field.
func (*GroupUpdate) SetCmd ¶
func (gu *GroupUpdate) SetCmd(s string) *GroupUpdate
SetCmd sets the "cmd" field.
func (*GroupUpdate) SetCreatedAt ¶
func (gu *GroupUpdate) SetCreatedAt(t time.Time) *GroupUpdate
SetCreatedAt sets the "created_at" field.
func (*GroupUpdate) SetNillableAuthor ¶
func (gu *GroupUpdate) SetNillableAuthor(i *int) *GroupUpdate
SetNillableAuthor sets the "author" field if the given value is not nil.
func (*GroupUpdate) SetNillableBid ¶
func (gu *GroupUpdate) SetNillableBid(i *int) *GroupUpdate
SetNillableBid sets the "bid" field if the given value is not nil.
func (*GroupUpdate) SetNillableClosedAt ¶
func (gu *GroupUpdate) SetNillableClosedAt(t *time.Time) *GroupUpdate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*GroupUpdate) SetNillableCmd ¶
func (gu *GroupUpdate) SetNillableCmd(s *string) *GroupUpdate
SetNillableCmd sets the "cmd" field if the given value is not nil.
func (*GroupUpdate) SetNillableCreatedAt ¶
func (gu *GroupUpdate) SetNillableCreatedAt(t *time.Time) *GroupUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GroupUpdate) SetNillableVisible ¶
func (gu *GroupUpdate) SetNillableVisible(b *bool) *GroupUpdate
SetNillableVisible sets the "visible" field if the given value is not nil.
func (*GroupUpdate) SetOperator ¶
func (gu *GroupUpdate) SetOperator(o *Operator) *GroupUpdate
SetOperator sets the "operator" edge to the Operator entity.
func (*GroupUpdate) SetOperatorID ¶
func (gu *GroupUpdate) SetOperatorID(id int) *GroupUpdate
SetOperatorID sets the "operator" edge to the Operator entity by ID.
func (*GroupUpdate) SetVisible ¶
func (gu *GroupUpdate) SetVisible(b bool) *GroupUpdate
SetVisible sets the "visible" field.
func (*GroupUpdate) Where ¶
func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate
Where appends a list predicates to the GroupUpdate builder.
type GroupUpdateOne ¶
type GroupUpdateOne struct {
// contains filtered or unexported fields
}
GroupUpdateOne is the builder for updating a single Group entity.
func (*GroupUpdateOne) AddMessage ¶
func (guo *GroupUpdateOne) AddMessage(m ...*Message) *GroupUpdateOne
AddMessage adds the "message" edges to the Message entity.
func (*GroupUpdateOne) AddMessageIDs ¶
func (guo *GroupUpdateOne) AddMessageIDs(ids ...int) *GroupUpdateOne
AddMessageIDs adds the "message" edge to the Message entity by IDs.
func (*GroupUpdateOne) AddTask ¶
func (guo *GroupUpdateOne) AddTask(t ...*Task) *GroupUpdateOne
AddTask adds the "task" edges to the Task entity.
func (*GroupUpdateOne) AddTaskIDs ¶
func (guo *GroupUpdateOne) AddTaskIDs(ids ...int) *GroupUpdateOne
AddTaskIDs adds the "task" edge to the Task entity by IDs.
func (*GroupUpdateOne) ClearBeacon ¶
func (guo *GroupUpdateOne) ClearBeacon() *GroupUpdateOne
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*GroupUpdateOne) ClearClosedAt ¶
func (guo *GroupUpdateOne) ClearClosedAt() *GroupUpdateOne
ClearClosedAt clears the value of the "closed_at" field.
func (*GroupUpdateOne) ClearMessage ¶
func (guo *GroupUpdateOne) ClearMessage() *GroupUpdateOne
ClearMessage clears all "message" edges to the Message entity.
func (*GroupUpdateOne) ClearOperator ¶
func (guo *GroupUpdateOne) ClearOperator() *GroupUpdateOne
ClearOperator clears the "operator" edge to the Operator entity.
func (*GroupUpdateOne) ClearTask ¶
func (guo *GroupUpdateOne) ClearTask() *GroupUpdateOne
ClearTask clears all "task" edges to the Task entity.
func (*GroupUpdateOne) Exec ¶
func (guo *GroupUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GroupUpdateOne) ExecX ¶
func (guo *GroupUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GroupUpdateOne) Mutation ¶
func (guo *GroupUpdateOne) Mutation() *GroupMutation
Mutation returns the GroupMutation object of the builder.
func (*GroupUpdateOne) RemoveMessage ¶
func (guo *GroupUpdateOne) RemoveMessage(m ...*Message) *GroupUpdateOne
RemoveMessage removes "message" edges to Message entities.
func (*GroupUpdateOne) RemoveMessageIDs ¶
func (guo *GroupUpdateOne) RemoveMessageIDs(ids ...int) *GroupUpdateOne
RemoveMessageIDs removes the "message" edge to Message entities by IDs.
func (*GroupUpdateOne) RemoveTask ¶
func (guo *GroupUpdateOne) RemoveTask(t ...*Task) *GroupUpdateOne
RemoveTask removes "task" edges to Task entities.
func (*GroupUpdateOne) RemoveTaskIDs ¶
func (guo *GroupUpdateOne) RemoveTaskIDs(ids ...int) *GroupUpdateOne
RemoveTaskIDs removes the "task" edge to Task entities by IDs.
func (*GroupUpdateOne) Save ¶
func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error)
Save executes the query and returns the updated Group entity.
func (*GroupUpdateOne) SaveX ¶
func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group
SaveX is like Save, but panics if an error occurs.
func (*GroupUpdateOne) Select ¶
func (guo *GroupUpdateOne) Select(field string, fields ...string) *GroupUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GroupUpdateOne) SetAuthor ¶
func (guo *GroupUpdateOne) SetAuthor(i int) *GroupUpdateOne
SetAuthor sets the "author" field.
func (*GroupUpdateOne) SetBeacon ¶
func (guo *GroupUpdateOne) SetBeacon(b *Beacon) *GroupUpdateOne
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*GroupUpdateOne) SetBeaconID ¶
func (guo *GroupUpdateOne) SetBeaconID(id int) *GroupUpdateOne
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*GroupUpdateOne) SetBid ¶
func (guo *GroupUpdateOne) SetBid(i int) *GroupUpdateOne
SetBid sets the "bid" field.
func (*GroupUpdateOne) SetClosedAt ¶
func (guo *GroupUpdateOne) SetClosedAt(t time.Time) *GroupUpdateOne
SetClosedAt sets the "closed_at" field.
func (*GroupUpdateOne) SetCmd ¶
func (guo *GroupUpdateOne) SetCmd(s string) *GroupUpdateOne
SetCmd sets the "cmd" field.
func (*GroupUpdateOne) SetCreatedAt ¶
func (guo *GroupUpdateOne) SetCreatedAt(t time.Time) *GroupUpdateOne
SetCreatedAt sets the "created_at" field.
func (*GroupUpdateOne) SetNillableAuthor ¶
func (guo *GroupUpdateOne) SetNillableAuthor(i *int) *GroupUpdateOne
SetNillableAuthor sets the "author" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableBid ¶
func (guo *GroupUpdateOne) SetNillableBid(i *int) *GroupUpdateOne
SetNillableBid sets the "bid" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableClosedAt ¶
func (guo *GroupUpdateOne) SetNillableClosedAt(t *time.Time) *GroupUpdateOne
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableCmd ¶
func (guo *GroupUpdateOne) SetNillableCmd(s *string) *GroupUpdateOne
SetNillableCmd sets the "cmd" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableCreatedAt ¶
func (guo *GroupUpdateOne) SetNillableCreatedAt(t *time.Time) *GroupUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*GroupUpdateOne) SetNillableVisible ¶
func (guo *GroupUpdateOne) SetNillableVisible(b *bool) *GroupUpdateOne
SetNillableVisible sets the "visible" field if the given value is not nil.
func (*GroupUpdateOne) SetOperator ¶
func (guo *GroupUpdateOne) SetOperator(o *Operator) *GroupUpdateOne
SetOperator sets the "operator" edge to the Operator entity.
func (*GroupUpdateOne) SetOperatorID ¶
func (guo *GroupUpdateOne) SetOperatorID(id int) *GroupUpdateOne
SetOperatorID sets the "operator" edge to the Operator entity by ID.
func (*GroupUpdateOne) SetVisible ¶
func (guo *GroupUpdateOne) SetVisible(b bool) *GroupUpdateOne
SetVisible sets the "visible" field.
func (*GroupUpdateOne) Where ¶
func (guo *GroupUpdateOne) Where(ps ...predicate.Group) *GroupUpdateOne
Where appends a list predicates to the GroupUpdate builder.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type Listener ¶
type Listener struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // authentication token of listener Token string `json:"token,omitempty"` // freehand name of listener Name string `json:"name,omitempty"` // bind ip address of listener IP types.Inet `json:"ip,omitempty"` // bind port of listener Port uint16 `json:"port,omitempty"` // color of entity Color uint32 `json:"color,omitempty"` // note of listener Note string `json:"note,omitempty"` // last activity of listener Last time.Time `json:"last,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the ListenerQuery when eager-loading is set. Edges ListenerEdges `json:"edges"` // contains filtered or unexported fields }
Listener is the model entity for the Listener schema.
func (*Listener) QueryBeacon ¶
func (l *Listener) QueryBeacon() *BeaconQuery
QueryBeacon queries the "beacon" edge of the Listener entity.
func (*Listener) Unwrap ¶
Unwrap unwraps the Listener entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Listener) Update ¶
func (l *Listener) Update() *ListenerUpdateOne
Update returns a builder for updating this Listener. Note that you need to call Listener.Unwrap() before calling this method if this Listener was returned from a transaction, and the transaction was committed or rolled back.
type ListenerClient ¶
type ListenerClient struct {
// contains filtered or unexported fields
}
ListenerClient is a client for the Listener schema.
func NewListenerClient ¶
func NewListenerClient(c config) *ListenerClient
NewListenerClient returns a client for the Listener from the given config.
func (*ListenerClient) Create ¶
func (c *ListenerClient) Create() *ListenerCreate
Create returns a builder for creating a Listener entity.
func (*ListenerClient) CreateBulk ¶
func (c *ListenerClient) CreateBulk(builders ...*ListenerCreate) *ListenerCreateBulk
CreateBulk returns a builder for creating a bulk of Listener entities.
func (*ListenerClient) Delete ¶
func (c *ListenerClient) Delete() *ListenerDelete
Delete returns a delete builder for Listener.
func (*ListenerClient) DeleteOne ¶
func (c *ListenerClient) DeleteOne(l *Listener) *ListenerDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ListenerClient) DeleteOneID ¶
func (c *ListenerClient) DeleteOneID(id int) *ListenerDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ListenerClient) GetX ¶
func (c *ListenerClient) GetX(ctx context.Context, id int) *Listener
GetX is like Get, but panics if an error occurs.
func (*ListenerClient) Hooks ¶
func (c *ListenerClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ListenerClient) Intercept ¶
func (c *ListenerClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `listener.Intercept(f(g(h())))`.
func (*ListenerClient) Interceptors ¶
func (c *ListenerClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ListenerClient) MapCreateBulk ¶
func (c *ListenerClient) MapCreateBulk(slice any, setFunc func(*ListenerCreate, int)) *ListenerCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ListenerClient) Query ¶
func (c *ListenerClient) Query() *ListenerQuery
Query returns a query builder for Listener.
func (*ListenerClient) QueryBeacon ¶
func (c *ListenerClient) QueryBeacon(l *Listener) *BeaconQuery
QueryBeacon queries the beacon edge of a Listener.
func (*ListenerClient) Update ¶
func (c *ListenerClient) Update() *ListenerUpdate
Update returns an update builder for Listener.
func (*ListenerClient) UpdateOne ¶
func (c *ListenerClient) UpdateOne(l *Listener) *ListenerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ListenerClient) UpdateOneID ¶
func (c *ListenerClient) UpdateOneID(id int) *ListenerUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ListenerClient) Use ¶
func (c *ListenerClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `listener.Hooks(f(g(h())))`.
type ListenerCreate ¶
type ListenerCreate struct {
// contains filtered or unexported fields
}
ListenerCreate is the builder for creating a Listener entity.
func (*ListenerCreate) AddBeacon ¶
func (lc *ListenerCreate) AddBeacon(b ...*Beacon) *ListenerCreate
AddBeacon adds the "beacon" edges to the Beacon entity.
func (*ListenerCreate) AddBeaconIDs ¶
func (lc *ListenerCreate) AddBeaconIDs(ids ...int) *ListenerCreate
AddBeaconIDs adds the "beacon" edge to the Beacon entity by IDs.
func (*ListenerCreate) Exec ¶
func (lc *ListenerCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ListenerCreate) ExecX ¶
func (lc *ListenerCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ListenerCreate) Mutation ¶
func (lc *ListenerCreate) Mutation() *ListenerMutation
Mutation returns the ListenerMutation object of the builder.
func (*ListenerCreate) Save ¶
func (lc *ListenerCreate) Save(ctx context.Context) (*Listener, error)
Save creates the Listener in the database.
func (*ListenerCreate) SaveX ¶
func (lc *ListenerCreate) SaveX(ctx context.Context) *Listener
SaveX calls Save and panics if Save returns an error.
func (*ListenerCreate) SetColor ¶
func (lc *ListenerCreate) SetColor(u uint32) *ListenerCreate
SetColor sets the "color" field.
func (*ListenerCreate) SetCreatedAt ¶
func (lc *ListenerCreate) SetCreatedAt(t time.Time) *ListenerCreate
SetCreatedAt sets the "created_at" field.
func (*ListenerCreate) SetDeletedAt ¶
func (lc *ListenerCreate) SetDeletedAt(t time.Time) *ListenerCreate
SetDeletedAt sets the "deleted_at" field.
func (*ListenerCreate) SetIP ¶
func (lc *ListenerCreate) SetIP(t types.Inet) *ListenerCreate
SetIP sets the "ip" field.
func (*ListenerCreate) SetLast ¶
func (lc *ListenerCreate) SetLast(t time.Time) *ListenerCreate
SetLast sets the "last" field.
func (*ListenerCreate) SetName ¶
func (lc *ListenerCreate) SetName(s string) *ListenerCreate
SetName sets the "name" field.
func (*ListenerCreate) SetNillableColor ¶
func (lc *ListenerCreate) SetNillableColor(u *uint32) *ListenerCreate
SetNillableColor sets the "color" field if the given value is not nil.
func (*ListenerCreate) SetNillableCreatedAt ¶
func (lc *ListenerCreate) SetNillableCreatedAt(t *time.Time) *ListenerCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ListenerCreate) SetNillableDeletedAt ¶
func (lc *ListenerCreate) SetNillableDeletedAt(t *time.Time) *ListenerCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ListenerCreate) SetNillableIP ¶
func (lc *ListenerCreate) SetNillableIP(t *types.Inet) *ListenerCreate
SetNillableIP sets the "ip" field if the given value is not nil.
func (*ListenerCreate) SetNillableLast ¶
func (lc *ListenerCreate) SetNillableLast(t *time.Time) *ListenerCreate
SetNillableLast sets the "last" field if the given value is not nil.
func (*ListenerCreate) SetNillableName ¶
func (lc *ListenerCreate) SetNillableName(s *string) *ListenerCreate
SetNillableName sets the "name" field if the given value is not nil.
func (*ListenerCreate) SetNillableNote ¶
func (lc *ListenerCreate) SetNillableNote(s *string) *ListenerCreate
SetNillableNote sets the "note" field if the given value is not nil.
func (*ListenerCreate) SetNillablePort ¶
func (lc *ListenerCreate) SetNillablePort(u *uint16) *ListenerCreate
SetNillablePort sets the "port" field if the given value is not nil.
func (*ListenerCreate) SetNillableToken ¶
func (lc *ListenerCreate) SetNillableToken(s *string) *ListenerCreate
SetNillableToken sets the "token" field if the given value is not nil.
func (*ListenerCreate) SetNillableUpdatedAt ¶
func (lc *ListenerCreate) SetNillableUpdatedAt(t *time.Time) *ListenerCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ListenerCreate) SetNote ¶
func (lc *ListenerCreate) SetNote(s string) *ListenerCreate
SetNote sets the "note" field.
func (*ListenerCreate) SetPort ¶
func (lc *ListenerCreate) SetPort(u uint16) *ListenerCreate
SetPort sets the "port" field.
func (*ListenerCreate) SetToken ¶
func (lc *ListenerCreate) SetToken(s string) *ListenerCreate
SetToken sets the "token" field.
func (*ListenerCreate) SetUpdatedAt ¶
func (lc *ListenerCreate) SetUpdatedAt(t time.Time) *ListenerCreate
SetUpdatedAt sets the "updated_at" field.
type ListenerCreateBulk ¶
type ListenerCreateBulk struct {
// contains filtered or unexported fields
}
ListenerCreateBulk is the builder for creating many Listener entities in bulk.
func (*ListenerCreateBulk) Exec ¶
func (lcb *ListenerCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ListenerCreateBulk) ExecX ¶
func (lcb *ListenerCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ListenerDelete ¶
type ListenerDelete struct {
// contains filtered or unexported fields
}
ListenerDelete is the builder for deleting a Listener entity.
func (*ListenerDelete) Exec ¶
func (ld *ListenerDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ListenerDelete) ExecX ¶
func (ld *ListenerDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ListenerDelete) Where ¶
func (ld *ListenerDelete) Where(ps ...predicate.Listener) *ListenerDelete
Where appends a list predicates to the ListenerDelete builder.
type ListenerDeleteOne ¶
type ListenerDeleteOne struct {
// contains filtered or unexported fields
}
ListenerDeleteOne is the builder for deleting a single Listener entity.
func (*ListenerDeleteOne) Exec ¶
func (ldo *ListenerDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ListenerDeleteOne) ExecX ¶
func (ldo *ListenerDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ListenerDeleteOne) Where ¶
func (ldo *ListenerDeleteOne) Where(ps ...predicate.Listener) *ListenerDeleteOne
Where appends a list predicates to the ListenerDelete builder.
type ListenerEdges ¶
type ListenerEdges struct { // Beacon holds the value of the beacon edge. Beacon []*Beacon `json:"beacon,omitempty"` // contains filtered or unexported fields }
ListenerEdges holds the relations/edges for other nodes in the graph.
func (ListenerEdges) BeaconOrErr ¶
func (e ListenerEdges) BeaconOrErr() ([]*Beacon, error)
BeaconOrErr returns the Beacon value or an error if the edge was not loaded in eager-loading.
type ListenerGroupBy ¶
type ListenerGroupBy struct {
// contains filtered or unexported fields
}
ListenerGroupBy is the group-by builder for Listener entities.
func (*ListenerGroupBy) Aggregate ¶
func (lgb *ListenerGroupBy) Aggregate(fns ...AggregateFunc) *ListenerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ListenerGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ListenerGroupBy) Scan ¶
func (lgb *ListenerGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ListenerGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ListenerMutation ¶
type ListenerMutation struct {
// contains filtered or unexported fields
}
ListenerMutation represents an operation that mutates the Listener nodes in the graph.
func (*ListenerMutation) AddBeaconIDs ¶
func (m *ListenerMutation) AddBeaconIDs(ids ...int)
AddBeaconIDs adds the "beacon" edge to the Beacon entity by ids.
func (*ListenerMutation) AddColor ¶
func (m *ListenerMutation) AddColor(u int32)
AddColor adds u to the "color" field.
func (*ListenerMutation) AddField ¶
func (m *ListenerMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ListenerMutation) AddPort ¶
func (m *ListenerMutation) AddPort(u int16)
AddPort adds u to the "port" field.
func (*ListenerMutation) AddedColor ¶
func (m *ListenerMutation) AddedColor() (r int32, exists bool)
AddedColor returns the value that was added to the "color" field in this mutation.
func (*ListenerMutation) AddedEdges ¶
func (m *ListenerMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ListenerMutation) AddedField ¶
func (m *ListenerMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ListenerMutation) AddedFields ¶
func (m *ListenerMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ListenerMutation) AddedIDs ¶
func (m *ListenerMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ListenerMutation) AddedPort ¶
func (m *ListenerMutation) AddedPort() (r int16, exists bool)
AddedPort returns the value that was added to the "port" field in this mutation.
func (*ListenerMutation) BeaconCleared ¶
func (m *ListenerMutation) BeaconCleared() bool
BeaconCleared reports if the "beacon" edge to the Beacon entity was cleared.
func (*ListenerMutation) BeaconIDs ¶
func (m *ListenerMutation) BeaconIDs() (ids []int)
BeaconIDs returns the "beacon" edge IDs in the mutation.
func (*ListenerMutation) ClearBeacon ¶
func (m *ListenerMutation) ClearBeacon()
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*ListenerMutation) ClearDeletedAt ¶
func (m *ListenerMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ListenerMutation) ClearEdge ¶
func (m *ListenerMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*ListenerMutation) ClearField ¶
func (m *ListenerMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*ListenerMutation) ClearIP ¶
func (m *ListenerMutation) ClearIP()
ClearIP clears the value of the "ip" field.
func (*ListenerMutation) ClearName ¶
func (m *ListenerMutation) ClearName()
ClearName clears the value of the "name" field.
func (*ListenerMutation) ClearNote ¶
func (m *ListenerMutation) ClearNote()
ClearNote clears the value of the "note" field.
func (*ListenerMutation) ClearPort ¶
func (m *ListenerMutation) ClearPort()
ClearPort clears the value of the "port" field.
func (*ListenerMutation) ClearToken ¶
func (m *ListenerMutation) ClearToken()
ClearToken clears the value of the "token" field.
func (*ListenerMutation) ClearedEdges ¶
func (m *ListenerMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ListenerMutation) ClearedFields ¶
func (m *ListenerMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ListenerMutation) Client ¶
func (m ListenerMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*ListenerMutation) Color ¶
func (m *ListenerMutation) Color() (r uint32, exists bool)
Color returns the value of the "color" field in the mutation.
func (*ListenerMutation) CreatedAt ¶
func (m *ListenerMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ListenerMutation) DeletedAt ¶
func (m *ListenerMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*ListenerMutation) DeletedAtCleared ¶
func (m *ListenerMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*ListenerMutation) EdgeCleared ¶
func (m *ListenerMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ListenerMutation) Field ¶
func (m *ListenerMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*ListenerMutation) FieldCleared ¶
func (m *ListenerMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ListenerMutation) Fields ¶
func (m *ListenerMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*ListenerMutation) ID ¶
func (m *ListenerMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ListenerMutation) IDs ¶
func (m *ListenerMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*ListenerMutation) IP ¶
func (m *ListenerMutation) IP() (r types.Inet, exists bool)
IP returns the value of the "ip" field in the mutation.
func (*ListenerMutation) IPCleared ¶
func (m *ListenerMutation) IPCleared() bool
IPCleared returns if the "ip" field was cleared in this mutation.
func (*ListenerMutation) Last ¶
func (m *ListenerMutation) Last() (r time.Time, exists bool)
Last returns the value of the "last" field in the mutation.
func (*ListenerMutation) Name ¶
func (m *ListenerMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ListenerMutation) NameCleared ¶
func (m *ListenerMutation) NameCleared() bool
NameCleared returns if the "name" field was cleared in this mutation.
func (*ListenerMutation) Note ¶
func (m *ListenerMutation) Note() (r string, exists bool)
Note returns the value of the "note" field in the mutation.
func (*ListenerMutation) NoteCleared ¶
func (m *ListenerMutation) NoteCleared() bool
NoteCleared returns if the "note" field was cleared in this mutation.
func (*ListenerMutation) OldColor ¶
func (m *ListenerMutation) OldColor(ctx context.Context) (v uint32, err error)
OldColor returns the old "color" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ListenerMutation) OldIP ¶
OldIP returns the old "ip" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldLast ¶
OldLast returns the old "last" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldName ¶
func (m *ListenerMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldNote ¶
func (m *ListenerMutation) OldNote(ctx context.Context) (v string, err error)
OldNote returns the old "note" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldPort ¶
func (m *ListenerMutation) OldPort(ctx context.Context) (v uint16, err error)
OldPort returns the old "port" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldToken ¶
func (m *ListenerMutation) OldToken(ctx context.Context) (v string, err error)
OldToken returns the old "token" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Listener entity. If the Listener object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ListenerMutation) Port ¶
func (m *ListenerMutation) Port() (r uint16, exists bool)
Port returns the value of the "port" field in the mutation.
func (*ListenerMutation) PortCleared ¶
func (m *ListenerMutation) PortCleared() bool
PortCleared returns if the "port" field was cleared in this mutation.
func (*ListenerMutation) RemoveBeaconIDs ¶
func (m *ListenerMutation) RemoveBeaconIDs(ids ...int)
RemoveBeaconIDs removes the "beacon" edge to the Beacon entity by IDs.
func (*ListenerMutation) RemovedBeaconIDs ¶
func (m *ListenerMutation) RemovedBeaconIDs() (ids []int)
RemovedBeacon returns the removed IDs of the "beacon" edge to the Beacon entity.
func (*ListenerMutation) RemovedEdges ¶
func (m *ListenerMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ListenerMutation) RemovedIDs ¶
func (m *ListenerMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*ListenerMutation) ResetBeacon ¶
func (m *ListenerMutation) ResetBeacon()
ResetBeacon resets all changes to the "beacon" edge.
func (*ListenerMutation) ResetColor ¶
func (m *ListenerMutation) ResetColor()
ResetColor resets all changes to the "color" field.
func (*ListenerMutation) ResetCreatedAt ¶
func (m *ListenerMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ListenerMutation) ResetDeletedAt ¶
func (m *ListenerMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*ListenerMutation) ResetEdge ¶
func (m *ListenerMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*ListenerMutation) ResetField ¶
func (m *ListenerMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*ListenerMutation) ResetIP ¶
func (m *ListenerMutation) ResetIP()
ResetIP resets all changes to the "ip" field.
func (*ListenerMutation) ResetLast ¶
func (m *ListenerMutation) ResetLast()
ResetLast resets all changes to the "last" field.
func (*ListenerMutation) ResetName ¶
func (m *ListenerMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ListenerMutation) ResetNote ¶
func (m *ListenerMutation) ResetNote()
ResetNote resets all changes to the "note" field.
func (*ListenerMutation) ResetPort ¶
func (m *ListenerMutation) ResetPort()
ResetPort resets all changes to the "port" field.
func (*ListenerMutation) ResetToken ¶
func (m *ListenerMutation) ResetToken()
ResetToken resets all changes to the "token" field.
func (*ListenerMutation) ResetUpdatedAt ¶
func (m *ListenerMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ListenerMutation) SetColor ¶
func (m *ListenerMutation) SetColor(u uint32)
SetColor sets the "color" field.
func (*ListenerMutation) SetCreatedAt ¶
func (m *ListenerMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ListenerMutation) SetDeletedAt ¶
func (m *ListenerMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*ListenerMutation) SetField ¶
func (m *ListenerMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*ListenerMutation) SetIP ¶
func (m *ListenerMutation) SetIP(t types.Inet)
SetIP sets the "ip" field.
func (*ListenerMutation) SetLast ¶
func (m *ListenerMutation) SetLast(t time.Time)
SetLast sets the "last" field.
func (*ListenerMutation) SetName ¶
func (m *ListenerMutation) SetName(s string)
SetName sets the "name" field.
func (*ListenerMutation) SetNote ¶
func (m *ListenerMutation) SetNote(s string)
SetNote sets the "note" field.
func (*ListenerMutation) SetOp ¶
func (m *ListenerMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ListenerMutation) SetPort ¶
func (m *ListenerMutation) SetPort(u uint16)
SetPort sets the "port" field.
func (*ListenerMutation) SetToken ¶
func (m *ListenerMutation) SetToken(s string)
SetToken sets the "token" field.
func (*ListenerMutation) SetUpdatedAt ¶
func (m *ListenerMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ListenerMutation) Token ¶
func (m *ListenerMutation) Token() (r string, exists bool)
Token returns the value of the "token" field in the mutation.
func (*ListenerMutation) TokenCleared ¶
func (m *ListenerMutation) TokenCleared() bool
TokenCleared returns if the "token" field was cleared in this mutation.
func (ListenerMutation) Tx ¶
func (m ListenerMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ListenerMutation) Type ¶
func (m *ListenerMutation) Type() string
Type returns the node type of this mutation (Listener).
func (*ListenerMutation) UpdatedAt ¶
func (m *ListenerMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ListenerMutation) Where ¶
func (m *ListenerMutation) Where(ps ...predicate.Listener)
Where appends a list predicates to the ListenerMutation builder.
func (*ListenerMutation) WhereP ¶
func (m *ListenerMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ListenerMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ListenerQuery ¶
type ListenerQuery struct {
// contains filtered or unexported fields
}
ListenerQuery is the builder for querying Listener entities.
func (*ListenerQuery) Aggregate ¶
func (lq *ListenerQuery) Aggregate(fns ...AggregateFunc) *ListenerSelect
Aggregate returns a ListenerSelect configured with the given aggregations.
func (*ListenerQuery) All ¶
func (lq *ListenerQuery) All(ctx context.Context) ([]*Listener, error)
All executes the query and returns a list of Listeners.
func (*ListenerQuery) AllX ¶
func (lq *ListenerQuery) AllX(ctx context.Context) []*Listener
AllX is like All, but panics if an error occurs.
func (*ListenerQuery) Clone ¶
func (lq *ListenerQuery) Clone() *ListenerQuery
Clone returns a duplicate of the ListenerQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ListenerQuery) Count ¶
func (lq *ListenerQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ListenerQuery) CountX ¶
func (lq *ListenerQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ListenerQuery) Exist ¶
func (lq *ListenerQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ListenerQuery) ExistX ¶
func (lq *ListenerQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ListenerQuery) First ¶
func (lq *ListenerQuery) First(ctx context.Context) (*Listener, error)
First returns the first Listener entity from the query. Returns a *NotFoundError when no Listener was found.
func (*ListenerQuery) FirstID ¶
func (lq *ListenerQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Listener ID from the query. Returns a *NotFoundError when no Listener ID was found.
func (*ListenerQuery) FirstIDX ¶
func (lq *ListenerQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ListenerQuery) FirstX ¶
func (lq *ListenerQuery) FirstX(ctx context.Context) *Listener
FirstX is like First, but panics if an error occurs.
func (*ListenerQuery) ForShare ¶
func (lq *ListenerQuery) ForShare(opts ...sql.LockOption) *ListenerQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*ListenerQuery) ForUpdate ¶
func (lq *ListenerQuery) ForUpdate(opts ...sql.LockOption) *ListenerQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*ListenerQuery) GroupBy ¶
func (lq *ListenerQuery) GroupBy(field string, fields ...string) *ListenerGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Listener.Query(). GroupBy(listener.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*ListenerQuery) IDs ¶
func (lq *ListenerQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Listener IDs.
func (*ListenerQuery) IDsX ¶
func (lq *ListenerQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ListenerQuery) Limit ¶
func (lq *ListenerQuery) Limit(limit int) *ListenerQuery
Limit the number of records to be returned by this query.
func (*ListenerQuery) Offset ¶
func (lq *ListenerQuery) Offset(offset int) *ListenerQuery
Offset to start from.
func (*ListenerQuery) Only ¶
func (lq *ListenerQuery) Only(ctx context.Context) (*Listener, error)
Only returns a single Listener entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Listener entity is found. Returns a *NotFoundError when no Listener entities are found.
func (*ListenerQuery) OnlyID ¶
func (lq *ListenerQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Listener ID in the query. Returns a *NotSingularError when more than one Listener ID is found. Returns a *NotFoundError when no entities are found.
func (*ListenerQuery) OnlyIDX ¶
func (lq *ListenerQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ListenerQuery) OnlyX ¶
func (lq *ListenerQuery) OnlyX(ctx context.Context) *Listener
OnlyX is like Only, but panics if an error occurs.
func (*ListenerQuery) Order ¶
func (lq *ListenerQuery) Order(o ...listener.OrderOption) *ListenerQuery
Order specifies how the records should be ordered.
func (*ListenerQuery) QueryBeacon ¶
func (lq *ListenerQuery) QueryBeacon() *BeaconQuery
QueryBeacon chains the current query on the "beacon" edge.
func (*ListenerQuery) Select ¶
func (lq *ListenerQuery) Select(fields ...string) *ListenerSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Listener.Query(). Select(listener.FieldCreatedAt). Scan(ctx, &v)
func (*ListenerQuery) Unique ¶
func (lq *ListenerQuery) Unique(unique bool) *ListenerQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*ListenerQuery) Where ¶
func (lq *ListenerQuery) Where(ps ...predicate.Listener) *ListenerQuery
Where adds a new predicate for the ListenerQuery builder.
func (*ListenerQuery) WithBeacon ¶
func (lq *ListenerQuery) WithBeacon(opts ...func(*BeaconQuery)) *ListenerQuery
WithBeacon tells the query-builder to eager-load the nodes that are connected to the "beacon" edge. The optional arguments are used to configure the query builder of the edge.
type ListenerSelect ¶
type ListenerSelect struct { *ListenerQuery // contains filtered or unexported fields }
ListenerSelect is the builder for selecting fields of Listener entities.
func (*ListenerSelect) Aggregate ¶
func (ls *ListenerSelect) Aggregate(fns ...AggregateFunc) *ListenerSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ListenerSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ListenerSelect) Scan ¶
func (ls *ListenerSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ListenerSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ListenerUpdate ¶
type ListenerUpdate struct {
// contains filtered or unexported fields
}
ListenerUpdate is the builder for updating Listener entities.
func (*ListenerUpdate) AddBeacon ¶
func (lu *ListenerUpdate) AddBeacon(b ...*Beacon) *ListenerUpdate
AddBeacon adds the "beacon" edges to the Beacon entity.
func (*ListenerUpdate) AddBeaconIDs ¶
func (lu *ListenerUpdate) AddBeaconIDs(ids ...int) *ListenerUpdate
AddBeaconIDs adds the "beacon" edge to the Beacon entity by IDs.
func (*ListenerUpdate) AddColor ¶
func (lu *ListenerUpdate) AddColor(u int32) *ListenerUpdate
AddColor adds u to the "color" field.
func (*ListenerUpdate) AddPort ¶
func (lu *ListenerUpdate) AddPort(u int16) *ListenerUpdate
AddPort adds u to the "port" field.
func (*ListenerUpdate) ClearBeacon ¶
func (lu *ListenerUpdate) ClearBeacon() *ListenerUpdate
ClearBeacon clears all "beacon" edges to the Beacon entity.
func (*ListenerUpdate) ClearDeletedAt ¶
func (lu *ListenerUpdate) ClearDeletedAt() *ListenerUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ListenerUpdate) ClearIP ¶
func (lu *ListenerUpdate) ClearIP() *ListenerUpdate
ClearIP clears the value of the "ip" field.
func (*ListenerUpdate) ClearName ¶
func (lu *ListenerUpdate) ClearName() *ListenerUpdate
ClearName clears the value of the "name" field.
func (*ListenerUpdate) ClearNote ¶
func (lu *ListenerUpdate) ClearNote() *ListenerUpdate
ClearNote clears the value of the "note" field.
func (*ListenerUpdate) ClearPort ¶
func (lu *ListenerUpdate) ClearPort() *ListenerUpdate
ClearPort clears the value of the "port" field.
func (*ListenerUpdate) ClearToken ¶
func (lu *ListenerUpdate) ClearToken() *ListenerUpdate
ClearToken clears the value of the "token" field.
func (*ListenerUpdate) Exec ¶
func (lu *ListenerUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ListenerUpdate) ExecX ¶
func (lu *ListenerUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ListenerUpdate) Mutation ¶
func (lu *ListenerUpdate) Mutation() *ListenerMutation
Mutation returns the ListenerMutation object of the builder.
func (*ListenerUpdate) RemoveBeacon ¶
func (lu *ListenerUpdate) RemoveBeacon(b ...*Beacon) *ListenerUpdate
RemoveBeacon removes "beacon" edges to Beacon entities.
func (*ListenerUpdate) RemoveBeaconIDs ¶
func (lu *ListenerUpdate) RemoveBeaconIDs(ids ...int) *ListenerUpdate
RemoveBeaconIDs removes the "beacon" edge to Beacon entities by IDs.
func (*ListenerUpdate) Save ¶
func (lu *ListenerUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ListenerUpdate) SaveX ¶
func (lu *ListenerUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ListenerUpdate) SetColor ¶
func (lu *ListenerUpdate) SetColor(u uint32) *ListenerUpdate
SetColor sets the "color" field.
func (*ListenerUpdate) SetDeletedAt ¶
func (lu *ListenerUpdate) SetDeletedAt(t time.Time) *ListenerUpdate
SetDeletedAt sets the "deleted_at" field.
func (*ListenerUpdate) SetIP ¶
func (lu *ListenerUpdate) SetIP(t types.Inet) *ListenerUpdate
SetIP sets the "ip" field.
func (*ListenerUpdate) SetLast ¶
func (lu *ListenerUpdate) SetLast(t time.Time) *ListenerUpdate
SetLast sets the "last" field.
func (*ListenerUpdate) SetName ¶
func (lu *ListenerUpdate) SetName(s string) *ListenerUpdate
SetName sets the "name" field.
func (*ListenerUpdate) SetNillableColor ¶
func (lu *ListenerUpdate) SetNillableColor(u *uint32) *ListenerUpdate
SetNillableColor sets the "color" field if the given value is not nil.
func (*ListenerUpdate) SetNillableDeletedAt ¶
func (lu *ListenerUpdate) SetNillableDeletedAt(t *time.Time) *ListenerUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ListenerUpdate) SetNillableIP ¶
func (lu *ListenerUpdate) SetNillableIP(t *types.Inet) *ListenerUpdate
SetNillableIP sets the "ip" field if the given value is not nil.
func (*ListenerUpdate) SetNillableLast ¶
func (lu *ListenerUpdate) SetNillableLast(t *time.Time) *ListenerUpdate
SetNillableLast sets the "last" field if the given value is not nil.
func (*ListenerUpdate) SetNillableName ¶
func (lu *ListenerUpdate) SetNillableName(s *string) *ListenerUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ListenerUpdate) SetNillableNote ¶
func (lu *ListenerUpdate) SetNillableNote(s *string) *ListenerUpdate
SetNillableNote sets the "note" field if the given value is not nil.
func (*ListenerUpdate) SetNillablePort ¶
func (lu *ListenerUpdate) SetNillablePort(u *uint16) *ListenerUpdate
SetNillablePort sets the "port" field if the given value is not nil.
func (*ListenerUpdate) SetNillableToken ¶
func (lu *ListenerUpdate) SetNillableToken(s *string) *ListenerUpdate
SetNillableToken sets the "token" field if the given value is not nil.
func (*ListenerUpdate) SetNote ¶
func (lu *ListenerUpdate) SetNote(s string) *ListenerUpdate
SetNote sets the "note" field.
func (*ListenerUpdate) SetPort ¶
func (lu *ListenerUpdate) SetPort(u uint16) *ListenerUpdate
SetPort sets the "port" field.
func (*ListenerUpdate) SetToken ¶
func (lu *ListenerUpdate) SetToken(s string) *ListenerUpdate
SetToken sets the "token" field.
func (*ListenerUpdate) SetUpdatedAt ¶
func (lu *ListenerUpdate) SetUpdatedAt(t time.Time) *ListenerUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ListenerUpdate) Where ¶
func (lu *ListenerUpdate) Where(ps ...predicate.Listener) *ListenerUpdate
Where appends a list predicates to the ListenerUpdate builder.
type ListenerUpdateOne ¶
type ListenerUpdateOne struct {
// contains filtered or unexported fields
}
ListenerUpdateOne is the builder for updating a single Listener entity.
func (*ListenerUpdateOne) AddBeacon ¶
func (luo *ListenerUpdateOne) AddBeacon(b ...*Beacon) *ListenerUpdateOne
AddBeacon adds the "beacon" edges to the Beacon entity.
func (*ListenerUpdateOne) AddBeaconIDs ¶
func (luo *ListenerUpdateOne) AddBeaconIDs(ids ...int) *ListenerUpdateOne
AddBeaconIDs adds the "beacon" edge to the Beacon entity by IDs.
func (*ListenerUpdateOne) AddColor ¶
func (luo *ListenerUpdateOne) AddColor(u int32) *ListenerUpdateOne
AddColor adds u to the "color" field.
func (*ListenerUpdateOne) AddPort ¶
func (luo *ListenerUpdateOne) AddPort(u int16) *ListenerUpdateOne
AddPort adds u to the "port" field.
func (*ListenerUpdateOne) ClearBeacon ¶
func (luo *ListenerUpdateOne) ClearBeacon() *ListenerUpdateOne
ClearBeacon clears all "beacon" edges to the Beacon entity.
func (*ListenerUpdateOne) ClearDeletedAt ¶
func (luo *ListenerUpdateOne) ClearDeletedAt() *ListenerUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*ListenerUpdateOne) ClearIP ¶
func (luo *ListenerUpdateOne) ClearIP() *ListenerUpdateOne
ClearIP clears the value of the "ip" field.
func (*ListenerUpdateOne) ClearName ¶
func (luo *ListenerUpdateOne) ClearName() *ListenerUpdateOne
ClearName clears the value of the "name" field.
func (*ListenerUpdateOne) ClearNote ¶
func (luo *ListenerUpdateOne) ClearNote() *ListenerUpdateOne
ClearNote clears the value of the "note" field.
func (*ListenerUpdateOne) ClearPort ¶
func (luo *ListenerUpdateOne) ClearPort() *ListenerUpdateOne
ClearPort clears the value of the "port" field.
func (*ListenerUpdateOne) ClearToken ¶
func (luo *ListenerUpdateOne) ClearToken() *ListenerUpdateOne
ClearToken clears the value of the "token" field.
func (*ListenerUpdateOne) Exec ¶
func (luo *ListenerUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ListenerUpdateOne) ExecX ¶
func (luo *ListenerUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ListenerUpdateOne) Mutation ¶
func (luo *ListenerUpdateOne) Mutation() *ListenerMutation
Mutation returns the ListenerMutation object of the builder.
func (*ListenerUpdateOne) RemoveBeacon ¶
func (luo *ListenerUpdateOne) RemoveBeacon(b ...*Beacon) *ListenerUpdateOne
RemoveBeacon removes "beacon" edges to Beacon entities.
func (*ListenerUpdateOne) RemoveBeaconIDs ¶
func (luo *ListenerUpdateOne) RemoveBeaconIDs(ids ...int) *ListenerUpdateOne
RemoveBeaconIDs removes the "beacon" edge to Beacon entities by IDs.
func (*ListenerUpdateOne) Save ¶
func (luo *ListenerUpdateOne) Save(ctx context.Context) (*Listener, error)
Save executes the query and returns the updated Listener entity.
func (*ListenerUpdateOne) SaveX ¶
func (luo *ListenerUpdateOne) SaveX(ctx context.Context) *Listener
SaveX is like Save, but panics if an error occurs.
func (*ListenerUpdateOne) Select ¶
func (luo *ListenerUpdateOne) Select(field string, fields ...string) *ListenerUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ListenerUpdateOne) SetColor ¶
func (luo *ListenerUpdateOne) SetColor(u uint32) *ListenerUpdateOne
SetColor sets the "color" field.
func (*ListenerUpdateOne) SetDeletedAt ¶
func (luo *ListenerUpdateOne) SetDeletedAt(t time.Time) *ListenerUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*ListenerUpdateOne) SetIP ¶
func (luo *ListenerUpdateOne) SetIP(t types.Inet) *ListenerUpdateOne
SetIP sets the "ip" field.
func (*ListenerUpdateOne) SetLast ¶
func (luo *ListenerUpdateOne) SetLast(t time.Time) *ListenerUpdateOne
SetLast sets the "last" field.
func (*ListenerUpdateOne) SetName ¶
func (luo *ListenerUpdateOne) SetName(s string) *ListenerUpdateOne
SetName sets the "name" field.
func (*ListenerUpdateOne) SetNillableColor ¶
func (luo *ListenerUpdateOne) SetNillableColor(u *uint32) *ListenerUpdateOne
SetNillableColor sets the "color" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableDeletedAt ¶
func (luo *ListenerUpdateOne) SetNillableDeletedAt(t *time.Time) *ListenerUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableIP ¶
func (luo *ListenerUpdateOne) SetNillableIP(t *types.Inet) *ListenerUpdateOne
SetNillableIP sets the "ip" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableLast ¶
func (luo *ListenerUpdateOne) SetNillableLast(t *time.Time) *ListenerUpdateOne
SetNillableLast sets the "last" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableName ¶
func (luo *ListenerUpdateOne) SetNillableName(s *string) *ListenerUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableNote ¶
func (luo *ListenerUpdateOne) SetNillableNote(s *string) *ListenerUpdateOne
SetNillableNote sets the "note" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillablePort ¶
func (luo *ListenerUpdateOne) SetNillablePort(u *uint16) *ListenerUpdateOne
SetNillablePort sets the "port" field if the given value is not nil.
func (*ListenerUpdateOne) SetNillableToken ¶
func (luo *ListenerUpdateOne) SetNillableToken(s *string) *ListenerUpdateOne
SetNillableToken sets the "token" field if the given value is not nil.
func (*ListenerUpdateOne) SetNote ¶
func (luo *ListenerUpdateOne) SetNote(s string) *ListenerUpdateOne
SetNote sets the "note" field.
func (*ListenerUpdateOne) SetPort ¶
func (luo *ListenerUpdateOne) SetPort(u uint16) *ListenerUpdateOne
SetPort sets the "port" field.
func (*ListenerUpdateOne) SetToken ¶
func (luo *ListenerUpdateOne) SetToken(s string) *ListenerUpdateOne
SetToken sets the "token" field.
func (*ListenerUpdateOne) SetUpdatedAt ¶
func (luo *ListenerUpdateOne) SetUpdatedAt(t time.Time) *ListenerUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ListenerUpdateOne) Where ¶
func (luo *ListenerUpdateOne) Where(ps ...predicate.Listener) *ListenerUpdateOne
Where appends a list predicates to the ListenerUpdate builder.
type Message ¶
type Message struct { // ID of the ent. ID int `json:"id,omitempty"` // id of task group Gid int `json:"gid,omitempty"` // type of message Type defaults.TaskMessage `json:"type,omitempty"` // message itself Message string `json:"message,omitempty"` // when message created CreatedAt time.Time `json:"created_at,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the MessageQuery when eager-loading is set. Edges MessageEdges `json:"edges"` // contains filtered or unexported fields }
Message is the model entity for the Message schema.
func (*Message) QueryGroup ¶
func (m *Message) QueryGroup() *GroupQuery
QueryGroup queries the "group" edge of the Message entity.
func (*Message) Unwrap ¶
Unwrap unwraps the Message entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Message) Update ¶
func (m *Message) Update() *MessageUpdateOne
Update returns a builder for updating this Message. Note that you need to call Message.Unwrap() before calling this method if this Message was returned from a transaction, and the transaction was committed or rolled back.
type MessageClient ¶
type MessageClient struct {
// contains filtered or unexported fields
}
MessageClient is a client for the Message schema.
func NewMessageClient ¶
func NewMessageClient(c config) *MessageClient
NewMessageClient returns a client for the Message from the given config.
func (*MessageClient) Create ¶
func (c *MessageClient) Create() *MessageCreate
Create returns a builder for creating a Message entity.
func (*MessageClient) CreateBulk ¶
func (c *MessageClient) CreateBulk(builders ...*MessageCreate) *MessageCreateBulk
CreateBulk returns a builder for creating a bulk of Message entities.
func (*MessageClient) Delete ¶
func (c *MessageClient) Delete() *MessageDelete
Delete returns a delete builder for Message.
func (*MessageClient) DeleteOne ¶
func (c *MessageClient) DeleteOne(m *Message) *MessageDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*MessageClient) DeleteOneID ¶
func (c *MessageClient) DeleteOneID(id int) *MessageDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*MessageClient) GetX ¶
func (c *MessageClient) GetX(ctx context.Context, id int) *Message
GetX is like Get, but panics if an error occurs.
func (*MessageClient) Hooks ¶
func (c *MessageClient) Hooks() []Hook
Hooks returns the client hooks.
func (*MessageClient) Intercept ¶
func (c *MessageClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `message.Intercept(f(g(h())))`.
func (*MessageClient) Interceptors ¶
func (c *MessageClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*MessageClient) MapCreateBulk ¶
func (c *MessageClient) MapCreateBulk(slice any, setFunc func(*MessageCreate, int)) *MessageCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*MessageClient) Query ¶
func (c *MessageClient) Query() *MessageQuery
Query returns a query builder for Message.
func (*MessageClient) QueryGroup ¶
func (c *MessageClient) QueryGroup(m *Message) *GroupQuery
QueryGroup queries the group edge of a Message.
func (*MessageClient) Update ¶
func (c *MessageClient) Update() *MessageUpdate
Update returns an update builder for Message.
func (*MessageClient) UpdateOne ¶
func (c *MessageClient) UpdateOne(m *Message) *MessageUpdateOne
UpdateOne returns an update builder for the given entity.
func (*MessageClient) UpdateOneID ¶
func (c *MessageClient) UpdateOneID(id int) *MessageUpdateOne
UpdateOneID returns an update builder for the given id.
func (*MessageClient) Use ¶
func (c *MessageClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `message.Hooks(f(g(h())))`.
type MessageCreate ¶
type MessageCreate struct {
// contains filtered or unexported fields
}
MessageCreate is the builder for creating a Message entity.
func (*MessageCreate) Exec ¶
func (mc *MessageCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageCreate) ExecX ¶
func (mc *MessageCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageCreate) Mutation ¶
func (mc *MessageCreate) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageCreate) Save ¶
func (mc *MessageCreate) Save(ctx context.Context) (*Message, error)
Save creates the Message in the database.
func (*MessageCreate) SaveX ¶
func (mc *MessageCreate) SaveX(ctx context.Context) *Message
SaveX calls Save and panics if Save returns an error.
func (*MessageCreate) SetCreatedAt ¶
func (mc *MessageCreate) SetCreatedAt(t time.Time) *MessageCreate
SetCreatedAt sets the "created_at" field.
func (*MessageCreate) SetGid ¶
func (mc *MessageCreate) SetGid(i int) *MessageCreate
SetGid sets the "gid" field.
func (*MessageCreate) SetGroup ¶
func (mc *MessageCreate) SetGroup(g *Group) *MessageCreate
SetGroup sets the "group" edge to the Group entity.
func (*MessageCreate) SetGroupID ¶
func (mc *MessageCreate) SetGroupID(id int) *MessageCreate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*MessageCreate) SetMessage ¶
func (mc *MessageCreate) SetMessage(s string) *MessageCreate
SetMessage sets the "message" field.
func (*MessageCreate) SetNillableCreatedAt ¶
func (mc *MessageCreate) SetNillableCreatedAt(t *time.Time) *MessageCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MessageCreate) SetType ¶
func (mc *MessageCreate) SetType(dm defaults.TaskMessage) *MessageCreate
SetType sets the "type" field.
type MessageCreateBulk ¶
type MessageCreateBulk struct {
// contains filtered or unexported fields
}
MessageCreateBulk is the builder for creating many Message entities in bulk.
func (*MessageCreateBulk) Exec ¶
func (mcb *MessageCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageCreateBulk) ExecX ¶
func (mcb *MessageCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type MessageDelete ¶
type MessageDelete struct {
// contains filtered or unexported fields
}
MessageDelete is the builder for deleting a Message entity.
func (*MessageDelete) Exec ¶
func (md *MessageDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*MessageDelete) ExecX ¶
func (md *MessageDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*MessageDelete) Where ¶
func (md *MessageDelete) Where(ps ...predicate.Message) *MessageDelete
Where appends a list predicates to the MessageDelete builder.
type MessageDeleteOne ¶
type MessageDeleteOne struct {
// contains filtered or unexported fields
}
MessageDeleteOne is the builder for deleting a single Message entity.
func (*MessageDeleteOne) Exec ¶
func (mdo *MessageDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*MessageDeleteOne) ExecX ¶
func (mdo *MessageDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageDeleteOne) Where ¶
func (mdo *MessageDeleteOne) Where(ps ...predicate.Message) *MessageDeleteOne
Where appends a list predicates to the MessageDelete builder.
type MessageEdges ¶
type MessageEdges struct { // Group holds the value of the group edge. Group *Group `json:"group,omitempty"` // contains filtered or unexported fields }
MessageEdges holds the relations/edges for other nodes in the graph.
func (MessageEdges) GroupOrErr ¶
func (e MessageEdges) GroupOrErr() (*Group, error)
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type MessageGroupBy ¶
type MessageGroupBy struct {
// contains filtered or unexported fields
}
MessageGroupBy is the group-by builder for Message entities.
func (*MessageGroupBy) Aggregate ¶
func (mgb *MessageGroupBy) Aggregate(fns ...AggregateFunc) *MessageGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*MessageGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MessageGroupBy) Scan ¶
func (mgb *MessageGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MessageGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MessageMutation ¶
type MessageMutation struct {
// contains filtered or unexported fields
}
MessageMutation represents an operation that mutates the Message nodes in the graph.
func (*MessageMutation) AddField ¶
func (m *MessageMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*MessageMutation) AddedEdges ¶
func (m *MessageMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*MessageMutation) AddedField ¶
func (m *MessageMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*MessageMutation) AddedFields ¶
func (m *MessageMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*MessageMutation) AddedIDs ¶
func (m *MessageMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*MessageMutation) ClearEdge ¶
func (m *MessageMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*MessageMutation) ClearField ¶
func (m *MessageMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*MessageMutation) ClearGroup ¶
func (m *MessageMutation) ClearGroup()
ClearGroup clears the "group" edge to the Group entity.
func (*MessageMutation) ClearedEdges ¶
func (m *MessageMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*MessageMutation) ClearedFields ¶
func (m *MessageMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (MessageMutation) Client ¶
func (m MessageMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*MessageMutation) CreatedAt ¶
func (m *MessageMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*MessageMutation) EdgeCleared ¶
func (m *MessageMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*MessageMutation) Field ¶
func (m *MessageMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*MessageMutation) FieldCleared ¶
func (m *MessageMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*MessageMutation) Fields ¶
func (m *MessageMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*MessageMutation) GetType ¶
func (m *MessageMutation) GetType() (r defaults.TaskMessage, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*MessageMutation) Gid ¶
func (m *MessageMutation) Gid() (r int, exists bool)
Gid returns the value of the "gid" field in the mutation.
func (*MessageMutation) GroupCleared ¶
func (m *MessageMutation) GroupCleared() bool
GroupCleared reports if the "group" edge to the Group entity was cleared.
func (*MessageMutation) GroupID ¶
func (m *MessageMutation) GroupID() (id int, exists bool)
GroupID returns the "group" edge ID in the mutation.
func (*MessageMutation) GroupIDs ¶
func (m *MessageMutation) GroupIDs() (ids []int)
GroupIDs returns the "group" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use GroupID instead. It exists only for internal usage by the builders.
func (*MessageMutation) ID ¶
func (m *MessageMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*MessageMutation) IDs ¶
func (m *MessageMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*MessageMutation) Message ¶
func (m *MessageMutation) Message() (r string, exists bool)
Message returns the value of the "message" field in the mutation.
func (*MessageMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*MessageMutation) OldGid ¶
func (m *MessageMutation) OldGid(ctx context.Context) (v int, err error)
OldGid returns the old "gid" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldMessage ¶
func (m *MessageMutation) OldMessage(ctx context.Context) (v string, err error)
OldMessage returns the old "message" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) OldType ¶
func (m *MessageMutation) OldType(ctx context.Context) (v defaults.TaskMessage, err error)
OldType returns the old "type" field's value of the Message entity. If the Message object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*MessageMutation) RemovedEdges ¶
func (m *MessageMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*MessageMutation) RemovedIDs ¶
func (m *MessageMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*MessageMutation) ResetCreatedAt ¶
func (m *MessageMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*MessageMutation) ResetEdge ¶
func (m *MessageMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*MessageMutation) ResetField ¶
func (m *MessageMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*MessageMutation) ResetGid ¶
func (m *MessageMutation) ResetGid()
ResetGid resets all changes to the "gid" field.
func (*MessageMutation) ResetGroup ¶
func (m *MessageMutation) ResetGroup()
ResetGroup resets all changes to the "group" edge.
func (*MessageMutation) ResetMessage ¶
func (m *MessageMutation) ResetMessage()
ResetMessage resets all changes to the "message" field.
func (*MessageMutation) ResetType ¶
func (m *MessageMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*MessageMutation) SetCreatedAt ¶
func (m *MessageMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*MessageMutation) SetField ¶
func (m *MessageMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*MessageMutation) SetGid ¶
func (m *MessageMutation) SetGid(i int)
SetGid sets the "gid" field.
func (*MessageMutation) SetGroupID ¶
func (m *MessageMutation) SetGroupID(id int)
SetGroupID sets the "group" edge to the Group entity by id.
func (*MessageMutation) SetMessage ¶
func (m *MessageMutation) SetMessage(s string)
SetMessage sets the "message" field.
func (*MessageMutation) SetOp ¶
func (m *MessageMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*MessageMutation) SetType ¶
func (m *MessageMutation) SetType(dm defaults.TaskMessage)
SetType sets the "type" field.
func (MessageMutation) Tx ¶
func (m MessageMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*MessageMutation) Type ¶
func (m *MessageMutation) Type() string
Type returns the node type of this mutation (Message).
func (*MessageMutation) Where ¶
func (m *MessageMutation) Where(ps ...predicate.Message)
Where appends a list predicates to the MessageMutation builder.
func (*MessageMutation) WhereP ¶
func (m *MessageMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the MessageMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type MessageQuery ¶
type MessageQuery struct {
// contains filtered or unexported fields
}
MessageQuery is the builder for querying Message entities.
func (*MessageQuery) Aggregate ¶
func (mq *MessageQuery) Aggregate(fns ...AggregateFunc) *MessageSelect
Aggregate returns a MessageSelect configured with the given aggregations.
func (*MessageQuery) All ¶
func (mq *MessageQuery) All(ctx context.Context) ([]*Message, error)
All executes the query and returns a list of Messages.
func (*MessageQuery) AllX ¶
func (mq *MessageQuery) AllX(ctx context.Context) []*Message
AllX is like All, but panics if an error occurs.
func (*MessageQuery) Clone ¶
func (mq *MessageQuery) Clone() *MessageQuery
Clone returns a duplicate of the MessageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*MessageQuery) Count ¶
func (mq *MessageQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*MessageQuery) CountX ¶
func (mq *MessageQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*MessageQuery) Exist ¶
func (mq *MessageQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*MessageQuery) ExistX ¶
func (mq *MessageQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*MessageQuery) First ¶
func (mq *MessageQuery) First(ctx context.Context) (*Message, error)
First returns the first Message entity from the query. Returns a *NotFoundError when no Message was found.
func (*MessageQuery) FirstID ¶
func (mq *MessageQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Message ID from the query. Returns a *NotFoundError when no Message ID was found.
func (*MessageQuery) FirstIDX ¶
func (mq *MessageQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*MessageQuery) FirstX ¶
func (mq *MessageQuery) FirstX(ctx context.Context) *Message
FirstX is like First, but panics if an error occurs.
func (*MessageQuery) ForShare ¶
func (mq *MessageQuery) ForShare(opts ...sql.LockOption) *MessageQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*MessageQuery) ForUpdate ¶
func (mq *MessageQuery) ForUpdate(opts ...sql.LockOption) *MessageQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*MessageQuery) GroupBy ¶
func (mq *MessageQuery) GroupBy(field string, fields ...string) *MessageGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Gid int `json:"gid,omitempty"` Count int `json:"count,omitempty"` } client.Message.Query(). GroupBy(message.FieldGid). Aggregate(ent.Count()). Scan(ctx, &v)
func (*MessageQuery) IDs ¶
func (mq *MessageQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Message IDs.
func (*MessageQuery) IDsX ¶
func (mq *MessageQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*MessageQuery) Limit ¶
func (mq *MessageQuery) Limit(limit int) *MessageQuery
Limit the number of records to be returned by this query.
func (*MessageQuery) Offset ¶
func (mq *MessageQuery) Offset(offset int) *MessageQuery
Offset to start from.
func (*MessageQuery) Only ¶
func (mq *MessageQuery) Only(ctx context.Context) (*Message, error)
Only returns a single Message entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Message entity is found. Returns a *NotFoundError when no Message entities are found.
func (*MessageQuery) OnlyID ¶
func (mq *MessageQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Message ID in the query. Returns a *NotSingularError when more than one Message ID is found. Returns a *NotFoundError when no entities are found.
func (*MessageQuery) OnlyIDX ¶
func (mq *MessageQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*MessageQuery) OnlyX ¶
func (mq *MessageQuery) OnlyX(ctx context.Context) *Message
OnlyX is like Only, but panics if an error occurs.
func (*MessageQuery) Order ¶
func (mq *MessageQuery) Order(o ...message.OrderOption) *MessageQuery
Order specifies how the records should be ordered.
func (*MessageQuery) QueryGroup ¶
func (mq *MessageQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the "group" edge.
func (*MessageQuery) Select ¶
func (mq *MessageQuery) Select(fields ...string) *MessageSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Gid int `json:"gid,omitempty"` } client.Message.Query(). Select(message.FieldGid). Scan(ctx, &v)
func (*MessageQuery) Unique ¶
func (mq *MessageQuery) Unique(unique bool) *MessageQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*MessageQuery) Where ¶
func (mq *MessageQuery) Where(ps ...predicate.Message) *MessageQuery
Where adds a new predicate for the MessageQuery builder.
func (*MessageQuery) WithGroup ¶
func (mq *MessageQuery) WithGroup(opts ...func(*GroupQuery)) *MessageQuery
WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
type MessageSelect ¶
type MessageSelect struct { *MessageQuery // contains filtered or unexported fields }
MessageSelect is the builder for selecting fields of Message entities.
func (*MessageSelect) Aggregate ¶
func (ms *MessageSelect) Aggregate(fns ...AggregateFunc) *MessageSelect
Aggregate adds the given aggregation functions to the selector query.
func (*MessageSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*MessageSelect) Scan ¶
func (ms *MessageSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*MessageSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type MessageUpdate ¶
type MessageUpdate struct {
// contains filtered or unexported fields
}
MessageUpdate is the builder for updating Message entities.
func (*MessageUpdate) ClearGroup ¶
func (mu *MessageUpdate) ClearGroup() *MessageUpdate
ClearGroup clears the "group" edge to the Group entity.
func (*MessageUpdate) Exec ¶
func (mu *MessageUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*MessageUpdate) ExecX ¶
func (mu *MessageUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpdate) Mutation ¶
func (mu *MessageUpdate) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageUpdate) Save ¶
func (mu *MessageUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*MessageUpdate) SaveX ¶
func (mu *MessageUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*MessageUpdate) SetCreatedAt ¶
func (mu *MessageUpdate) SetCreatedAt(t time.Time) *MessageUpdate
SetCreatedAt sets the "created_at" field.
func (*MessageUpdate) SetGid ¶
func (mu *MessageUpdate) SetGid(i int) *MessageUpdate
SetGid sets the "gid" field.
func (*MessageUpdate) SetGroup ¶
func (mu *MessageUpdate) SetGroup(g *Group) *MessageUpdate
SetGroup sets the "group" edge to the Group entity.
func (*MessageUpdate) SetGroupID ¶
func (mu *MessageUpdate) SetGroupID(id int) *MessageUpdate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*MessageUpdate) SetMessage ¶
func (mu *MessageUpdate) SetMessage(s string) *MessageUpdate
SetMessage sets the "message" field.
func (*MessageUpdate) SetNillableCreatedAt ¶
func (mu *MessageUpdate) SetNillableCreatedAt(t *time.Time) *MessageUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MessageUpdate) SetNillableGid ¶
func (mu *MessageUpdate) SetNillableGid(i *int) *MessageUpdate
SetNillableGid sets the "gid" field if the given value is not nil.
func (*MessageUpdate) SetNillableMessage ¶
func (mu *MessageUpdate) SetNillableMessage(s *string) *MessageUpdate
SetNillableMessage sets the "message" field if the given value is not nil.
func (*MessageUpdate) SetNillableType ¶
func (mu *MessageUpdate) SetNillableType(dm *defaults.TaskMessage) *MessageUpdate
SetNillableType sets the "type" field if the given value is not nil.
func (*MessageUpdate) SetType ¶
func (mu *MessageUpdate) SetType(dm defaults.TaskMessage) *MessageUpdate
SetType sets the "type" field.
func (*MessageUpdate) Where ¶
func (mu *MessageUpdate) Where(ps ...predicate.Message) *MessageUpdate
Where appends a list predicates to the MessageUpdate builder.
type MessageUpdateOne ¶
type MessageUpdateOne struct {
// contains filtered or unexported fields
}
MessageUpdateOne is the builder for updating a single Message entity.
func (*MessageUpdateOne) ClearGroup ¶
func (muo *MessageUpdateOne) ClearGroup() *MessageUpdateOne
ClearGroup clears the "group" edge to the Group entity.
func (*MessageUpdateOne) Exec ¶
func (muo *MessageUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*MessageUpdateOne) ExecX ¶
func (muo *MessageUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*MessageUpdateOne) Mutation ¶
func (muo *MessageUpdateOne) Mutation() *MessageMutation
Mutation returns the MessageMutation object of the builder.
func (*MessageUpdateOne) Save ¶
func (muo *MessageUpdateOne) Save(ctx context.Context) (*Message, error)
Save executes the query and returns the updated Message entity.
func (*MessageUpdateOne) SaveX ¶
func (muo *MessageUpdateOne) SaveX(ctx context.Context) *Message
SaveX is like Save, but panics if an error occurs.
func (*MessageUpdateOne) Select ¶
func (muo *MessageUpdateOne) Select(field string, fields ...string) *MessageUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*MessageUpdateOne) SetCreatedAt ¶
func (muo *MessageUpdateOne) SetCreatedAt(t time.Time) *MessageUpdateOne
SetCreatedAt sets the "created_at" field.
func (*MessageUpdateOne) SetGid ¶
func (muo *MessageUpdateOne) SetGid(i int) *MessageUpdateOne
SetGid sets the "gid" field.
func (*MessageUpdateOne) SetGroup ¶
func (muo *MessageUpdateOne) SetGroup(g *Group) *MessageUpdateOne
SetGroup sets the "group" edge to the Group entity.
func (*MessageUpdateOne) SetGroupID ¶
func (muo *MessageUpdateOne) SetGroupID(id int) *MessageUpdateOne
SetGroupID sets the "group" edge to the Group entity by ID.
func (*MessageUpdateOne) SetMessage ¶
func (muo *MessageUpdateOne) SetMessage(s string) *MessageUpdateOne
SetMessage sets the "message" field.
func (*MessageUpdateOne) SetNillableCreatedAt ¶
func (muo *MessageUpdateOne) SetNillableCreatedAt(t *time.Time) *MessageUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*MessageUpdateOne) SetNillableGid ¶
func (muo *MessageUpdateOne) SetNillableGid(i *int) *MessageUpdateOne
SetNillableGid sets the "gid" field if the given value is not nil.
func (*MessageUpdateOne) SetNillableMessage ¶
func (muo *MessageUpdateOne) SetNillableMessage(s *string) *MessageUpdateOne
SetNillableMessage sets the "message" field if the given value is not nil.
func (*MessageUpdateOne) SetNillableType ¶
func (muo *MessageUpdateOne) SetNillableType(dm *defaults.TaskMessage) *MessageUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*MessageUpdateOne) SetType ¶
func (muo *MessageUpdateOne) SetType(dm defaults.TaskMessage) *MessageUpdateOne
SetType sets the "type" field.
func (*MessageUpdateOne) Where ¶
func (muo *MessageUpdateOne) Where(ps ...predicate.Message) *MessageUpdateOne
Where appends a list predicates to the MessageUpdate builder.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type Operator ¶
type Operator struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // username of operator Username string `json:"username,omitempty"` // access token for operator Token string `json:"token,omitempty"` // color of entity Color uint32 `json:"color,omitempty"` // last activity of operator Last time.Time `json:"last,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the OperatorQuery when eager-loading is set. Edges OperatorEdges `json:"edges"` // contains filtered or unexported fields }
Operator is the model entity for the Operator schema.
func (*Operator) QueryGroup ¶
func (o *Operator) QueryGroup() *GroupQuery
QueryGroup queries the "group" edge of the Operator entity.
func (*Operator) Unwrap ¶
Unwrap unwraps the Operator entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Operator) Update ¶
func (o *Operator) Update() *OperatorUpdateOne
Update returns a builder for updating this Operator. Note that you need to call Operator.Unwrap() before calling this method if this Operator was returned from a transaction, and the transaction was committed or rolled back.
type OperatorClient ¶
type OperatorClient struct {
// contains filtered or unexported fields
}
OperatorClient is a client for the Operator schema.
func NewOperatorClient ¶
func NewOperatorClient(c config) *OperatorClient
NewOperatorClient returns a client for the Operator from the given config.
func (*OperatorClient) Create ¶
func (c *OperatorClient) Create() *OperatorCreate
Create returns a builder for creating a Operator entity.
func (*OperatorClient) CreateBulk ¶
func (c *OperatorClient) CreateBulk(builders ...*OperatorCreate) *OperatorCreateBulk
CreateBulk returns a builder for creating a bulk of Operator entities.
func (*OperatorClient) Delete ¶
func (c *OperatorClient) Delete() *OperatorDelete
Delete returns a delete builder for Operator.
func (*OperatorClient) DeleteOne ¶
func (c *OperatorClient) DeleteOne(o *Operator) *OperatorDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OperatorClient) DeleteOneID ¶
func (c *OperatorClient) DeleteOneID(id int) *OperatorDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OperatorClient) GetX ¶
func (c *OperatorClient) GetX(ctx context.Context, id int) *Operator
GetX is like Get, but panics if an error occurs.
func (*OperatorClient) Hooks ¶
func (c *OperatorClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OperatorClient) Intercept ¶
func (c *OperatorClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `operator.Intercept(f(g(h())))`.
func (*OperatorClient) Interceptors ¶
func (c *OperatorClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OperatorClient) MapCreateBulk ¶
func (c *OperatorClient) MapCreateBulk(slice any, setFunc func(*OperatorCreate, int)) *OperatorCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*OperatorClient) Query ¶
func (c *OperatorClient) Query() *OperatorQuery
Query returns a query builder for Operator.
func (*OperatorClient) QueryChat ¶
func (c *OperatorClient) QueryChat(o *Operator) *ChatQuery
QueryChat queries the chat edge of a Operator.
func (*OperatorClient) QueryGroup ¶
func (c *OperatorClient) QueryGroup(o *Operator) *GroupQuery
QueryGroup queries the group edge of a Operator.
func (*OperatorClient) Update ¶
func (c *OperatorClient) Update() *OperatorUpdate
Update returns an update builder for Operator.
func (*OperatorClient) UpdateOne ¶
func (c *OperatorClient) UpdateOne(o *Operator) *OperatorUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OperatorClient) UpdateOneID ¶
func (c *OperatorClient) UpdateOneID(id int) *OperatorUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OperatorClient) Use ¶
func (c *OperatorClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `operator.Hooks(f(g(h())))`.
type OperatorCreate ¶
type OperatorCreate struct {
// contains filtered or unexported fields
}
OperatorCreate is the builder for creating a Operator entity.
func (*OperatorCreate) AddChat ¶
func (oc *OperatorCreate) AddChat(c ...*Chat) *OperatorCreate
AddChat adds the "chat" edges to the Chat entity.
func (*OperatorCreate) AddChatIDs ¶
func (oc *OperatorCreate) AddChatIDs(ids ...int) *OperatorCreate
AddChatIDs adds the "chat" edge to the Chat entity by IDs.
func (*OperatorCreate) AddGroup ¶
func (oc *OperatorCreate) AddGroup(g ...*Group) *OperatorCreate
AddGroup adds the "group" edges to the Group entity.
func (*OperatorCreate) AddGroupIDs ¶
func (oc *OperatorCreate) AddGroupIDs(ids ...int) *OperatorCreate
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*OperatorCreate) Exec ¶
func (oc *OperatorCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorCreate) ExecX ¶
func (oc *OperatorCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorCreate) Mutation ¶
func (oc *OperatorCreate) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorCreate) Save ¶
func (oc *OperatorCreate) Save(ctx context.Context) (*Operator, error)
Save creates the Operator in the database.
func (*OperatorCreate) SaveX ¶
func (oc *OperatorCreate) SaveX(ctx context.Context) *Operator
SaveX calls Save and panics if Save returns an error.
func (*OperatorCreate) SetColor ¶
func (oc *OperatorCreate) SetColor(u uint32) *OperatorCreate
SetColor sets the "color" field.
func (*OperatorCreate) SetCreatedAt ¶
func (oc *OperatorCreate) SetCreatedAt(t time.Time) *OperatorCreate
SetCreatedAt sets the "created_at" field.
func (*OperatorCreate) SetDeletedAt ¶
func (oc *OperatorCreate) SetDeletedAt(t time.Time) *OperatorCreate
SetDeletedAt sets the "deleted_at" field.
func (*OperatorCreate) SetLast ¶
func (oc *OperatorCreate) SetLast(t time.Time) *OperatorCreate
SetLast sets the "last" field.
func (*OperatorCreate) SetNillableColor ¶
func (oc *OperatorCreate) SetNillableColor(u *uint32) *OperatorCreate
SetNillableColor sets the "color" field if the given value is not nil.
func (*OperatorCreate) SetNillableCreatedAt ¶
func (oc *OperatorCreate) SetNillableCreatedAt(t *time.Time) *OperatorCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OperatorCreate) SetNillableDeletedAt ¶
func (oc *OperatorCreate) SetNillableDeletedAt(t *time.Time) *OperatorCreate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OperatorCreate) SetNillableLast ¶
func (oc *OperatorCreate) SetNillableLast(t *time.Time) *OperatorCreate
SetNillableLast sets the "last" field if the given value is not nil.
func (*OperatorCreate) SetNillableToken ¶
func (oc *OperatorCreate) SetNillableToken(s *string) *OperatorCreate
SetNillableToken sets the "token" field if the given value is not nil.
func (*OperatorCreate) SetNillableUpdatedAt ¶
func (oc *OperatorCreate) SetNillableUpdatedAt(t *time.Time) *OperatorCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*OperatorCreate) SetToken ¶
func (oc *OperatorCreate) SetToken(s string) *OperatorCreate
SetToken sets the "token" field.
func (*OperatorCreate) SetUpdatedAt ¶
func (oc *OperatorCreate) SetUpdatedAt(t time.Time) *OperatorCreate
SetUpdatedAt sets the "updated_at" field.
func (*OperatorCreate) SetUsername ¶
func (oc *OperatorCreate) SetUsername(s string) *OperatorCreate
SetUsername sets the "username" field.
type OperatorCreateBulk ¶
type OperatorCreateBulk struct {
// contains filtered or unexported fields
}
OperatorCreateBulk is the builder for creating many Operator entities in bulk.
func (*OperatorCreateBulk) Exec ¶
func (ocb *OperatorCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorCreateBulk) ExecX ¶
func (ocb *OperatorCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type OperatorDelete ¶
type OperatorDelete struct {
// contains filtered or unexported fields
}
OperatorDelete is the builder for deleting a Operator entity.
func (*OperatorDelete) Exec ¶
func (od *OperatorDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OperatorDelete) ExecX ¶
func (od *OperatorDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OperatorDelete) Where ¶
func (od *OperatorDelete) Where(ps ...predicate.Operator) *OperatorDelete
Where appends a list predicates to the OperatorDelete builder.
type OperatorDeleteOne ¶
type OperatorDeleteOne struct {
// contains filtered or unexported fields
}
OperatorDeleteOne is the builder for deleting a single Operator entity.
func (*OperatorDeleteOne) Exec ¶
func (odo *OperatorDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OperatorDeleteOne) ExecX ¶
func (odo *OperatorDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorDeleteOne) Where ¶
func (odo *OperatorDeleteOne) Where(ps ...predicate.Operator) *OperatorDeleteOne
Where appends a list predicates to the OperatorDelete builder.
type OperatorEdges ¶
type OperatorEdges struct { // Chat holds the value of the chat edge. Chat []*Chat `json:"chat,omitempty"` // Group holds the value of the group edge. Group []*Group `json:"group,omitempty"` // contains filtered or unexported fields }
OperatorEdges holds the relations/edges for other nodes in the graph.
func (OperatorEdges) ChatOrErr ¶
func (e OperatorEdges) ChatOrErr() ([]*Chat, error)
ChatOrErr returns the Chat value or an error if the edge was not loaded in eager-loading.
func (OperatorEdges) GroupOrErr ¶
func (e OperatorEdges) GroupOrErr() ([]*Group, error)
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading.
type OperatorGroupBy ¶
type OperatorGroupBy struct {
// contains filtered or unexported fields
}
OperatorGroupBy is the group-by builder for Operator entities.
func (*OperatorGroupBy) Aggregate ¶
func (ogb *OperatorGroupBy) Aggregate(fns ...AggregateFunc) *OperatorGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OperatorGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OperatorGroupBy) Scan ¶
func (ogb *OperatorGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OperatorGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OperatorMutation ¶
type OperatorMutation struct {
// contains filtered or unexported fields
}
OperatorMutation represents an operation that mutates the Operator nodes in the graph.
func (*OperatorMutation) AddChatIDs ¶
func (m *OperatorMutation) AddChatIDs(ids ...int)
AddChatIDs adds the "chat" edge to the Chat entity by ids.
func (*OperatorMutation) AddColor ¶
func (m *OperatorMutation) AddColor(u int32)
AddColor adds u to the "color" field.
func (*OperatorMutation) AddField ¶
func (m *OperatorMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*OperatorMutation) AddGroupIDs ¶
func (m *OperatorMutation) AddGroupIDs(ids ...int)
AddGroupIDs adds the "group" edge to the Group entity by ids.
func (*OperatorMutation) AddedColor ¶
func (m *OperatorMutation) AddedColor() (r int32, exists bool)
AddedColor returns the value that was added to the "color" field in this mutation.
func (*OperatorMutation) AddedEdges ¶
func (m *OperatorMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OperatorMutation) AddedField ¶
func (m *OperatorMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*OperatorMutation) AddedFields ¶
func (m *OperatorMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OperatorMutation) AddedIDs ¶
func (m *OperatorMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OperatorMutation) ChatCleared ¶
func (m *OperatorMutation) ChatCleared() bool
ChatCleared reports if the "chat" edge to the Chat entity was cleared.
func (*OperatorMutation) ChatIDs ¶
func (m *OperatorMutation) ChatIDs() (ids []int)
ChatIDs returns the "chat" edge IDs in the mutation.
func (*OperatorMutation) ClearChat ¶
func (m *OperatorMutation) ClearChat()
ClearChat clears the "chat" edge to the Chat entity.
func (*OperatorMutation) ClearDeletedAt ¶
func (m *OperatorMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OperatorMutation) ClearEdge ¶
func (m *OperatorMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*OperatorMutation) ClearField ¶
func (m *OperatorMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*OperatorMutation) ClearGroup ¶
func (m *OperatorMutation) ClearGroup()
ClearGroup clears the "group" edge to the Group entity.
func (*OperatorMutation) ClearToken ¶
func (m *OperatorMutation) ClearToken()
ClearToken clears the value of the "token" field.
func (*OperatorMutation) ClearedEdges ¶
func (m *OperatorMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OperatorMutation) ClearedFields ¶
func (m *OperatorMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OperatorMutation) Client ¶
func (m OperatorMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*OperatorMutation) Color ¶
func (m *OperatorMutation) Color() (r uint32, exists bool)
Color returns the value of the "color" field in the mutation.
func (*OperatorMutation) CreatedAt ¶
func (m *OperatorMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OperatorMutation) DeletedAt ¶
func (m *OperatorMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*OperatorMutation) DeletedAtCleared ¶
func (m *OperatorMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*OperatorMutation) EdgeCleared ¶
func (m *OperatorMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OperatorMutation) Field ¶
func (m *OperatorMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*OperatorMutation) FieldCleared ¶
func (m *OperatorMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OperatorMutation) Fields ¶
func (m *OperatorMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*OperatorMutation) GroupCleared ¶
func (m *OperatorMutation) GroupCleared() bool
GroupCleared reports if the "group" edge to the Group entity was cleared.
func (*OperatorMutation) GroupIDs ¶
func (m *OperatorMutation) GroupIDs() (ids []int)
GroupIDs returns the "group" edge IDs in the mutation.
func (*OperatorMutation) ID ¶
func (m *OperatorMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*OperatorMutation) IDs ¶
func (m *OperatorMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OperatorMutation) Last ¶
func (m *OperatorMutation) Last() (r time.Time, exists bool)
Last returns the value of the "last" field in the mutation.
func (*OperatorMutation) OldColor ¶
func (m *OperatorMutation) OldColor(ctx context.Context) (v uint32, err error)
OldColor returns the old "color" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*OperatorMutation) OldLast ¶
OldLast returns the old "last" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldToken ¶
func (m *OperatorMutation) OldToken(ctx context.Context) (v string, err error)
OldToken returns the old "token" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) OldUsername ¶
func (m *OperatorMutation) OldUsername(ctx context.Context) (v string, err error)
OldUsername returns the old "username" field's value of the Operator entity. If the Operator object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OperatorMutation) RemoveChatIDs ¶
func (m *OperatorMutation) RemoveChatIDs(ids ...int)
RemoveChatIDs removes the "chat" edge to the Chat entity by IDs.
func (*OperatorMutation) RemoveGroupIDs ¶
func (m *OperatorMutation) RemoveGroupIDs(ids ...int)
RemoveGroupIDs removes the "group" edge to the Group entity by IDs.
func (*OperatorMutation) RemovedChatIDs ¶
func (m *OperatorMutation) RemovedChatIDs() (ids []int)
RemovedChat returns the removed IDs of the "chat" edge to the Chat entity.
func (*OperatorMutation) RemovedEdges ¶
func (m *OperatorMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OperatorMutation) RemovedGroupIDs ¶
func (m *OperatorMutation) RemovedGroupIDs() (ids []int)
RemovedGroup returns the removed IDs of the "group" edge to the Group entity.
func (*OperatorMutation) RemovedIDs ¶
func (m *OperatorMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*OperatorMutation) ResetChat ¶
func (m *OperatorMutation) ResetChat()
ResetChat resets all changes to the "chat" edge.
func (*OperatorMutation) ResetColor ¶
func (m *OperatorMutation) ResetColor()
ResetColor resets all changes to the "color" field.
func (*OperatorMutation) ResetCreatedAt ¶
func (m *OperatorMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OperatorMutation) ResetDeletedAt ¶
func (m *OperatorMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*OperatorMutation) ResetEdge ¶
func (m *OperatorMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*OperatorMutation) ResetField ¶
func (m *OperatorMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*OperatorMutation) ResetGroup ¶
func (m *OperatorMutation) ResetGroup()
ResetGroup resets all changes to the "group" edge.
func (*OperatorMutation) ResetLast ¶
func (m *OperatorMutation) ResetLast()
ResetLast resets all changes to the "last" field.
func (*OperatorMutation) ResetToken ¶
func (m *OperatorMutation) ResetToken()
ResetToken resets all changes to the "token" field.
func (*OperatorMutation) ResetUpdatedAt ¶
func (m *OperatorMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*OperatorMutation) ResetUsername ¶
func (m *OperatorMutation) ResetUsername()
ResetUsername resets all changes to the "username" field.
func (*OperatorMutation) SetColor ¶
func (m *OperatorMutation) SetColor(u uint32)
SetColor sets the "color" field.
func (*OperatorMutation) SetCreatedAt ¶
func (m *OperatorMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OperatorMutation) SetDeletedAt ¶
func (m *OperatorMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*OperatorMutation) SetField ¶
func (m *OperatorMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*OperatorMutation) SetLast ¶
func (m *OperatorMutation) SetLast(t time.Time)
SetLast sets the "last" field.
func (*OperatorMutation) SetOp ¶
func (m *OperatorMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OperatorMutation) SetToken ¶
func (m *OperatorMutation) SetToken(s string)
SetToken sets the "token" field.
func (*OperatorMutation) SetUpdatedAt ¶
func (m *OperatorMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*OperatorMutation) SetUsername ¶
func (m *OperatorMutation) SetUsername(s string)
SetUsername sets the "username" field.
func (*OperatorMutation) Token ¶
func (m *OperatorMutation) Token() (r string, exists bool)
Token returns the value of the "token" field in the mutation.
func (*OperatorMutation) TokenCleared ¶
func (m *OperatorMutation) TokenCleared() bool
TokenCleared returns if the "token" field was cleared in this mutation.
func (OperatorMutation) Tx ¶
func (m OperatorMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OperatorMutation) Type ¶
func (m *OperatorMutation) Type() string
Type returns the node type of this mutation (Operator).
func (*OperatorMutation) UpdatedAt ¶
func (m *OperatorMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*OperatorMutation) Username ¶
func (m *OperatorMutation) Username() (r string, exists bool)
Username returns the value of the "username" field in the mutation.
func (*OperatorMutation) Where ¶
func (m *OperatorMutation) Where(ps ...predicate.Operator)
Where appends a list predicates to the OperatorMutation builder.
func (*OperatorMutation) WhereP ¶
func (m *OperatorMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OperatorMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OperatorQuery ¶
type OperatorQuery struct {
// contains filtered or unexported fields
}
OperatorQuery is the builder for querying Operator entities.
func (*OperatorQuery) Aggregate ¶
func (oq *OperatorQuery) Aggregate(fns ...AggregateFunc) *OperatorSelect
Aggregate returns a OperatorSelect configured with the given aggregations.
func (*OperatorQuery) All ¶
func (oq *OperatorQuery) All(ctx context.Context) ([]*Operator, error)
All executes the query and returns a list of Operators.
func (*OperatorQuery) AllX ¶
func (oq *OperatorQuery) AllX(ctx context.Context) []*Operator
AllX is like All, but panics if an error occurs.
func (*OperatorQuery) Clone ¶
func (oq *OperatorQuery) Clone() *OperatorQuery
Clone returns a duplicate of the OperatorQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OperatorQuery) Count ¶
func (oq *OperatorQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OperatorQuery) CountX ¶
func (oq *OperatorQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OperatorQuery) Exist ¶
func (oq *OperatorQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OperatorQuery) ExistX ¶
func (oq *OperatorQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OperatorQuery) First ¶
func (oq *OperatorQuery) First(ctx context.Context) (*Operator, error)
First returns the first Operator entity from the query. Returns a *NotFoundError when no Operator was found.
func (*OperatorQuery) FirstID ¶
func (oq *OperatorQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Operator ID from the query. Returns a *NotFoundError when no Operator ID was found.
func (*OperatorQuery) FirstIDX ¶
func (oq *OperatorQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*OperatorQuery) FirstX ¶
func (oq *OperatorQuery) FirstX(ctx context.Context) *Operator
FirstX is like First, but panics if an error occurs.
func (*OperatorQuery) ForShare ¶
func (oq *OperatorQuery) ForShare(opts ...sql.LockOption) *OperatorQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*OperatorQuery) ForUpdate ¶
func (oq *OperatorQuery) ForUpdate(opts ...sql.LockOption) *OperatorQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*OperatorQuery) GroupBy ¶
func (oq *OperatorQuery) GroupBy(field string, fields ...string) *OperatorGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Operator.Query(). GroupBy(operator.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*OperatorQuery) IDs ¶
func (oq *OperatorQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Operator IDs.
func (*OperatorQuery) IDsX ¶
func (oq *OperatorQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*OperatorQuery) Limit ¶
func (oq *OperatorQuery) Limit(limit int) *OperatorQuery
Limit the number of records to be returned by this query.
func (*OperatorQuery) Offset ¶
func (oq *OperatorQuery) Offset(offset int) *OperatorQuery
Offset to start from.
func (*OperatorQuery) Only ¶
func (oq *OperatorQuery) Only(ctx context.Context) (*Operator, error)
Only returns a single Operator entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Operator entity is found. Returns a *NotFoundError when no Operator entities are found.
func (*OperatorQuery) OnlyID ¶
func (oq *OperatorQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Operator ID in the query. Returns a *NotSingularError when more than one Operator ID is found. Returns a *NotFoundError when no entities are found.
func (*OperatorQuery) OnlyIDX ¶
func (oq *OperatorQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OperatorQuery) OnlyX ¶
func (oq *OperatorQuery) OnlyX(ctx context.Context) *Operator
OnlyX is like Only, but panics if an error occurs.
func (*OperatorQuery) Order ¶
func (oq *OperatorQuery) Order(o ...operator.OrderOption) *OperatorQuery
Order specifies how the records should be ordered.
func (*OperatorQuery) QueryChat ¶
func (oq *OperatorQuery) QueryChat() *ChatQuery
QueryChat chains the current query on the "chat" edge.
func (*OperatorQuery) QueryGroup ¶
func (oq *OperatorQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the "group" edge.
func (*OperatorQuery) Select ¶
func (oq *OperatorQuery) Select(fields ...string) *OperatorSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Operator.Query(). Select(operator.FieldCreatedAt). Scan(ctx, &v)
func (*OperatorQuery) Unique ¶
func (oq *OperatorQuery) Unique(unique bool) *OperatorQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*OperatorQuery) Where ¶
func (oq *OperatorQuery) Where(ps ...predicate.Operator) *OperatorQuery
Where adds a new predicate for the OperatorQuery builder.
func (*OperatorQuery) WithChat ¶
func (oq *OperatorQuery) WithChat(opts ...func(*ChatQuery)) *OperatorQuery
WithChat tells the query-builder to eager-load the nodes that are connected to the "chat" edge. The optional arguments are used to configure the query builder of the edge.
func (*OperatorQuery) WithGroup ¶
func (oq *OperatorQuery) WithGroup(opts ...func(*GroupQuery)) *OperatorQuery
WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
type OperatorSelect ¶
type OperatorSelect struct { *OperatorQuery // contains filtered or unexported fields }
OperatorSelect is the builder for selecting fields of Operator entities.
func (*OperatorSelect) Aggregate ¶
func (os *OperatorSelect) Aggregate(fns ...AggregateFunc) *OperatorSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OperatorSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OperatorSelect) Scan ¶
func (os *OperatorSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OperatorSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OperatorUpdate ¶
type OperatorUpdate struct {
// contains filtered or unexported fields
}
OperatorUpdate is the builder for updating Operator entities.
func (*OperatorUpdate) AddChat ¶
func (ou *OperatorUpdate) AddChat(c ...*Chat) *OperatorUpdate
AddChat adds the "chat" edges to the Chat entity.
func (*OperatorUpdate) AddChatIDs ¶
func (ou *OperatorUpdate) AddChatIDs(ids ...int) *OperatorUpdate
AddChatIDs adds the "chat" edge to the Chat entity by IDs.
func (*OperatorUpdate) AddColor ¶
func (ou *OperatorUpdate) AddColor(u int32) *OperatorUpdate
AddColor adds u to the "color" field.
func (*OperatorUpdate) AddGroup ¶
func (ou *OperatorUpdate) AddGroup(g ...*Group) *OperatorUpdate
AddGroup adds the "group" edges to the Group entity.
func (*OperatorUpdate) AddGroupIDs ¶
func (ou *OperatorUpdate) AddGroupIDs(ids ...int) *OperatorUpdate
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*OperatorUpdate) ClearChat ¶
func (ou *OperatorUpdate) ClearChat() *OperatorUpdate
ClearChat clears all "chat" edges to the Chat entity.
func (*OperatorUpdate) ClearDeletedAt ¶
func (ou *OperatorUpdate) ClearDeletedAt() *OperatorUpdate
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OperatorUpdate) ClearGroup ¶
func (ou *OperatorUpdate) ClearGroup() *OperatorUpdate
ClearGroup clears all "group" edges to the Group entity.
func (*OperatorUpdate) ClearToken ¶
func (ou *OperatorUpdate) ClearToken() *OperatorUpdate
ClearToken clears the value of the "token" field.
func (*OperatorUpdate) Exec ¶
func (ou *OperatorUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OperatorUpdate) ExecX ¶
func (ou *OperatorUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorUpdate) Mutation ¶
func (ou *OperatorUpdate) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorUpdate) RemoveChat ¶
func (ou *OperatorUpdate) RemoveChat(c ...*Chat) *OperatorUpdate
RemoveChat removes "chat" edges to Chat entities.
func (*OperatorUpdate) RemoveChatIDs ¶
func (ou *OperatorUpdate) RemoveChatIDs(ids ...int) *OperatorUpdate
RemoveChatIDs removes the "chat" edge to Chat entities by IDs.
func (*OperatorUpdate) RemoveGroup ¶
func (ou *OperatorUpdate) RemoveGroup(g ...*Group) *OperatorUpdate
RemoveGroup removes "group" edges to Group entities.
func (*OperatorUpdate) RemoveGroupIDs ¶
func (ou *OperatorUpdate) RemoveGroupIDs(ids ...int) *OperatorUpdate
RemoveGroupIDs removes the "group" edge to Group entities by IDs.
func (*OperatorUpdate) Save ¶
func (ou *OperatorUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OperatorUpdate) SaveX ¶
func (ou *OperatorUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OperatorUpdate) SetColor ¶
func (ou *OperatorUpdate) SetColor(u uint32) *OperatorUpdate
SetColor sets the "color" field.
func (*OperatorUpdate) SetDeletedAt ¶
func (ou *OperatorUpdate) SetDeletedAt(t time.Time) *OperatorUpdate
SetDeletedAt sets the "deleted_at" field.
func (*OperatorUpdate) SetLast ¶
func (ou *OperatorUpdate) SetLast(t time.Time) *OperatorUpdate
SetLast sets the "last" field.
func (*OperatorUpdate) SetNillableColor ¶
func (ou *OperatorUpdate) SetNillableColor(u *uint32) *OperatorUpdate
SetNillableColor sets the "color" field if the given value is not nil.
func (*OperatorUpdate) SetNillableDeletedAt ¶
func (ou *OperatorUpdate) SetNillableDeletedAt(t *time.Time) *OperatorUpdate
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OperatorUpdate) SetNillableLast ¶
func (ou *OperatorUpdate) SetNillableLast(t *time.Time) *OperatorUpdate
SetNillableLast sets the "last" field if the given value is not nil.
func (*OperatorUpdate) SetNillableToken ¶
func (ou *OperatorUpdate) SetNillableToken(s *string) *OperatorUpdate
SetNillableToken sets the "token" field if the given value is not nil.
func (*OperatorUpdate) SetNillableUsername ¶
func (ou *OperatorUpdate) SetNillableUsername(s *string) *OperatorUpdate
SetNillableUsername sets the "username" field if the given value is not nil.
func (*OperatorUpdate) SetToken ¶
func (ou *OperatorUpdate) SetToken(s string) *OperatorUpdate
SetToken sets the "token" field.
func (*OperatorUpdate) SetUpdatedAt ¶
func (ou *OperatorUpdate) SetUpdatedAt(t time.Time) *OperatorUpdate
SetUpdatedAt sets the "updated_at" field.
func (*OperatorUpdate) SetUsername ¶
func (ou *OperatorUpdate) SetUsername(s string) *OperatorUpdate
SetUsername sets the "username" field.
func (*OperatorUpdate) Where ¶
func (ou *OperatorUpdate) Where(ps ...predicate.Operator) *OperatorUpdate
Where appends a list predicates to the OperatorUpdate builder.
type OperatorUpdateOne ¶
type OperatorUpdateOne struct {
// contains filtered or unexported fields
}
OperatorUpdateOne is the builder for updating a single Operator entity.
func (*OperatorUpdateOne) AddChat ¶
func (ouo *OperatorUpdateOne) AddChat(c ...*Chat) *OperatorUpdateOne
AddChat adds the "chat" edges to the Chat entity.
func (*OperatorUpdateOne) AddChatIDs ¶
func (ouo *OperatorUpdateOne) AddChatIDs(ids ...int) *OperatorUpdateOne
AddChatIDs adds the "chat" edge to the Chat entity by IDs.
func (*OperatorUpdateOne) AddColor ¶
func (ouo *OperatorUpdateOne) AddColor(u int32) *OperatorUpdateOne
AddColor adds u to the "color" field.
func (*OperatorUpdateOne) AddGroup ¶
func (ouo *OperatorUpdateOne) AddGroup(g ...*Group) *OperatorUpdateOne
AddGroup adds the "group" edges to the Group entity.
func (*OperatorUpdateOne) AddGroupIDs ¶
func (ouo *OperatorUpdateOne) AddGroupIDs(ids ...int) *OperatorUpdateOne
AddGroupIDs adds the "group" edge to the Group entity by IDs.
func (*OperatorUpdateOne) ClearChat ¶
func (ouo *OperatorUpdateOne) ClearChat() *OperatorUpdateOne
ClearChat clears all "chat" edges to the Chat entity.
func (*OperatorUpdateOne) ClearDeletedAt ¶
func (ouo *OperatorUpdateOne) ClearDeletedAt() *OperatorUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*OperatorUpdateOne) ClearGroup ¶
func (ouo *OperatorUpdateOne) ClearGroup() *OperatorUpdateOne
ClearGroup clears all "group" edges to the Group entity.
func (*OperatorUpdateOne) ClearToken ¶
func (ouo *OperatorUpdateOne) ClearToken() *OperatorUpdateOne
ClearToken clears the value of the "token" field.
func (*OperatorUpdateOne) Exec ¶
func (ouo *OperatorUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OperatorUpdateOne) ExecX ¶
func (ouo *OperatorUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OperatorUpdateOne) Mutation ¶
func (ouo *OperatorUpdateOne) Mutation() *OperatorMutation
Mutation returns the OperatorMutation object of the builder.
func (*OperatorUpdateOne) RemoveChat ¶
func (ouo *OperatorUpdateOne) RemoveChat(c ...*Chat) *OperatorUpdateOne
RemoveChat removes "chat" edges to Chat entities.
func (*OperatorUpdateOne) RemoveChatIDs ¶
func (ouo *OperatorUpdateOne) RemoveChatIDs(ids ...int) *OperatorUpdateOne
RemoveChatIDs removes the "chat" edge to Chat entities by IDs.
func (*OperatorUpdateOne) RemoveGroup ¶
func (ouo *OperatorUpdateOne) RemoveGroup(g ...*Group) *OperatorUpdateOne
RemoveGroup removes "group" edges to Group entities.
func (*OperatorUpdateOne) RemoveGroupIDs ¶
func (ouo *OperatorUpdateOne) RemoveGroupIDs(ids ...int) *OperatorUpdateOne
RemoveGroupIDs removes the "group" edge to Group entities by IDs.
func (*OperatorUpdateOne) Save ¶
func (ouo *OperatorUpdateOne) Save(ctx context.Context) (*Operator, error)
Save executes the query and returns the updated Operator entity.
func (*OperatorUpdateOne) SaveX ¶
func (ouo *OperatorUpdateOne) SaveX(ctx context.Context) *Operator
SaveX is like Save, but panics if an error occurs.
func (*OperatorUpdateOne) Select ¶
func (ouo *OperatorUpdateOne) Select(field string, fields ...string) *OperatorUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OperatorUpdateOne) SetColor ¶
func (ouo *OperatorUpdateOne) SetColor(u uint32) *OperatorUpdateOne
SetColor sets the "color" field.
func (*OperatorUpdateOne) SetDeletedAt ¶
func (ouo *OperatorUpdateOne) SetDeletedAt(t time.Time) *OperatorUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*OperatorUpdateOne) SetLast ¶
func (ouo *OperatorUpdateOne) SetLast(t time.Time) *OperatorUpdateOne
SetLast sets the "last" field.
func (*OperatorUpdateOne) SetNillableColor ¶
func (ouo *OperatorUpdateOne) SetNillableColor(u *uint32) *OperatorUpdateOne
SetNillableColor sets the "color" field if the given value is not nil.
func (*OperatorUpdateOne) SetNillableDeletedAt ¶
func (ouo *OperatorUpdateOne) SetNillableDeletedAt(t *time.Time) *OperatorUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*OperatorUpdateOne) SetNillableLast ¶
func (ouo *OperatorUpdateOne) SetNillableLast(t *time.Time) *OperatorUpdateOne
SetNillableLast sets the "last" field if the given value is not nil.
func (*OperatorUpdateOne) SetNillableToken ¶
func (ouo *OperatorUpdateOne) SetNillableToken(s *string) *OperatorUpdateOne
SetNillableToken sets the "token" field if the given value is not nil.
func (*OperatorUpdateOne) SetNillableUsername ¶
func (ouo *OperatorUpdateOne) SetNillableUsername(s *string) *OperatorUpdateOne
SetNillableUsername sets the "username" field if the given value is not nil.
func (*OperatorUpdateOne) SetToken ¶
func (ouo *OperatorUpdateOne) SetToken(s string) *OperatorUpdateOne
SetToken sets the "token" field.
func (*OperatorUpdateOne) SetUpdatedAt ¶
func (ouo *OperatorUpdateOne) SetUpdatedAt(t time.Time) *OperatorUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*OperatorUpdateOne) SetUsername ¶
func (ouo *OperatorUpdateOne) SetUsername(s string) *OperatorUpdateOne
SetUsername sets the "username" field.
func (*OperatorUpdateOne) Where ¶
func (ouo *OperatorUpdateOne) Where(ps ...predicate.Operator) *OperatorUpdateOne
Where appends a list predicates to the OperatorUpdate builder.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type Pki ¶
type Pki struct { // ID of the ent. ID int `json:"id,omitempty"` // Time when entity was created CreatedAt time.Time `json:"created_at,omitempty"` // Time when entity was updated UpdatedAt time.Time `json:"updated_at,omitempty"` // Time when entity was soft-deleted DeletedAt time.Time `json:"deleted_at,omitempty"` // type of certificate blob (ca, listener, operator) Type pki.Type `json:"type,omitempty"` // certificate key Key []byte `json:"key,omitempty"` // certificate chain Cert []byte `json:"cert,omitempty"` // contains filtered or unexported fields }
Pki is the model entity for the Pki schema.
func (*Pki) Unwrap ¶
Unwrap unwraps the Pki entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Pki) Update ¶
func (pk *Pki) Update() *PkiUpdateOne
Update returns a builder for updating this Pki. Note that you need to call Pki.Unwrap() before calling this method if this Pki was returned from a transaction, and the transaction was committed or rolled back.
type PkiClient ¶
type PkiClient struct {
// contains filtered or unexported fields
}
PkiClient is a client for the Pki schema.
func NewPkiClient ¶
func NewPkiClient(c config) *PkiClient
NewPkiClient returns a client for the Pki from the given config.
func (*PkiClient) CreateBulk ¶
func (c *PkiClient) CreateBulk(builders ...*PkiCreate) *PkiCreateBulk
CreateBulk returns a builder for creating a bulk of Pki entities.
func (*PkiClient) DeleteOne ¶
func (c *PkiClient) DeleteOne(pk *Pki) *PkiDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*PkiClient) DeleteOneID ¶
func (c *PkiClient) DeleteOneID(id int) *PkiDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*PkiClient) Intercept ¶
func (c *PkiClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `pki.Intercept(f(g(h())))`.
func (*PkiClient) Interceptors ¶
func (c *PkiClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*PkiClient) MapCreateBulk ¶
func (c *PkiClient) MapCreateBulk(slice any, setFunc func(*PkiCreate, int)) *PkiCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*PkiClient) UpdateOne ¶
func (c *PkiClient) UpdateOne(pk *Pki) *PkiUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PkiClient) UpdateOneID ¶
func (c *PkiClient) UpdateOneID(id int) *PkiUpdateOne
UpdateOneID returns an update builder for the given id.
type PkiCreate ¶
type PkiCreate struct {
// contains filtered or unexported fields
}
PkiCreate is the builder for creating a Pki entity.
func (*PkiCreate) Mutation ¶
func (pc *PkiCreate) Mutation() *PkiMutation
Mutation returns the PkiMutation object of the builder.
func (*PkiCreate) SetCreatedAt ¶
SetCreatedAt sets the "created_at" field.
func (*PkiCreate) SetDeletedAt ¶
SetDeletedAt sets the "deleted_at" field.
func (*PkiCreate) SetNillableCreatedAt ¶
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*PkiCreate) SetNillableDeletedAt ¶
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*PkiCreate) SetNillableUpdatedAt ¶
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
type PkiCreateBulk ¶
type PkiCreateBulk struct {
// contains filtered or unexported fields
}
PkiCreateBulk is the builder for creating many Pki entities in bulk.
func (*PkiCreateBulk) Exec ¶
func (pcb *PkiCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PkiCreateBulk) ExecX ¶
func (pcb *PkiCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type PkiDelete ¶
type PkiDelete struct {
// contains filtered or unexported fields
}
PkiDelete is the builder for deleting a Pki entity.
func (*PkiDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type PkiDeleteOne ¶
type PkiDeleteOne struct {
// contains filtered or unexported fields
}
PkiDeleteOne is the builder for deleting a single Pki entity.
func (*PkiDeleteOne) Exec ¶
func (pdo *PkiDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PkiDeleteOne) ExecX ¶
func (pdo *PkiDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PkiDeleteOne) Where ¶
func (pdo *PkiDeleteOne) Where(ps ...predicate.Pki) *PkiDeleteOne
Where appends a list predicates to the PkiDelete builder.
type PkiGroupBy ¶
type PkiGroupBy struct {
// contains filtered or unexported fields
}
PkiGroupBy is the group-by builder for Pki entities.
func (*PkiGroupBy) Aggregate ¶
func (pgb *PkiGroupBy) Aggregate(fns ...AggregateFunc) *PkiGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PkiGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PkiGroupBy) Scan ¶
func (pgb *PkiGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PkiGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PkiMutation ¶
type PkiMutation struct {
// contains filtered or unexported fields
}
PkiMutation represents an operation that mutates the Pki nodes in the graph.
func (*PkiMutation) AddField ¶
func (m *PkiMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*PkiMutation) AddedEdges ¶
func (m *PkiMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*PkiMutation) AddedField ¶
func (m *PkiMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*PkiMutation) AddedFields ¶
func (m *PkiMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*PkiMutation) AddedIDs ¶
func (m *PkiMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*PkiMutation) Cert ¶
func (m *PkiMutation) Cert() (r []byte, exists bool)
Cert returns the value of the "cert" field in the mutation.
func (*PkiMutation) ClearDeletedAt ¶
func (m *PkiMutation) ClearDeletedAt()
ClearDeletedAt clears the value of the "deleted_at" field.
func (*PkiMutation) ClearEdge ¶
func (m *PkiMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*PkiMutation) ClearField ¶
func (m *PkiMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*PkiMutation) ClearedEdges ¶
func (m *PkiMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*PkiMutation) ClearedFields ¶
func (m *PkiMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (PkiMutation) Client ¶
func (m PkiMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*PkiMutation) CreatedAt ¶
func (m *PkiMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*PkiMutation) DeletedAt ¶
func (m *PkiMutation) DeletedAt() (r time.Time, exists bool)
DeletedAt returns the value of the "deleted_at" field in the mutation.
func (*PkiMutation) DeletedAtCleared ¶
func (m *PkiMutation) DeletedAtCleared() bool
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
func (*PkiMutation) EdgeCleared ¶
func (m *PkiMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*PkiMutation) Field ¶
func (m *PkiMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*PkiMutation) FieldCleared ¶
func (m *PkiMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*PkiMutation) Fields ¶
func (m *PkiMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*PkiMutation) GetType ¶
func (m *PkiMutation) GetType() (r pki.Type, exists bool)
GetType returns the value of the "type" field in the mutation.
func (*PkiMutation) ID ¶
func (m *PkiMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*PkiMutation) IDs ¶
func (m *PkiMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*PkiMutation) Key ¶
func (m *PkiMutation) Key() (r []byte, exists bool)
Key returns the value of the "key" field in the mutation.
func (*PkiMutation) OldCert ¶
func (m *PkiMutation) OldCert(ctx context.Context) (v []byte, err error)
OldCert returns the old "cert" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) OldDeletedAt ¶
OldDeletedAt returns the old "deleted_at" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*PkiMutation) OldKey ¶
func (m *PkiMutation) OldKey(ctx context.Context) (v []byte, err error)
OldKey returns the old "key" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) OldType ¶
OldType returns the old "type" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Pki entity. If the Pki object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PkiMutation) RemovedEdges ¶
func (m *PkiMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*PkiMutation) RemovedIDs ¶
func (m *PkiMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*PkiMutation) ResetCert ¶
func (m *PkiMutation) ResetCert()
ResetCert resets all changes to the "cert" field.
func (*PkiMutation) ResetCreatedAt ¶
func (m *PkiMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*PkiMutation) ResetDeletedAt ¶
func (m *PkiMutation) ResetDeletedAt()
ResetDeletedAt resets all changes to the "deleted_at" field.
func (*PkiMutation) ResetEdge ¶
func (m *PkiMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*PkiMutation) ResetField ¶
func (m *PkiMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*PkiMutation) ResetKey ¶
func (m *PkiMutation) ResetKey()
ResetKey resets all changes to the "key" field.
func (*PkiMutation) ResetType ¶
func (m *PkiMutation) ResetType()
ResetType resets all changes to the "type" field.
func (*PkiMutation) ResetUpdatedAt ¶
func (m *PkiMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*PkiMutation) SetCert ¶
func (m *PkiMutation) SetCert(b []byte)
SetCert sets the "cert" field.
func (*PkiMutation) SetCreatedAt ¶
func (m *PkiMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*PkiMutation) SetDeletedAt ¶
func (m *PkiMutation) SetDeletedAt(t time.Time)
SetDeletedAt sets the "deleted_at" field.
func (*PkiMutation) SetField ¶
func (m *PkiMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*PkiMutation) SetOp ¶
func (m *PkiMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*PkiMutation) SetType ¶
func (m *PkiMutation) SetType(pk pki.Type)
SetType sets the "type" field.
func (*PkiMutation) SetUpdatedAt ¶
func (m *PkiMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (PkiMutation) Tx ¶
func (m PkiMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PkiMutation) Type ¶
func (m *PkiMutation) Type() string
Type returns the node type of this mutation (Pki).
func (*PkiMutation) UpdatedAt ¶
func (m *PkiMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*PkiMutation) Where ¶
func (m *PkiMutation) Where(ps ...predicate.Pki)
Where appends a list predicates to the PkiMutation builder.
func (*PkiMutation) WhereP ¶
func (m *PkiMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the PkiMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type PkiQuery ¶
type PkiQuery struct {
// contains filtered or unexported fields
}
PkiQuery is the builder for querying Pki entities.
func (*PkiQuery) Aggregate ¶
func (pq *PkiQuery) Aggregate(fns ...AggregateFunc) *PkiSelect
Aggregate returns a PkiSelect configured with the given aggregations.
func (*PkiQuery) Clone ¶
Clone returns a duplicate of the PkiQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PkiQuery) First ¶
First returns the first Pki entity from the query. Returns a *NotFoundError when no Pki was found.
func (*PkiQuery) FirstID ¶
FirstID returns the first Pki ID from the query. Returns a *NotFoundError when no Pki ID was found.
func (*PkiQuery) ForShare ¶
func (pq *PkiQuery) ForShare(opts ...sql.LockOption) *PkiQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*PkiQuery) ForUpdate ¶
func (pq *PkiQuery) ForUpdate(opts ...sql.LockOption) *PkiQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*PkiQuery) GroupBy ¶
func (pq *PkiQuery) GroupBy(field string, fields ...string) *PkiGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` Count int `json:"count,omitempty"` } client.Pki.Query(). GroupBy(pki.FieldCreatedAt). Aggregate(ent.Count()). Scan(ctx, &v)
func (*PkiQuery) Only ¶
Only returns a single Pki entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Pki entity is found. Returns a *NotFoundError when no Pki entities are found.
func (*PkiQuery) OnlyID ¶
OnlyID is like Only, but returns the only Pki ID in the query. Returns a *NotSingularError when more than one Pki ID is found. Returns a *NotFoundError when no entities are found.
func (*PkiQuery) Order ¶
func (pq *PkiQuery) Order(o ...pki.OrderOption) *PkiQuery
Order specifies how the records should be ordered.
func (*PkiQuery) Select ¶
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { CreatedAt time.Time `json:"created_at,omitempty"` } client.Pki.Query(). Select(pki.FieldCreatedAt). Scan(ctx, &v)
type PkiSelect ¶
type PkiSelect struct { *PkiQuery // contains filtered or unexported fields }
PkiSelect is the builder for selecting fields of Pki entities.
func (*PkiSelect) Aggregate ¶
func (ps *PkiSelect) Aggregate(fns ...AggregateFunc) *PkiSelect
Aggregate adds the given aggregation functions to the selector query.
func (*PkiSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PkiSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PkiSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PkiSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PkiSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PkiSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PkiSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PkiUpdate ¶
type PkiUpdate struct {
// contains filtered or unexported fields
}
PkiUpdate is the builder for updating Pki entities.
func (*PkiUpdate) ClearDeletedAt ¶
ClearDeletedAt clears the value of the "deleted_at" field.
func (*PkiUpdate) Mutation ¶
func (pu *PkiUpdate) Mutation() *PkiMutation
Mutation returns the PkiMutation object of the builder.
func (*PkiUpdate) Save ¶
Save executes the query and returns the number of nodes affected by the update operation.
func (*PkiUpdate) SetDeletedAt ¶
SetDeletedAt sets the "deleted_at" field.
func (*PkiUpdate) SetNillableDeletedAt ¶
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*PkiUpdate) SetNillableType ¶
SetNillableType sets the "type" field if the given value is not nil.
func (*PkiUpdate) SetUpdatedAt ¶
SetUpdatedAt sets the "updated_at" field.
type PkiUpdateOne ¶
type PkiUpdateOne struct {
// contains filtered or unexported fields
}
PkiUpdateOne is the builder for updating a single Pki entity.
func (*PkiUpdateOne) ClearDeletedAt ¶
func (puo *PkiUpdateOne) ClearDeletedAt() *PkiUpdateOne
ClearDeletedAt clears the value of the "deleted_at" field.
func (*PkiUpdateOne) Exec ¶
func (puo *PkiUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PkiUpdateOne) ExecX ¶
func (puo *PkiUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PkiUpdateOne) Mutation ¶
func (puo *PkiUpdateOne) Mutation() *PkiMutation
Mutation returns the PkiMutation object of the builder.
func (*PkiUpdateOne) Save ¶
func (puo *PkiUpdateOne) Save(ctx context.Context) (*Pki, error)
Save executes the query and returns the updated Pki entity.
func (*PkiUpdateOne) SaveX ¶
func (puo *PkiUpdateOne) SaveX(ctx context.Context) *Pki
SaveX is like Save, but panics if an error occurs.
func (*PkiUpdateOne) Select ¶
func (puo *PkiUpdateOne) Select(field string, fields ...string) *PkiUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*PkiUpdateOne) SetCert ¶
func (puo *PkiUpdateOne) SetCert(b []byte) *PkiUpdateOne
SetCert sets the "cert" field.
func (*PkiUpdateOne) SetDeletedAt ¶
func (puo *PkiUpdateOne) SetDeletedAt(t time.Time) *PkiUpdateOne
SetDeletedAt sets the "deleted_at" field.
func (*PkiUpdateOne) SetKey ¶
func (puo *PkiUpdateOne) SetKey(b []byte) *PkiUpdateOne
SetKey sets the "key" field.
func (*PkiUpdateOne) SetNillableDeletedAt ¶
func (puo *PkiUpdateOne) SetNillableDeletedAt(t *time.Time) *PkiUpdateOne
SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
func (*PkiUpdateOne) SetNillableType ¶
func (puo *PkiUpdateOne) SetNillableType(pk *pki.Type) *PkiUpdateOne
SetNillableType sets the "type" field if the given value is not nil.
func (*PkiUpdateOne) SetType ¶
func (puo *PkiUpdateOne) SetType(pk pki.Type) *PkiUpdateOne
SetType sets the "type" field.
func (*PkiUpdateOne) SetUpdatedAt ¶
func (puo *PkiUpdateOne) SetUpdatedAt(t time.Time) *PkiUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*PkiUpdateOne) Where ¶
func (puo *PkiUpdateOne) Where(ps ...predicate.Pki) *PkiUpdateOne
Where appends a list predicates to the PkiUpdate builder.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Task ¶
type Task struct { // ID of the ent. ID int `json:"id,omitempty"` // id of task group Gid int `json:"gid,omitempty"` // id of beacon Bid int `json:"bid,omitempty"` // time when task created CreatedAt time.Time `json:"created_at,omitempty"` // time when task pushed to the beacon PushedAt time.Time `json:"pushed_at,omitempty"` // time when task results received DoneAt time.Time `json:"done_at,omitempty"` // status of task Status defaults.TaskStatus `json:"status,omitempty"` // capability to execute Cap defaults.Capability `json:"cap,omitempty"` // capability arguments Args int `json:"args,omitempty"` // task output Output int `json:"output,omitempty"` // is output bigger than constant value OutputBig bool `json:"output_big,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the TaskQuery when eager-loading is set. Edges TaskEdges `json:"edges"` // contains filtered or unexported fields }
Task is the model entity for the Task schema.
func (*Task) QueryBeacon ¶
func (t *Task) QueryBeacon() *BeaconQuery
QueryBeacon queries the "beacon" edge of the Task entity.
func (*Task) QueryBlobberArgs ¶
func (t *Task) QueryBlobberArgs() *BlobberQuery
QueryBlobberArgs queries the "blobber_args" edge of the Task entity.
func (*Task) QueryBlobberOutput ¶
func (t *Task) QueryBlobberOutput() *BlobberQuery
QueryBlobberOutput queries the "blobber_output" edge of the Task entity.
func (*Task) QueryGroup ¶
func (t *Task) QueryGroup() *GroupQuery
QueryGroup queries the "group" edge of the Task entity.
func (*Task) Unwrap ¶
Unwrap unwraps the Task entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*Task) Update ¶
func (t *Task) Update() *TaskUpdateOne
Update returns a builder for updating this Task. Note that you need to call Task.Unwrap() before calling this method if this Task was returned from a transaction, and the transaction was committed or rolled back.
type TaskClient ¶
type TaskClient struct {
// contains filtered or unexported fields
}
TaskClient is a client for the Task schema.
func NewTaskClient ¶
func NewTaskClient(c config) *TaskClient
NewTaskClient returns a client for the Task from the given config.
func (*TaskClient) Create ¶
func (c *TaskClient) Create() *TaskCreate
Create returns a builder for creating a Task entity.
func (*TaskClient) CreateBulk ¶
func (c *TaskClient) CreateBulk(builders ...*TaskCreate) *TaskCreateBulk
CreateBulk returns a builder for creating a bulk of Task entities.
func (*TaskClient) Delete ¶
func (c *TaskClient) Delete() *TaskDelete
Delete returns a delete builder for Task.
func (*TaskClient) DeleteOne ¶
func (c *TaskClient) DeleteOne(t *Task) *TaskDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TaskClient) DeleteOneID ¶
func (c *TaskClient) DeleteOneID(id int) *TaskDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TaskClient) GetX ¶
func (c *TaskClient) GetX(ctx context.Context, id int) *Task
GetX is like Get, but panics if an error occurs.
func (*TaskClient) Intercept ¶
func (c *TaskClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `task.Intercept(f(g(h())))`.
func (*TaskClient) Interceptors ¶
func (c *TaskClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TaskClient) MapCreateBulk ¶
func (c *TaskClient) MapCreateBulk(slice any, setFunc func(*TaskCreate, int)) *TaskCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*TaskClient) Query ¶
func (c *TaskClient) Query() *TaskQuery
Query returns a query builder for Task.
func (*TaskClient) QueryBeacon ¶
func (c *TaskClient) QueryBeacon(t *Task) *BeaconQuery
QueryBeacon queries the beacon edge of a Task.
func (*TaskClient) QueryBlobberArgs ¶
func (c *TaskClient) QueryBlobberArgs(t *Task) *BlobberQuery
QueryBlobberArgs queries the blobber_args edge of a Task.
func (*TaskClient) QueryBlobberOutput ¶
func (c *TaskClient) QueryBlobberOutput(t *Task) *BlobberQuery
QueryBlobberOutput queries the blobber_output edge of a Task.
func (*TaskClient) QueryGroup ¶
func (c *TaskClient) QueryGroup(t *Task) *GroupQuery
QueryGroup queries the group edge of a Task.
func (*TaskClient) Update ¶
func (c *TaskClient) Update() *TaskUpdate
Update returns an update builder for Task.
func (*TaskClient) UpdateOne ¶
func (c *TaskClient) UpdateOne(t *Task) *TaskUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TaskClient) UpdateOneID ¶
func (c *TaskClient) UpdateOneID(id int) *TaskUpdateOne
UpdateOneID returns an update builder for the given id.
func (*TaskClient) Use ¶
func (c *TaskClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `task.Hooks(f(g(h())))`.
type TaskCreate ¶
type TaskCreate struct {
// contains filtered or unexported fields
}
TaskCreate is the builder for creating a Task entity.
func (*TaskCreate) Exec ¶
func (tc *TaskCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreate) ExecX ¶
func (tc *TaskCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskCreate) Mutation ¶
func (tc *TaskCreate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskCreate) Save ¶
func (tc *TaskCreate) Save(ctx context.Context) (*Task, error)
Save creates the Task in the database.
func (*TaskCreate) SaveX ¶
func (tc *TaskCreate) SaveX(ctx context.Context) *Task
SaveX calls Save and panics if Save returns an error.
func (*TaskCreate) SetArgs ¶
func (tc *TaskCreate) SetArgs(i int) *TaskCreate
SetArgs sets the "args" field.
func (*TaskCreate) SetBeacon ¶
func (tc *TaskCreate) SetBeacon(b *Beacon) *TaskCreate
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*TaskCreate) SetBeaconID ¶
func (tc *TaskCreate) SetBeaconID(id int) *TaskCreate
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*TaskCreate) SetBid ¶
func (tc *TaskCreate) SetBid(i int) *TaskCreate
SetBid sets the "bid" field.
func (*TaskCreate) SetBlobberArgs ¶
func (tc *TaskCreate) SetBlobberArgs(b *Blobber) *TaskCreate
SetBlobberArgs sets the "blobber_args" edge to the Blobber entity.
func (*TaskCreate) SetBlobberArgsID ¶
func (tc *TaskCreate) SetBlobberArgsID(id int) *TaskCreate
SetBlobberArgsID sets the "blobber_args" edge to the Blobber entity by ID.
func (*TaskCreate) SetBlobberOutput ¶
func (tc *TaskCreate) SetBlobberOutput(b *Blobber) *TaskCreate
SetBlobberOutput sets the "blobber_output" edge to the Blobber entity.
func (*TaskCreate) SetBlobberOutputID ¶
func (tc *TaskCreate) SetBlobberOutputID(id int) *TaskCreate
SetBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID.
func (*TaskCreate) SetCap ¶
func (tc *TaskCreate) SetCap(d defaults.Capability) *TaskCreate
SetCap sets the "cap" field.
func (*TaskCreate) SetCreatedAt ¶
func (tc *TaskCreate) SetCreatedAt(t time.Time) *TaskCreate
SetCreatedAt sets the "created_at" field.
func (*TaskCreate) SetDoneAt ¶
func (tc *TaskCreate) SetDoneAt(t time.Time) *TaskCreate
SetDoneAt sets the "done_at" field.
func (*TaskCreate) SetGid ¶
func (tc *TaskCreate) SetGid(i int) *TaskCreate
SetGid sets the "gid" field.
func (*TaskCreate) SetGroup ¶
func (tc *TaskCreate) SetGroup(g *Group) *TaskCreate
SetGroup sets the "group" edge to the Group entity.
func (*TaskCreate) SetGroupID ¶
func (tc *TaskCreate) SetGroupID(id int) *TaskCreate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*TaskCreate) SetNillableBlobberOutputID ¶
func (tc *TaskCreate) SetNillableBlobberOutputID(id *int) *TaskCreate
SetNillableBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID if the given value is not nil.
func (*TaskCreate) SetNillableCreatedAt ¶
func (tc *TaskCreate) SetNillableCreatedAt(t *time.Time) *TaskCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskCreate) SetNillableDoneAt ¶
func (tc *TaskCreate) SetNillableDoneAt(t *time.Time) *TaskCreate
SetNillableDoneAt sets the "done_at" field if the given value is not nil.
func (*TaskCreate) SetNillableOutput ¶
func (tc *TaskCreate) SetNillableOutput(i *int) *TaskCreate
SetNillableOutput sets the "output" field if the given value is not nil.
func (*TaskCreate) SetNillableOutputBig ¶
func (tc *TaskCreate) SetNillableOutputBig(b *bool) *TaskCreate
SetNillableOutputBig sets the "output_big" field if the given value is not nil.
func (*TaskCreate) SetNillablePushedAt ¶
func (tc *TaskCreate) SetNillablePushedAt(t *time.Time) *TaskCreate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*TaskCreate) SetOutput ¶
func (tc *TaskCreate) SetOutput(i int) *TaskCreate
SetOutput sets the "output" field.
func (*TaskCreate) SetOutputBig ¶
func (tc *TaskCreate) SetOutputBig(b bool) *TaskCreate
SetOutputBig sets the "output_big" field.
func (*TaskCreate) SetPushedAt ¶
func (tc *TaskCreate) SetPushedAt(t time.Time) *TaskCreate
SetPushedAt sets the "pushed_at" field.
func (*TaskCreate) SetStatus ¶
func (tc *TaskCreate) SetStatus(ds defaults.TaskStatus) *TaskCreate
SetStatus sets the "status" field.
type TaskCreateBulk ¶
type TaskCreateBulk struct {
// contains filtered or unexported fields
}
TaskCreateBulk is the builder for creating many Task entities in bulk.
func (*TaskCreateBulk) Exec ¶
func (tcb *TaskCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskCreateBulk) ExecX ¶
func (tcb *TaskCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type TaskDelete ¶
type TaskDelete struct {
// contains filtered or unexported fields
}
TaskDelete is the builder for deleting a Task entity.
func (*TaskDelete) Exec ¶
func (td *TaskDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*TaskDelete) ExecX ¶
func (td *TaskDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*TaskDelete) Where ¶
func (td *TaskDelete) Where(ps ...predicate.Task) *TaskDelete
Where appends a list predicates to the TaskDelete builder.
type TaskDeleteOne ¶
type TaskDeleteOne struct {
// contains filtered or unexported fields
}
TaskDeleteOne is the builder for deleting a single Task entity.
func (*TaskDeleteOne) Exec ¶
func (tdo *TaskDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TaskDeleteOne) ExecX ¶
func (tdo *TaskDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskDeleteOne) Where ¶
func (tdo *TaskDeleteOne) Where(ps ...predicate.Task) *TaskDeleteOne
Where appends a list predicates to the TaskDelete builder.
type TaskEdges ¶
type TaskEdges struct { // Group holds the value of the group edge. Group *Group `json:"group,omitempty"` // Beacon holds the value of the beacon edge. Beacon *Beacon `json:"beacon,omitempty"` // BlobberArgs holds the value of the blobber_args edge. BlobberArgs *Blobber `json:"blobber_args,omitempty"` // BlobberOutput holds the value of the blobber_output edge. BlobberOutput *Blobber `json:"blobber_output,omitempty"` // contains filtered or unexported fields }
TaskEdges holds the relations/edges for other nodes in the graph.
func (TaskEdges) BeaconOrErr ¶
BeaconOrErr returns the Beacon value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (TaskEdges) BlobberArgsOrErr ¶
BlobberArgsOrErr returns the BlobberArgs value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (TaskEdges) BlobberOutputOrErr ¶
BlobberOutputOrErr returns the BlobberOutput value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (TaskEdges) GroupOrErr ¶
GroupOrErr returns the Group value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type TaskGroupBy ¶
type TaskGroupBy struct {
// contains filtered or unexported fields
}
TaskGroupBy is the group-by builder for Task entities.
func (*TaskGroupBy) Aggregate ¶
func (tgb *TaskGroupBy) Aggregate(fns ...AggregateFunc) *TaskGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TaskGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TaskGroupBy) Scan ¶
func (tgb *TaskGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TaskGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TaskMutation ¶
type TaskMutation struct {
// contains filtered or unexported fields
}
TaskMutation represents an operation that mutates the Task nodes in the graph.
func (*TaskMutation) AddField ¶
func (m *TaskMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TaskMutation) AddedEdges ¶
func (m *TaskMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TaskMutation) AddedField ¶
func (m *TaskMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TaskMutation) AddedFields ¶
func (m *TaskMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TaskMutation) AddedIDs ¶
func (m *TaskMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TaskMutation) Args ¶
func (m *TaskMutation) Args() (r int, exists bool)
Args returns the value of the "args" field in the mutation.
func (*TaskMutation) BeaconCleared ¶
func (m *TaskMutation) BeaconCleared() bool
BeaconCleared reports if the "beacon" edge to the Beacon entity was cleared.
func (*TaskMutation) BeaconID ¶
func (m *TaskMutation) BeaconID() (id int, exists bool)
BeaconID returns the "beacon" edge ID in the mutation.
func (*TaskMutation) BeaconIDs ¶
func (m *TaskMutation) BeaconIDs() (ids []int)
BeaconIDs returns the "beacon" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BeaconID instead. It exists only for internal usage by the builders.
func (*TaskMutation) Bid ¶
func (m *TaskMutation) Bid() (r int, exists bool)
Bid returns the value of the "bid" field in the mutation.
func (*TaskMutation) BlobberArgsCleared ¶
func (m *TaskMutation) BlobberArgsCleared() bool
BlobberArgsCleared reports if the "blobber_args" edge to the Blobber entity was cleared.
func (*TaskMutation) BlobberArgsID ¶
func (m *TaskMutation) BlobberArgsID() (id int, exists bool)
BlobberArgsID returns the "blobber_args" edge ID in the mutation.
func (*TaskMutation) BlobberArgsIDs ¶
func (m *TaskMutation) BlobberArgsIDs() (ids []int)
BlobberArgsIDs returns the "blobber_args" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BlobberArgsID instead. It exists only for internal usage by the builders.
func (*TaskMutation) BlobberOutputCleared ¶
func (m *TaskMutation) BlobberOutputCleared() bool
BlobberOutputCleared reports if the "blobber_output" edge to the Blobber entity was cleared.
func (*TaskMutation) BlobberOutputID ¶
func (m *TaskMutation) BlobberOutputID() (id int, exists bool)
BlobberOutputID returns the "blobber_output" edge ID in the mutation.
func (*TaskMutation) BlobberOutputIDs ¶
func (m *TaskMutation) BlobberOutputIDs() (ids []int)
BlobberOutputIDs returns the "blobber_output" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use BlobberOutputID instead. It exists only for internal usage by the builders.
func (*TaskMutation) Cap ¶
func (m *TaskMutation) Cap() (r defaults.Capability, exists bool)
Cap returns the value of the "cap" field in the mutation.
func (*TaskMutation) ClearBeacon ¶
func (m *TaskMutation) ClearBeacon()
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*TaskMutation) ClearBlobberArgs ¶
func (m *TaskMutation) ClearBlobberArgs()
ClearBlobberArgs clears the "blobber_args" edge to the Blobber entity.
func (*TaskMutation) ClearBlobberOutput ¶
func (m *TaskMutation) ClearBlobberOutput()
ClearBlobberOutput clears the "blobber_output" edge to the Blobber entity.
func (*TaskMutation) ClearDoneAt ¶
func (m *TaskMutation) ClearDoneAt()
ClearDoneAt clears the value of the "done_at" field.
func (*TaskMutation) ClearEdge ¶
func (m *TaskMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*TaskMutation) ClearField ¶
func (m *TaskMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*TaskMutation) ClearGroup ¶
func (m *TaskMutation) ClearGroup()
ClearGroup clears the "group" edge to the Group entity.
func (*TaskMutation) ClearOutput ¶
func (m *TaskMutation) ClearOutput()
ClearOutput clears the value of the "output" field.
func (*TaskMutation) ClearOutputBig ¶
func (m *TaskMutation) ClearOutputBig()
ClearOutputBig clears the value of the "output_big" field.
func (*TaskMutation) ClearPushedAt ¶
func (m *TaskMutation) ClearPushedAt()
ClearPushedAt clears the value of the "pushed_at" field.
func (*TaskMutation) ClearedEdges ¶
func (m *TaskMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TaskMutation) ClearedFields ¶
func (m *TaskMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TaskMutation) Client ¶
func (m TaskMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*TaskMutation) CreatedAt ¶
func (m *TaskMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*TaskMutation) DoneAt ¶
func (m *TaskMutation) DoneAt() (r time.Time, exists bool)
DoneAt returns the value of the "done_at" field in the mutation.
func (*TaskMutation) DoneAtCleared ¶
func (m *TaskMutation) DoneAtCleared() bool
DoneAtCleared returns if the "done_at" field was cleared in this mutation.
func (*TaskMutation) EdgeCleared ¶
func (m *TaskMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TaskMutation) Field ¶
func (m *TaskMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*TaskMutation) FieldCleared ¶
func (m *TaskMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TaskMutation) Fields ¶
func (m *TaskMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*TaskMutation) Gid ¶
func (m *TaskMutation) Gid() (r int, exists bool)
Gid returns the value of the "gid" field in the mutation.
func (*TaskMutation) GroupCleared ¶
func (m *TaskMutation) GroupCleared() bool
GroupCleared reports if the "group" edge to the Group entity was cleared.
func (*TaskMutation) GroupID ¶
func (m *TaskMutation) GroupID() (id int, exists bool)
GroupID returns the "group" edge ID in the mutation.
func (*TaskMutation) GroupIDs ¶
func (m *TaskMutation) GroupIDs() (ids []int)
GroupIDs returns the "group" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use GroupID instead. It exists only for internal usage by the builders.
func (*TaskMutation) ID ¶
func (m *TaskMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*TaskMutation) IDs ¶
func (m *TaskMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*TaskMutation) OldArgs ¶
func (m *TaskMutation) OldArgs(ctx context.Context) (v int, err error)
OldArgs returns the old "args" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldBid ¶
func (m *TaskMutation) OldBid(ctx context.Context) (v int, err error)
OldBid returns the old "bid" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldCap ¶
func (m *TaskMutation) OldCap(ctx context.Context) (v defaults.Capability, err error)
OldCap returns the old "cap" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldDoneAt ¶
OldDoneAt returns the old "done_at" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*TaskMutation) OldGid ¶
func (m *TaskMutation) OldGid(ctx context.Context) (v int, err error)
OldGid returns the old "gid" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldOutput ¶
func (m *TaskMutation) OldOutput(ctx context.Context) (v int, err error)
OldOutput returns the old "output" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldOutputBig ¶
func (m *TaskMutation) OldOutputBig(ctx context.Context) (v bool, err error)
OldOutputBig returns the old "output_big" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldPushedAt ¶
OldPushedAt returns the old "pushed_at" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) OldStatus ¶
func (m *TaskMutation) OldStatus(ctx context.Context) (v defaults.TaskStatus, err error)
OldStatus returns the old "status" field's value of the Task entity. If the Task object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TaskMutation) Output ¶
func (m *TaskMutation) Output() (r int, exists bool)
Output returns the value of the "output" field in the mutation.
func (*TaskMutation) OutputBig ¶
func (m *TaskMutation) OutputBig() (r bool, exists bool)
OutputBig returns the value of the "output_big" field in the mutation.
func (*TaskMutation) OutputBigCleared ¶
func (m *TaskMutation) OutputBigCleared() bool
OutputBigCleared returns if the "output_big" field was cleared in this mutation.
func (*TaskMutation) OutputCleared ¶
func (m *TaskMutation) OutputCleared() bool
OutputCleared returns if the "output" field was cleared in this mutation.
func (*TaskMutation) PushedAt ¶
func (m *TaskMutation) PushedAt() (r time.Time, exists bool)
PushedAt returns the value of the "pushed_at" field in the mutation.
func (*TaskMutation) PushedAtCleared ¶
func (m *TaskMutation) PushedAtCleared() bool
PushedAtCleared returns if the "pushed_at" field was cleared in this mutation.
func (*TaskMutation) RemovedEdges ¶
func (m *TaskMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TaskMutation) RemovedIDs ¶
func (m *TaskMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*TaskMutation) ResetArgs ¶
func (m *TaskMutation) ResetArgs()
ResetArgs resets all changes to the "args" field.
func (*TaskMutation) ResetBeacon ¶
func (m *TaskMutation) ResetBeacon()
ResetBeacon resets all changes to the "beacon" edge.
func (*TaskMutation) ResetBid ¶
func (m *TaskMutation) ResetBid()
ResetBid resets all changes to the "bid" field.
func (*TaskMutation) ResetBlobberArgs ¶
func (m *TaskMutation) ResetBlobberArgs()
ResetBlobberArgs resets all changes to the "blobber_args" edge.
func (*TaskMutation) ResetBlobberOutput ¶
func (m *TaskMutation) ResetBlobberOutput()
ResetBlobberOutput resets all changes to the "blobber_output" edge.
func (*TaskMutation) ResetCap ¶
func (m *TaskMutation) ResetCap()
ResetCap resets all changes to the "cap" field.
func (*TaskMutation) ResetCreatedAt ¶
func (m *TaskMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*TaskMutation) ResetDoneAt ¶
func (m *TaskMutation) ResetDoneAt()
ResetDoneAt resets all changes to the "done_at" field.
func (*TaskMutation) ResetEdge ¶
func (m *TaskMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*TaskMutation) ResetField ¶
func (m *TaskMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*TaskMutation) ResetGid ¶
func (m *TaskMutation) ResetGid()
ResetGid resets all changes to the "gid" field.
func (*TaskMutation) ResetGroup ¶
func (m *TaskMutation) ResetGroup()
ResetGroup resets all changes to the "group" edge.
func (*TaskMutation) ResetOutput ¶
func (m *TaskMutation) ResetOutput()
ResetOutput resets all changes to the "output" field.
func (*TaskMutation) ResetOutputBig ¶
func (m *TaskMutation) ResetOutputBig()
ResetOutputBig resets all changes to the "output_big" field.
func (*TaskMutation) ResetPushedAt ¶
func (m *TaskMutation) ResetPushedAt()
ResetPushedAt resets all changes to the "pushed_at" field.
func (*TaskMutation) ResetStatus ¶
func (m *TaskMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*TaskMutation) SetBeaconID ¶
func (m *TaskMutation) SetBeaconID(id int)
SetBeaconID sets the "beacon" edge to the Beacon entity by id.
func (*TaskMutation) SetBlobberArgsID ¶
func (m *TaskMutation) SetBlobberArgsID(id int)
SetBlobberArgsID sets the "blobber_args" edge to the Blobber entity by id.
func (*TaskMutation) SetBlobberOutputID ¶
func (m *TaskMutation) SetBlobberOutputID(id int)
SetBlobberOutputID sets the "blobber_output" edge to the Blobber entity by id.
func (*TaskMutation) SetCap ¶
func (m *TaskMutation) SetCap(d defaults.Capability)
SetCap sets the "cap" field.
func (*TaskMutation) SetCreatedAt ¶
func (m *TaskMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*TaskMutation) SetDoneAt ¶
func (m *TaskMutation) SetDoneAt(t time.Time)
SetDoneAt sets the "done_at" field.
func (*TaskMutation) SetField ¶
func (m *TaskMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*TaskMutation) SetGroupID ¶
func (m *TaskMutation) SetGroupID(id int)
SetGroupID sets the "group" edge to the Group entity by id.
func (*TaskMutation) SetOp ¶
func (m *TaskMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*TaskMutation) SetOutput ¶
func (m *TaskMutation) SetOutput(i int)
SetOutput sets the "output" field.
func (*TaskMutation) SetOutputBig ¶
func (m *TaskMutation) SetOutputBig(b bool)
SetOutputBig sets the "output_big" field.
func (*TaskMutation) SetPushedAt ¶
func (m *TaskMutation) SetPushedAt(t time.Time)
SetPushedAt sets the "pushed_at" field.
func (*TaskMutation) SetStatus ¶
func (m *TaskMutation) SetStatus(ds defaults.TaskStatus)
SetStatus sets the "status" field.
func (*TaskMutation) Status ¶
func (m *TaskMutation) Status() (r defaults.TaskStatus, exists bool)
Status returns the value of the "status" field in the mutation.
func (TaskMutation) Tx ¶
func (m TaskMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TaskMutation) Type ¶
func (m *TaskMutation) Type() string
Type returns the node type of this mutation (Task).
func (*TaskMutation) Where ¶
func (m *TaskMutation) Where(ps ...predicate.Task)
Where appends a list predicates to the TaskMutation builder.
func (*TaskMutation) WhereP ¶
func (m *TaskMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TaskMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TaskQuery ¶
type TaskQuery struct {
// contains filtered or unexported fields
}
TaskQuery is the builder for querying Task entities.
func (*TaskQuery) Aggregate ¶
func (tq *TaskQuery) Aggregate(fns ...AggregateFunc) *TaskSelect
Aggregate returns a TaskSelect configured with the given aggregations.
func (*TaskQuery) Clone ¶
Clone returns a duplicate of the TaskQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TaskQuery) First ¶
First returns the first Task entity from the query. Returns a *NotFoundError when no Task was found.
func (*TaskQuery) FirstID ¶
FirstID returns the first Task ID from the query. Returns a *NotFoundError when no Task ID was found.
func (*TaskQuery) ForShare ¶
func (tq *TaskQuery) ForShare(opts ...sql.LockOption) *TaskQuery
ForShare behaves similarly to ForUpdate, except that it acquires a shared mode lock on any rows that are read. Other sessions can read the rows, but cannot modify them until your transaction commits.
func (*TaskQuery) ForUpdate ¶
func (tq *TaskQuery) ForUpdate(opts ...sql.LockOption) *TaskQuery
ForUpdate locks the selected rows against concurrent updates, and prevent them from being updated, deleted or "selected ... for update" by other sessions, until the transaction is either committed or rolled-back.
func (*TaskQuery) GroupBy ¶
func (tq *TaskQuery) GroupBy(field string, fields ...string) *TaskGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Gid int `json:"gid,omitempty"` Count int `json:"count,omitempty"` } client.Task.Query(). GroupBy(task.FieldGid). Aggregate(ent.Count()). Scan(ctx, &v)
func (*TaskQuery) Only ¶
Only returns a single Task entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Task entity is found. Returns a *NotFoundError when no Task entities are found.
func (*TaskQuery) OnlyID ¶
OnlyID is like Only, but returns the only Task ID in the query. Returns a *NotSingularError when more than one Task ID is found. Returns a *NotFoundError when no entities are found.
func (*TaskQuery) Order ¶
func (tq *TaskQuery) Order(o ...task.OrderOption) *TaskQuery
Order specifies how the records should be ordered.
func (*TaskQuery) QueryBeacon ¶
func (tq *TaskQuery) QueryBeacon() *BeaconQuery
QueryBeacon chains the current query on the "beacon" edge.
func (*TaskQuery) QueryBlobberArgs ¶
func (tq *TaskQuery) QueryBlobberArgs() *BlobberQuery
QueryBlobberArgs chains the current query on the "blobber_args" edge.
func (*TaskQuery) QueryBlobberOutput ¶
func (tq *TaskQuery) QueryBlobberOutput() *BlobberQuery
QueryBlobberOutput chains the current query on the "blobber_output" edge.
func (*TaskQuery) QueryGroup ¶
func (tq *TaskQuery) QueryGroup() *GroupQuery
QueryGroup chains the current query on the "group" edge.
func (*TaskQuery) Select ¶
func (tq *TaskQuery) Select(fields ...string) *TaskSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Gid int `json:"gid,omitempty"` } client.Task.Query(). Select(task.FieldGid). Scan(ctx, &v)
func (*TaskQuery) Unique ¶
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*TaskQuery) WithBeacon ¶
func (tq *TaskQuery) WithBeacon(opts ...func(*BeaconQuery)) *TaskQuery
WithBeacon tells the query-builder to eager-load the nodes that are connected to the "beacon" edge. The optional arguments are used to configure the query builder of the edge.
func (*TaskQuery) WithBlobberArgs ¶
func (tq *TaskQuery) WithBlobberArgs(opts ...func(*BlobberQuery)) *TaskQuery
WithBlobberArgs tells the query-builder to eager-load the nodes that are connected to the "blobber_args" edge. The optional arguments are used to configure the query builder of the edge.
func (*TaskQuery) WithBlobberOutput ¶
func (tq *TaskQuery) WithBlobberOutput(opts ...func(*BlobberQuery)) *TaskQuery
WithBlobberOutput tells the query-builder to eager-load the nodes that are connected to the "blobber_output" edge. The optional arguments are used to configure the query builder of the edge.
func (*TaskQuery) WithGroup ¶
func (tq *TaskQuery) WithGroup(opts ...func(*GroupQuery)) *TaskQuery
WithGroup tells the query-builder to eager-load the nodes that are connected to the "group" edge. The optional arguments are used to configure the query builder of the edge.
type TaskSelect ¶
type TaskSelect struct { *TaskQuery // contains filtered or unexported fields }
TaskSelect is the builder for selecting fields of Task entities.
func (*TaskSelect) Aggregate ¶
func (ts *TaskSelect) Aggregate(fns ...AggregateFunc) *TaskSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TaskSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TaskSelect) Scan ¶
func (ts *TaskSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TaskSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TaskUpdate ¶
type TaskUpdate struct {
// contains filtered or unexported fields
}
TaskUpdate is the builder for updating Task entities.
func (*TaskUpdate) ClearBeacon ¶
func (tu *TaskUpdate) ClearBeacon() *TaskUpdate
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*TaskUpdate) ClearBlobberArgs ¶
func (tu *TaskUpdate) ClearBlobberArgs() *TaskUpdate
ClearBlobberArgs clears the "blobber_args" edge to the Blobber entity.
func (*TaskUpdate) ClearBlobberOutput ¶
func (tu *TaskUpdate) ClearBlobberOutput() *TaskUpdate
ClearBlobberOutput clears the "blobber_output" edge to the Blobber entity.
func (*TaskUpdate) ClearDoneAt ¶
func (tu *TaskUpdate) ClearDoneAt() *TaskUpdate
ClearDoneAt clears the value of the "done_at" field.
func (*TaskUpdate) ClearGroup ¶
func (tu *TaskUpdate) ClearGroup() *TaskUpdate
ClearGroup clears the "group" edge to the Group entity.
func (*TaskUpdate) ClearOutput ¶
func (tu *TaskUpdate) ClearOutput() *TaskUpdate
ClearOutput clears the value of the "output" field.
func (*TaskUpdate) ClearOutputBig ¶
func (tu *TaskUpdate) ClearOutputBig() *TaskUpdate
ClearOutputBig clears the value of the "output_big" field.
func (*TaskUpdate) ClearPushedAt ¶
func (tu *TaskUpdate) ClearPushedAt() *TaskUpdate
ClearPushedAt clears the value of the "pushed_at" field.
func (*TaskUpdate) Exec ¶
func (tu *TaskUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*TaskUpdate) ExecX ¶
func (tu *TaskUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdate) Mutation ¶
func (tu *TaskUpdate) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdate) Save ¶
func (tu *TaskUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*TaskUpdate) SaveX ¶
func (tu *TaskUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdate) SetArgs ¶
func (tu *TaskUpdate) SetArgs(i int) *TaskUpdate
SetArgs sets the "args" field.
func (*TaskUpdate) SetBeacon ¶
func (tu *TaskUpdate) SetBeacon(b *Beacon) *TaskUpdate
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*TaskUpdate) SetBeaconID ¶
func (tu *TaskUpdate) SetBeaconID(id int) *TaskUpdate
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*TaskUpdate) SetBid ¶
func (tu *TaskUpdate) SetBid(i int) *TaskUpdate
SetBid sets the "bid" field.
func (*TaskUpdate) SetBlobberArgs ¶
func (tu *TaskUpdate) SetBlobberArgs(b *Blobber) *TaskUpdate
SetBlobberArgs sets the "blobber_args" edge to the Blobber entity.
func (*TaskUpdate) SetBlobberArgsID ¶
func (tu *TaskUpdate) SetBlobberArgsID(id int) *TaskUpdate
SetBlobberArgsID sets the "blobber_args" edge to the Blobber entity by ID.
func (*TaskUpdate) SetBlobberOutput ¶
func (tu *TaskUpdate) SetBlobberOutput(b *Blobber) *TaskUpdate
SetBlobberOutput sets the "blobber_output" edge to the Blobber entity.
func (*TaskUpdate) SetBlobberOutputID ¶
func (tu *TaskUpdate) SetBlobberOutputID(id int) *TaskUpdate
SetBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID.
func (*TaskUpdate) SetCap ¶
func (tu *TaskUpdate) SetCap(d defaults.Capability) *TaskUpdate
SetCap sets the "cap" field.
func (*TaskUpdate) SetCreatedAt ¶
func (tu *TaskUpdate) SetCreatedAt(t time.Time) *TaskUpdate
SetCreatedAt sets the "created_at" field.
func (*TaskUpdate) SetDoneAt ¶
func (tu *TaskUpdate) SetDoneAt(t time.Time) *TaskUpdate
SetDoneAt sets the "done_at" field.
func (*TaskUpdate) SetGid ¶
func (tu *TaskUpdate) SetGid(i int) *TaskUpdate
SetGid sets the "gid" field.
func (*TaskUpdate) SetGroup ¶
func (tu *TaskUpdate) SetGroup(g *Group) *TaskUpdate
SetGroup sets the "group" edge to the Group entity.
func (*TaskUpdate) SetGroupID ¶
func (tu *TaskUpdate) SetGroupID(id int) *TaskUpdate
SetGroupID sets the "group" edge to the Group entity by ID.
func (*TaskUpdate) SetNillableArgs ¶
func (tu *TaskUpdate) SetNillableArgs(i *int) *TaskUpdate
SetNillableArgs sets the "args" field if the given value is not nil.
func (*TaskUpdate) SetNillableBid ¶
func (tu *TaskUpdate) SetNillableBid(i *int) *TaskUpdate
SetNillableBid sets the "bid" field if the given value is not nil.
func (*TaskUpdate) SetNillableBlobberOutputID ¶
func (tu *TaskUpdate) SetNillableBlobberOutputID(id *int) *TaskUpdate
SetNillableBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID if the given value is not nil.
func (*TaskUpdate) SetNillableCap ¶
func (tu *TaskUpdate) SetNillableCap(d *defaults.Capability) *TaskUpdate
SetNillableCap sets the "cap" field if the given value is not nil.
func (*TaskUpdate) SetNillableCreatedAt ¶
func (tu *TaskUpdate) SetNillableCreatedAt(t *time.Time) *TaskUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskUpdate) SetNillableDoneAt ¶
func (tu *TaskUpdate) SetNillableDoneAt(t *time.Time) *TaskUpdate
SetNillableDoneAt sets the "done_at" field if the given value is not nil.
func (*TaskUpdate) SetNillableGid ¶
func (tu *TaskUpdate) SetNillableGid(i *int) *TaskUpdate
SetNillableGid sets the "gid" field if the given value is not nil.
func (*TaskUpdate) SetNillableOutput ¶
func (tu *TaskUpdate) SetNillableOutput(i *int) *TaskUpdate
SetNillableOutput sets the "output" field if the given value is not nil.
func (*TaskUpdate) SetNillableOutputBig ¶
func (tu *TaskUpdate) SetNillableOutputBig(b *bool) *TaskUpdate
SetNillableOutputBig sets the "output_big" field if the given value is not nil.
func (*TaskUpdate) SetNillablePushedAt ¶
func (tu *TaskUpdate) SetNillablePushedAt(t *time.Time) *TaskUpdate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*TaskUpdate) SetNillableStatus ¶
func (tu *TaskUpdate) SetNillableStatus(ds *defaults.TaskStatus) *TaskUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*TaskUpdate) SetOutput ¶
func (tu *TaskUpdate) SetOutput(i int) *TaskUpdate
SetOutput sets the "output" field.
func (*TaskUpdate) SetOutputBig ¶
func (tu *TaskUpdate) SetOutputBig(b bool) *TaskUpdate
SetOutputBig sets the "output_big" field.
func (*TaskUpdate) SetPushedAt ¶
func (tu *TaskUpdate) SetPushedAt(t time.Time) *TaskUpdate
SetPushedAt sets the "pushed_at" field.
func (*TaskUpdate) SetStatus ¶
func (tu *TaskUpdate) SetStatus(ds defaults.TaskStatus) *TaskUpdate
SetStatus sets the "status" field.
func (*TaskUpdate) Where ¶
func (tu *TaskUpdate) Where(ps ...predicate.Task) *TaskUpdate
Where appends a list predicates to the TaskUpdate builder.
type TaskUpdateOne ¶
type TaskUpdateOne struct {
// contains filtered or unexported fields
}
TaskUpdateOne is the builder for updating a single Task entity.
func (*TaskUpdateOne) ClearBeacon ¶
func (tuo *TaskUpdateOne) ClearBeacon() *TaskUpdateOne
ClearBeacon clears the "beacon" edge to the Beacon entity.
func (*TaskUpdateOne) ClearBlobberArgs ¶
func (tuo *TaskUpdateOne) ClearBlobberArgs() *TaskUpdateOne
ClearBlobberArgs clears the "blobber_args" edge to the Blobber entity.
func (*TaskUpdateOne) ClearBlobberOutput ¶
func (tuo *TaskUpdateOne) ClearBlobberOutput() *TaskUpdateOne
ClearBlobberOutput clears the "blobber_output" edge to the Blobber entity.
func (*TaskUpdateOne) ClearDoneAt ¶
func (tuo *TaskUpdateOne) ClearDoneAt() *TaskUpdateOne
ClearDoneAt clears the value of the "done_at" field.
func (*TaskUpdateOne) ClearGroup ¶
func (tuo *TaskUpdateOne) ClearGroup() *TaskUpdateOne
ClearGroup clears the "group" edge to the Group entity.
func (*TaskUpdateOne) ClearOutput ¶
func (tuo *TaskUpdateOne) ClearOutput() *TaskUpdateOne
ClearOutput clears the value of the "output" field.
func (*TaskUpdateOne) ClearOutputBig ¶
func (tuo *TaskUpdateOne) ClearOutputBig() *TaskUpdateOne
ClearOutputBig clears the value of the "output_big" field.
func (*TaskUpdateOne) ClearPushedAt ¶
func (tuo *TaskUpdateOne) ClearPushedAt() *TaskUpdateOne
ClearPushedAt clears the value of the "pushed_at" field.
func (*TaskUpdateOne) Exec ¶
func (tuo *TaskUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TaskUpdateOne) ExecX ¶
func (tuo *TaskUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TaskUpdateOne) Mutation ¶
func (tuo *TaskUpdateOne) Mutation() *TaskMutation
Mutation returns the TaskMutation object of the builder.
func (*TaskUpdateOne) Save ¶
func (tuo *TaskUpdateOne) Save(ctx context.Context) (*Task, error)
Save executes the query and returns the updated Task entity.
func (*TaskUpdateOne) SaveX ¶
func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task
SaveX is like Save, but panics if an error occurs.
func (*TaskUpdateOne) Select ¶
func (tuo *TaskUpdateOne) Select(field string, fields ...string) *TaskUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TaskUpdateOne) SetArgs ¶
func (tuo *TaskUpdateOne) SetArgs(i int) *TaskUpdateOne
SetArgs sets the "args" field.
func (*TaskUpdateOne) SetBeacon ¶
func (tuo *TaskUpdateOne) SetBeacon(b *Beacon) *TaskUpdateOne
SetBeacon sets the "beacon" edge to the Beacon entity.
func (*TaskUpdateOne) SetBeaconID ¶
func (tuo *TaskUpdateOne) SetBeaconID(id int) *TaskUpdateOne
SetBeaconID sets the "beacon" edge to the Beacon entity by ID.
func (*TaskUpdateOne) SetBid ¶
func (tuo *TaskUpdateOne) SetBid(i int) *TaskUpdateOne
SetBid sets the "bid" field.
func (*TaskUpdateOne) SetBlobberArgs ¶
func (tuo *TaskUpdateOne) SetBlobberArgs(b *Blobber) *TaskUpdateOne
SetBlobberArgs sets the "blobber_args" edge to the Blobber entity.
func (*TaskUpdateOne) SetBlobberArgsID ¶
func (tuo *TaskUpdateOne) SetBlobberArgsID(id int) *TaskUpdateOne
SetBlobberArgsID sets the "blobber_args" edge to the Blobber entity by ID.
func (*TaskUpdateOne) SetBlobberOutput ¶
func (tuo *TaskUpdateOne) SetBlobberOutput(b *Blobber) *TaskUpdateOne
SetBlobberOutput sets the "blobber_output" edge to the Blobber entity.
func (*TaskUpdateOne) SetBlobberOutputID ¶
func (tuo *TaskUpdateOne) SetBlobberOutputID(id int) *TaskUpdateOne
SetBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID.
func (*TaskUpdateOne) SetCap ¶
func (tuo *TaskUpdateOne) SetCap(d defaults.Capability) *TaskUpdateOne
SetCap sets the "cap" field.
func (*TaskUpdateOne) SetCreatedAt ¶
func (tuo *TaskUpdateOne) SetCreatedAt(t time.Time) *TaskUpdateOne
SetCreatedAt sets the "created_at" field.
func (*TaskUpdateOne) SetDoneAt ¶
func (tuo *TaskUpdateOne) SetDoneAt(t time.Time) *TaskUpdateOne
SetDoneAt sets the "done_at" field.
func (*TaskUpdateOne) SetGid ¶
func (tuo *TaskUpdateOne) SetGid(i int) *TaskUpdateOne
SetGid sets the "gid" field.
func (*TaskUpdateOne) SetGroup ¶
func (tuo *TaskUpdateOne) SetGroup(g *Group) *TaskUpdateOne
SetGroup sets the "group" edge to the Group entity.
func (*TaskUpdateOne) SetGroupID ¶
func (tuo *TaskUpdateOne) SetGroupID(id int) *TaskUpdateOne
SetGroupID sets the "group" edge to the Group entity by ID.
func (*TaskUpdateOne) SetNillableArgs ¶
func (tuo *TaskUpdateOne) SetNillableArgs(i *int) *TaskUpdateOne
SetNillableArgs sets the "args" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableBid ¶
func (tuo *TaskUpdateOne) SetNillableBid(i *int) *TaskUpdateOne
SetNillableBid sets the "bid" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableBlobberOutputID ¶
func (tuo *TaskUpdateOne) SetNillableBlobberOutputID(id *int) *TaskUpdateOne
SetNillableBlobberOutputID sets the "blobber_output" edge to the Blobber entity by ID if the given value is not nil.
func (*TaskUpdateOne) SetNillableCap ¶
func (tuo *TaskUpdateOne) SetNillableCap(d *defaults.Capability) *TaskUpdateOne
SetNillableCap sets the "cap" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableCreatedAt ¶
func (tuo *TaskUpdateOne) SetNillableCreatedAt(t *time.Time) *TaskUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableDoneAt ¶
func (tuo *TaskUpdateOne) SetNillableDoneAt(t *time.Time) *TaskUpdateOne
SetNillableDoneAt sets the "done_at" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableGid ¶
func (tuo *TaskUpdateOne) SetNillableGid(i *int) *TaskUpdateOne
SetNillableGid sets the "gid" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableOutput ¶
func (tuo *TaskUpdateOne) SetNillableOutput(i *int) *TaskUpdateOne
SetNillableOutput sets the "output" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableOutputBig ¶
func (tuo *TaskUpdateOne) SetNillableOutputBig(b *bool) *TaskUpdateOne
SetNillableOutputBig sets the "output_big" field if the given value is not nil.
func (*TaskUpdateOne) SetNillablePushedAt ¶
func (tuo *TaskUpdateOne) SetNillablePushedAt(t *time.Time) *TaskUpdateOne
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*TaskUpdateOne) SetNillableStatus ¶
func (tuo *TaskUpdateOne) SetNillableStatus(ds *defaults.TaskStatus) *TaskUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*TaskUpdateOne) SetOutput ¶
func (tuo *TaskUpdateOne) SetOutput(i int) *TaskUpdateOne
SetOutput sets the "output" field.
func (*TaskUpdateOne) SetOutputBig ¶
func (tuo *TaskUpdateOne) SetOutputBig(b bool) *TaskUpdateOne
SetOutputBig sets the "output_big" field.
func (*TaskUpdateOne) SetPushedAt ¶
func (tuo *TaskUpdateOne) SetPushedAt(t time.Time) *TaskUpdateOne
SetPushedAt sets the "pushed_at" field.
func (*TaskUpdateOne) SetStatus ¶
func (tuo *TaskUpdateOne) SetStatus(ds defaults.TaskStatus) *TaskUpdateOne
SetStatus sets the "status" field.
func (*TaskUpdateOne) Where ¶
func (tuo *TaskUpdateOne) Where(ps ...predicate.Task) *TaskUpdateOne
Where appends a list predicates to the TaskUpdate builder.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // Beacon is the client for interacting with the Beacon builders. Beacon *BeaconClient // Blobber is the client for interacting with the Blobber builders. Blobber *BlobberClient // Chat is the client for interacting with the Chat builders. Chat *ChatClient // Credential is the client for interacting with the Credential builders. Credential *CredentialClient // Group is the client for interacting with the Group builders. Group *GroupClient // Listener is the client for interacting with the Listener builders. Listener *ListenerClient // Message is the client for interacting with the Message builders. Message *MessageClient // Operator is the client for interacting with the Operator builders. Operator *OperatorClient // Pki is the client for interacting with the Pki builders. Pki *PkiClient // Task is the client for interacting with the Task builders. Task *TaskClient // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files
¶
- beacon.go
- beacon_create.go
- beacon_delete.go
- beacon_query.go
- beacon_update.go
- blobber.go
- blobber_create.go
- blobber_delete.go
- blobber_query.go
- blobber_update.go
- chat.go
- chat_create.go
- chat_delete.go
- chat_query.go
- chat_update.go
- client.go
- credential.go
- credential_create.go
- credential_delete.go
- credential_query.go
- credential_update.go
- ent.go
- generate.go
- group.go
- group_create.go
- group_delete.go
- group_query.go
- group_update.go
- listener.go
- listener_create.go
- listener_delete.go
- listener_query.go
- listener_update.go
- message.go
- message_create.go
- message_delete.go
- message_query.go
- message_update.go
- mutation.go
- operator.go
- operator_create.go
- operator_delete.go
- operator_query.go
- operator_update.go
- pki.go
- pki_create.go
- pki_delete.go
- pki_query.go
- pki_update.go
- runtime.go
- task.go
- task_create.go
- task_delete.go
- task_query.go
- task_update.go
- tx.go