Versions in this module Expand all Collapse all v0 v0.2.1 Feb 18, 2021 Changes in this version + const OpCreate + const OpDelete + const OpDeleteOne + const OpUpdate + const OpUpdateOne + const TypeAction + const TypeBot + const TypeGroup + const TypeHost + const TypeUser + 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 Action struct + Args string + Edges ActionEdges + ID int + Mode string + Queued bool + Responded bool + Result string + UUID string + func (a *Action) QueryTargeting() *HostQuery + func (a *Action) String() string + func (a *Action) Unwrap() *Action + func (a *Action) Update() *ActionUpdateOne + type ActionClient struct + func NewActionClient(c config) *ActionClient + func (c *ActionClient) Create() *ActionCreate + func (c *ActionClient) CreateBulk(builders ...*ActionCreate) *ActionCreateBulk + func (c *ActionClient) Delete() *ActionDelete + func (c *ActionClient) DeleteOne(a *Action) *ActionDeleteOne + func (c *ActionClient) DeleteOneID(id int) *ActionDeleteOne + func (c *ActionClient) Get(ctx context.Context, id int) (*Action, error) + func (c *ActionClient) GetX(ctx context.Context, id int) *Action + func (c *ActionClient) Hooks() []Hook + func (c *ActionClient) Query() *ActionQuery + func (c *ActionClient) QueryTargeting(a *Action) *HostQuery + func (c *ActionClient) Update() *ActionUpdate + func (c *ActionClient) UpdateOne(a *Action) *ActionUpdateOne + func (c *ActionClient) UpdateOneID(id int) *ActionUpdateOne + func (c *ActionClient) Use(hooks ...Hook) + type ActionCreate struct + func (ac *ActionCreate) Mutation() *ActionMutation + func (ac *ActionCreate) Save(ctx context.Context) (*Action, error) + func (ac *ActionCreate) SaveX(ctx context.Context) *Action + func (ac *ActionCreate) SetArgs(s string) *ActionCreate + func (ac *ActionCreate) SetMode(s string) *ActionCreate + func (ac *ActionCreate) SetNillableQueued(b *bool) *ActionCreate + func (ac *ActionCreate) SetNillableResponded(b *bool) *ActionCreate + func (ac *ActionCreate) SetNillableResult(s *string) *ActionCreate + func (ac *ActionCreate) SetNillableTargetingID(id *int) *ActionCreate + func (ac *ActionCreate) SetQueued(b bool) *ActionCreate + func (ac *ActionCreate) SetResponded(b bool) *ActionCreate + func (ac *ActionCreate) SetResult(s string) *ActionCreate + func (ac *ActionCreate) SetTargeting(h *Host) *ActionCreate + func (ac *ActionCreate) SetTargetingID(id int) *ActionCreate + func (ac *ActionCreate) SetUUID(s string) *ActionCreate + type ActionCreateBulk struct + func (acb *ActionCreateBulk) Save(ctx context.Context) ([]*Action, error) + func (acb *ActionCreateBulk) SaveX(ctx context.Context) []*Action + type ActionDelete struct + func (ad *ActionDelete) Exec(ctx context.Context) (int, error) + func (ad *ActionDelete) ExecX(ctx context.Context) int + func (ad *ActionDelete) Where(ps ...predicate.Action) *ActionDelete + type ActionDeleteOne struct + func (ado *ActionDeleteOne) Exec(ctx context.Context) error + func (ado *ActionDeleteOne) ExecX(ctx context.Context) + type ActionEdges struct + Targeting *Host + func (e ActionEdges) TargetingOrErr() (*Host, error) + type ActionGroupBy struct + func (agb *ActionGroupBy) Aggregate(fns ...AggregateFunc) *ActionGroupBy + func (agb *ActionGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (agb *ActionGroupBy) BoolX(ctx context.Context) bool + func (agb *ActionGroupBy) Bools(ctx context.Context) ([]bool, error) + func (agb *ActionGroupBy) BoolsX(ctx context.Context) []bool + func (agb *ActionGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (agb *ActionGroupBy) Float64X(ctx context.Context) float64 + func (agb *ActionGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (agb *ActionGroupBy) Float64sX(ctx context.Context) []float64 + func (agb *ActionGroupBy) Int(ctx context.Context) (_ int, err error) + func (agb *ActionGroupBy) IntX(ctx context.Context) int + func (agb *ActionGroupBy) Ints(ctx context.Context) ([]int, error) + func (agb *ActionGroupBy) IntsX(ctx context.Context) []int + func (agb *ActionGroupBy) Scan(ctx context.Context, v interface{}) error + func (agb *ActionGroupBy) ScanX(ctx context.Context, v interface{}) + func (agb *ActionGroupBy) String(ctx context.Context) (_ string, err error) + func (agb *ActionGroupBy) StringX(ctx context.Context) string + func (agb *ActionGroupBy) Strings(ctx context.Context) ([]string, error) + func (agb *ActionGroupBy) StringsX(ctx context.Context) []string + type ActionMutation struct + func (m *ActionMutation) AddField(name string, value ent.Value) error + func (m *ActionMutation) AddedEdges() []string + func (m *ActionMutation) AddedField(name string) (ent.Value, bool) + func (m *ActionMutation) AddedFields() []string + func (m *ActionMutation) AddedIDs(name string) []ent.Value + func (m *ActionMutation) Args() (r string, exists bool) + func (m *ActionMutation) ClearEdge(name string) error + func (m *ActionMutation) ClearField(name string) error + func (m *ActionMutation) ClearTargeting() + func (m *ActionMutation) ClearedEdges() []string + func (m *ActionMutation) ClearedFields() []string + func (m *ActionMutation) EdgeCleared(name string) bool + func (m *ActionMutation) Field(name string) (ent.Value, bool) + func (m *ActionMutation) FieldCleared(name string) bool + func (m *ActionMutation) Fields() []string + func (m *ActionMutation) ID() (id int, exists bool) + func (m *ActionMutation) Mode() (r string, exists bool) + func (m *ActionMutation) OldArgs(ctx context.Context) (v string, err error) + func (m *ActionMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *ActionMutation) OldMode(ctx context.Context) (v string, err error) + func (m *ActionMutation) OldQueued(ctx context.Context) (v bool, err error) + func (m *ActionMutation) OldResponded(ctx context.Context) (v bool, err error) + func (m *ActionMutation) OldResult(ctx context.Context) (v string, err error) + func (m *ActionMutation) OldUUID(ctx context.Context) (v string, err error) + func (m *ActionMutation) Op() Op + func (m *ActionMutation) Queued() (r bool, exists bool) + func (m *ActionMutation) RemovedEdges() []string + func (m *ActionMutation) RemovedIDs(name string) []ent.Value + func (m *ActionMutation) ResetArgs() + func (m *ActionMutation) ResetEdge(name string) error + func (m *ActionMutation) ResetField(name string) error + func (m *ActionMutation) ResetMode() + func (m *ActionMutation) ResetQueued() + func (m *ActionMutation) ResetResponded() + func (m *ActionMutation) ResetResult() + func (m *ActionMutation) ResetTargeting() + func (m *ActionMutation) ResetUUID() + func (m *ActionMutation) Responded() (r bool, exists bool) + func (m *ActionMutation) Result() (r string, exists bool) + func (m *ActionMutation) SetArgs(s string) + func (m *ActionMutation) SetField(name string, value ent.Value) error + func (m *ActionMutation) SetMode(s string) + func (m *ActionMutation) SetQueued(b bool) + func (m *ActionMutation) SetResponded(b bool) + func (m *ActionMutation) SetResult(s string) + func (m *ActionMutation) SetTargetingID(id int) + func (m *ActionMutation) SetUUID(s string) + func (m *ActionMutation) TargetingCleared() bool + func (m *ActionMutation) TargetingID() (id int, exists bool) + func (m *ActionMutation) TargetingIDs() (ids []int) + func (m *ActionMutation) Type() string + func (m *ActionMutation) UUID() (r string, exists bool) + func (m ActionMutation) Client() *Client + func (m ActionMutation) Tx() (*Tx, error) + type ActionQuery struct + func (aq *ActionQuery) All(ctx context.Context) ([]*Action, error) + func (aq *ActionQuery) AllX(ctx context.Context) []*Action + func (aq *ActionQuery) Clone() *ActionQuery + func (aq *ActionQuery) Count(ctx context.Context) (int, error) + func (aq *ActionQuery) CountX(ctx context.Context) int + func (aq *ActionQuery) Exist(ctx context.Context) (bool, error) + func (aq *ActionQuery) ExistX(ctx context.Context) bool + func (aq *ActionQuery) First(ctx context.Context) (*Action, error) + func (aq *ActionQuery) FirstID(ctx context.Context) (id int, err error) + func (aq *ActionQuery) FirstIDX(ctx context.Context) int + func (aq *ActionQuery) FirstX(ctx context.Context) *Action + func (aq *ActionQuery) GroupBy(field string, fields ...string) *ActionGroupBy + func (aq *ActionQuery) IDs(ctx context.Context) ([]int, error) + func (aq *ActionQuery) IDsX(ctx context.Context) []int + func (aq *ActionQuery) Limit(limit int) *ActionQuery + func (aq *ActionQuery) Offset(offset int) *ActionQuery + func (aq *ActionQuery) Only(ctx context.Context) (*Action, error) + func (aq *ActionQuery) OnlyID(ctx context.Context) (id int, err error) + func (aq *ActionQuery) OnlyIDX(ctx context.Context) int + func (aq *ActionQuery) OnlyX(ctx context.Context) *Action + func (aq *ActionQuery) Order(o ...OrderFunc) *ActionQuery + func (aq *ActionQuery) QueryTargeting() *HostQuery + func (aq *ActionQuery) Select(field string, fields ...string) *ActionSelect + func (aq *ActionQuery) Where(ps ...predicate.Action) *ActionQuery + func (aq *ActionQuery) WithTargeting(opts ...func(*HostQuery)) *ActionQuery + type ActionSelect struct + func (as *ActionSelect) Bool(ctx context.Context) (_ bool, err error) + func (as *ActionSelect) BoolX(ctx context.Context) bool + func (as *ActionSelect) Bools(ctx context.Context) ([]bool, error) + func (as *ActionSelect) BoolsX(ctx context.Context) []bool + func (as *ActionSelect) Float64(ctx context.Context) (_ float64, err error) + func (as *ActionSelect) Float64X(ctx context.Context) float64 + func (as *ActionSelect) Float64s(ctx context.Context) ([]float64, error) + func (as *ActionSelect) Float64sX(ctx context.Context) []float64 + func (as *ActionSelect) Int(ctx context.Context) (_ int, err error) + func (as *ActionSelect) IntX(ctx context.Context) int + func (as *ActionSelect) Ints(ctx context.Context) ([]int, error) + func (as *ActionSelect) IntsX(ctx context.Context) []int + func (as *ActionSelect) Scan(ctx context.Context, v interface{}) error + func (as *ActionSelect) ScanX(ctx context.Context, v interface{}) + func (as *ActionSelect) String(ctx context.Context) (_ string, err error) + func (as *ActionSelect) StringX(ctx context.Context) string + func (as *ActionSelect) Strings(ctx context.Context) ([]string, error) + func (as *ActionSelect) StringsX(ctx context.Context) []string + type ActionUpdate struct + func (au *ActionUpdate) ClearTargeting() *ActionUpdate + func (au *ActionUpdate) Exec(ctx context.Context) error + func (au *ActionUpdate) ExecX(ctx context.Context) + func (au *ActionUpdate) Mutation() *ActionMutation + func (au *ActionUpdate) Save(ctx context.Context) (int, error) + func (au *ActionUpdate) SaveX(ctx context.Context) int + func (au *ActionUpdate) SetArgs(s string) *ActionUpdate + func (au *ActionUpdate) SetMode(s string) *ActionUpdate + func (au *ActionUpdate) SetNillableQueued(b *bool) *ActionUpdate + func (au *ActionUpdate) SetNillableResponded(b *bool) *ActionUpdate + func (au *ActionUpdate) SetNillableResult(s *string) *ActionUpdate + func (au *ActionUpdate) SetNillableTargetingID(id *int) *ActionUpdate + func (au *ActionUpdate) SetQueued(b bool) *ActionUpdate + func (au *ActionUpdate) SetResponded(b bool) *ActionUpdate + func (au *ActionUpdate) SetResult(s string) *ActionUpdate + func (au *ActionUpdate) SetTargeting(h *Host) *ActionUpdate + func (au *ActionUpdate) SetTargetingID(id int) *ActionUpdate + func (au *ActionUpdate) SetUUID(s string) *ActionUpdate + func (au *ActionUpdate) Where(ps ...predicate.Action) *ActionUpdate + type ActionUpdateOne struct + func (auo *ActionUpdateOne) ClearTargeting() *ActionUpdateOne + func (auo *ActionUpdateOne) Exec(ctx context.Context) error + func (auo *ActionUpdateOne) ExecX(ctx context.Context) + func (auo *ActionUpdateOne) Mutation() *ActionMutation + func (auo *ActionUpdateOne) Save(ctx context.Context) (*Action, error) + func (auo *ActionUpdateOne) SaveX(ctx context.Context) *Action + func (auo *ActionUpdateOne) SetArgs(s string) *ActionUpdateOne + func (auo *ActionUpdateOne) SetMode(s string) *ActionUpdateOne + func (auo *ActionUpdateOne) SetNillableQueued(b *bool) *ActionUpdateOne + func (auo *ActionUpdateOne) SetNillableResponded(b *bool) *ActionUpdateOne + func (auo *ActionUpdateOne) SetNillableResult(s *string) *ActionUpdateOne + func (auo *ActionUpdateOne) SetNillableTargetingID(id *int) *ActionUpdateOne + func (auo *ActionUpdateOne) SetQueued(b bool) *ActionUpdateOne + func (auo *ActionUpdateOne) SetResponded(b bool) *ActionUpdateOne + func (auo *ActionUpdateOne) SetResult(s string) *ActionUpdateOne + func (auo *ActionUpdateOne) SetTargeting(h *Host) *ActionUpdateOne + func (auo *ActionUpdateOne) SetTargetingID(id int) *ActionUpdateOne + func (auo *ActionUpdateOne) SetUUID(s string) *ActionUpdateOne + type Actions []*Action + type AggregateFunc func(*sql.Selector, func(string) bool) string + func As(fn AggregateFunc, end string) AggregateFunc + func Count() AggregateFunc + func Max(field string) AggregateFunc + func Mean(field string) AggregateFunc + func Min(field string) AggregateFunc + func Sum(field string) AggregateFunc + type Bot struct + Delta int + Edges BotEdges + ID int + Interval int + LastSeen int + UUID string + func (b *Bot) QueryInfecting() *HostQuery + func (b *Bot) String() string + func (b *Bot) Unwrap() *Bot + func (b *Bot) Update() *BotUpdateOne + type BotClient struct + func NewBotClient(c config) *BotClient + func (c *BotClient) Create() *BotCreate + func (c *BotClient) CreateBulk(builders ...*BotCreate) *BotCreateBulk + func (c *BotClient) Delete() *BotDelete + func (c *BotClient) DeleteOne(b *Bot) *BotDeleteOne + func (c *BotClient) DeleteOneID(id int) *BotDeleteOne + func (c *BotClient) Get(ctx context.Context, id int) (*Bot, error) + func (c *BotClient) GetX(ctx context.Context, id int) *Bot + func (c *BotClient) Hooks() []Hook + func (c *BotClient) Query() *BotQuery + func (c *BotClient) QueryInfecting(b *Bot) *HostQuery + func (c *BotClient) Update() *BotUpdate + func (c *BotClient) UpdateOne(b *Bot) *BotUpdateOne + func (c *BotClient) UpdateOneID(id int) *BotUpdateOne + func (c *BotClient) Use(hooks ...Hook) + type BotCreate struct + func (bc *BotCreate) Mutation() *BotMutation + func (bc *BotCreate) Save(ctx context.Context) (*Bot, error) + func (bc *BotCreate) SaveX(ctx context.Context) *Bot + func (bc *BotCreate) SetDelta(i int) *BotCreate + func (bc *BotCreate) SetInfecting(h *Host) *BotCreate + func (bc *BotCreate) SetInfectingID(id int) *BotCreate + func (bc *BotCreate) SetInterval(i int) *BotCreate + func (bc *BotCreate) SetLastSeen(i int) *BotCreate + func (bc *BotCreate) SetNillableInfectingID(id *int) *BotCreate + func (bc *BotCreate) SetNillableLastSeen(i *int) *BotCreate + func (bc *BotCreate) SetUUID(s string) *BotCreate + type BotCreateBulk struct + func (bcb *BotCreateBulk) Save(ctx context.Context) ([]*Bot, error) + func (bcb *BotCreateBulk) SaveX(ctx context.Context) []*Bot + type BotDelete struct + func (bd *BotDelete) Exec(ctx context.Context) (int, error) + func (bd *BotDelete) ExecX(ctx context.Context) int + func (bd *BotDelete) Where(ps ...predicate.Bot) *BotDelete + type BotDeleteOne struct + func (bdo *BotDeleteOne) Exec(ctx context.Context) error + func (bdo *BotDeleteOne) ExecX(ctx context.Context) + type BotEdges struct + Infecting *Host + func (e BotEdges) InfectingOrErr() (*Host, error) + type BotGroupBy struct + func (bgb *BotGroupBy) Aggregate(fns ...AggregateFunc) *BotGroupBy + func (bgb *BotGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (bgb *BotGroupBy) BoolX(ctx context.Context) bool + func (bgb *BotGroupBy) Bools(ctx context.Context) ([]bool, error) + func (bgb *BotGroupBy) BoolsX(ctx context.Context) []bool + func (bgb *BotGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (bgb *BotGroupBy) Float64X(ctx context.Context) float64 + func (bgb *BotGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (bgb *BotGroupBy) Float64sX(ctx context.Context) []float64 + func (bgb *BotGroupBy) Int(ctx context.Context) (_ int, err error) + func (bgb *BotGroupBy) IntX(ctx context.Context) int + func (bgb *BotGroupBy) Ints(ctx context.Context) ([]int, error) + func (bgb *BotGroupBy) IntsX(ctx context.Context) []int + func (bgb *BotGroupBy) Scan(ctx context.Context, v interface{}) error + func (bgb *BotGroupBy) ScanX(ctx context.Context, v interface{}) + func (bgb *BotGroupBy) String(ctx context.Context) (_ string, err error) + func (bgb *BotGroupBy) StringX(ctx context.Context) string + func (bgb *BotGroupBy) Strings(ctx context.Context) ([]string, error) + func (bgb *BotGroupBy) StringsX(ctx context.Context) []string + type BotMutation struct + func (m *BotMutation) AddDelta(i int) + func (m *BotMutation) AddField(name string, value ent.Value) error + func (m *BotMutation) AddInterval(i int) + func (m *BotMutation) AddLastSeen(i int) + func (m *BotMutation) AddedDelta() (r int, exists bool) + func (m *BotMutation) AddedEdges() []string + func (m *BotMutation) AddedField(name string) (ent.Value, bool) + func (m *BotMutation) AddedFields() []string + func (m *BotMutation) AddedIDs(name string) []ent.Value + func (m *BotMutation) AddedInterval() (r int, exists bool) + func (m *BotMutation) AddedLastSeen() (r int, exists bool) + func (m *BotMutation) ClearEdge(name string) error + func (m *BotMutation) ClearField(name string) error + func (m *BotMutation) ClearInfecting() + func (m *BotMutation) ClearedEdges() []string + func (m *BotMutation) ClearedFields() []string + func (m *BotMutation) Delta() (r int, exists bool) + func (m *BotMutation) EdgeCleared(name string) bool + func (m *BotMutation) Field(name string) (ent.Value, bool) + func (m *BotMutation) FieldCleared(name string) bool + func (m *BotMutation) Fields() []string + func (m *BotMutation) ID() (id int, exists bool) + func (m *BotMutation) InfectingCleared() bool + func (m *BotMutation) InfectingID() (id int, exists bool) + func (m *BotMutation) InfectingIDs() (ids []int) + func (m *BotMutation) Interval() (r int, exists bool) + func (m *BotMutation) LastSeen() (r int, exists bool) + func (m *BotMutation) OldDelta(ctx context.Context) (v int, err error) + func (m *BotMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *BotMutation) OldInterval(ctx context.Context) (v int, err error) + func (m *BotMutation) OldLastSeen(ctx context.Context) (v int, err error) + func (m *BotMutation) OldUUID(ctx context.Context) (v string, err error) + func (m *BotMutation) Op() Op + func (m *BotMutation) RemovedEdges() []string + func (m *BotMutation) RemovedIDs(name string) []ent.Value + func (m *BotMutation) ResetDelta() + func (m *BotMutation) ResetEdge(name string) error + func (m *BotMutation) ResetField(name string) error + func (m *BotMutation) ResetInfecting() + func (m *BotMutation) ResetInterval() + func (m *BotMutation) ResetLastSeen() + func (m *BotMutation) ResetUUID() + func (m *BotMutation) SetDelta(i int) + func (m *BotMutation) SetField(name string, value ent.Value) error + func (m *BotMutation) SetInfectingID(id int) + func (m *BotMutation) SetInterval(i int) + func (m *BotMutation) SetLastSeen(i int) + func (m *BotMutation) SetUUID(s string) + func (m *BotMutation) Type() string + func (m *BotMutation) UUID() (r string, exists bool) + func (m BotMutation) Client() *Client + func (m BotMutation) Tx() (*Tx, error) + type BotQuery struct + func (bq *BotQuery) All(ctx context.Context) ([]*Bot, error) + func (bq *BotQuery) AllX(ctx context.Context) []*Bot + func (bq *BotQuery) Clone() *BotQuery + func (bq *BotQuery) Count(ctx context.Context) (int, error) + func (bq *BotQuery) CountX(ctx context.Context) int + func (bq *BotQuery) Exist(ctx context.Context) (bool, error) + func (bq *BotQuery) ExistX(ctx context.Context) bool + func (bq *BotQuery) First(ctx context.Context) (*Bot, error) + func (bq *BotQuery) FirstID(ctx context.Context) (id int, err error) + func (bq *BotQuery) FirstIDX(ctx context.Context) int + func (bq *BotQuery) FirstX(ctx context.Context) *Bot + func (bq *BotQuery) GroupBy(field string, fields ...string) *BotGroupBy + func (bq *BotQuery) IDs(ctx context.Context) ([]int, error) + func (bq *BotQuery) IDsX(ctx context.Context) []int + func (bq *BotQuery) Limit(limit int) *BotQuery + func (bq *BotQuery) Offset(offset int) *BotQuery + func (bq *BotQuery) Only(ctx context.Context) (*Bot, error) + func (bq *BotQuery) OnlyID(ctx context.Context) (id int, err error) + func (bq *BotQuery) OnlyIDX(ctx context.Context) int + func (bq *BotQuery) OnlyX(ctx context.Context) *Bot + func (bq *BotQuery) Order(o ...OrderFunc) *BotQuery + func (bq *BotQuery) QueryInfecting() *HostQuery + func (bq *BotQuery) Select(field string, fields ...string) *BotSelect + func (bq *BotQuery) Where(ps ...predicate.Bot) *BotQuery + func (bq *BotQuery) WithInfecting(opts ...func(*HostQuery)) *BotQuery + type BotSelect struct + func (bs *BotSelect) Bool(ctx context.Context) (_ bool, err error) + func (bs *BotSelect) BoolX(ctx context.Context) bool + func (bs *BotSelect) Bools(ctx context.Context) ([]bool, error) + func (bs *BotSelect) BoolsX(ctx context.Context) []bool + func (bs *BotSelect) Float64(ctx context.Context) (_ float64, err error) + func (bs *BotSelect) Float64X(ctx context.Context) float64 + func (bs *BotSelect) Float64s(ctx context.Context) ([]float64, error) + func (bs *BotSelect) Float64sX(ctx context.Context) []float64 + func (bs *BotSelect) Int(ctx context.Context) (_ int, err error) + func (bs *BotSelect) IntX(ctx context.Context) int + func (bs *BotSelect) Ints(ctx context.Context) ([]int, error) + func (bs *BotSelect) IntsX(ctx context.Context) []int + func (bs *BotSelect) Scan(ctx context.Context, v interface{}) error + func (bs *BotSelect) ScanX(ctx context.Context, v interface{}) + func (bs *BotSelect) String(ctx context.Context) (_ string, err error) + func (bs *BotSelect) StringX(ctx context.Context) string + func (bs *BotSelect) Strings(ctx context.Context) ([]string, error) + func (bs *BotSelect) StringsX(ctx context.Context) []string + type BotUpdate struct + func (bu *BotUpdate) AddDelta(i int) *BotUpdate + func (bu *BotUpdate) AddInterval(i int) *BotUpdate + func (bu *BotUpdate) AddLastSeen(i int) *BotUpdate + func (bu *BotUpdate) ClearInfecting() *BotUpdate + func (bu *BotUpdate) Exec(ctx context.Context) error + func (bu *BotUpdate) ExecX(ctx context.Context) + func (bu *BotUpdate) Mutation() *BotMutation + func (bu *BotUpdate) Save(ctx context.Context) (int, error) + func (bu *BotUpdate) SaveX(ctx context.Context) int + func (bu *BotUpdate) SetDelta(i int) *BotUpdate + func (bu *BotUpdate) SetInfecting(h *Host) *BotUpdate + func (bu *BotUpdate) SetInfectingID(id int) *BotUpdate + func (bu *BotUpdate) SetInterval(i int) *BotUpdate + func (bu *BotUpdate) SetLastSeen(i int) *BotUpdate + func (bu *BotUpdate) SetNillableInfectingID(id *int) *BotUpdate + func (bu *BotUpdate) SetNillableLastSeen(i *int) *BotUpdate + func (bu *BotUpdate) SetUUID(s string) *BotUpdate + func (bu *BotUpdate) Where(ps ...predicate.Bot) *BotUpdate + type BotUpdateOne struct + func (buo *BotUpdateOne) AddDelta(i int) *BotUpdateOne + func (buo *BotUpdateOne) AddInterval(i int) *BotUpdateOne + func (buo *BotUpdateOne) AddLastSeen(i int) *BotUpdateOne + func (buo *BotUpdateOne) ClearInfecting() *BotUpdateOne + func (buo *BotUpdateOne) Exec(ctx context.Context) error + func (buo *BotUpdateOne) ExecX(ctx context.Context) + func (buo *BotUpdateOne) Mutation() *BotMutation + func (buo *BotUpdateOne) Save(ctx context.Context) (*Bot, error) + func (buo *BotUpdateOne) SaveX(ctx context.Context) *Bot + func (buo *BotUpdateOne) SetDelta(i int) *BotUpdateOne + func (buo *BotUpdateOne) SetInfecting(h *Host) *BotUpdateOne + func (buo *BotUpdateOne) SetInfectingID(id int) *BotUpdateOne + func (buo *BotUpdateOne) SetInterval(i int) *BotUpdateOne + func (buo *BotUpdateOne) SetLastSeen(i int) *BotUpdateOne + func (buo *BotUpdateOne) SetNillableInfectingID(id *int) *BotUpdateOne + func (buo *BotUpdateOne) SetNillableLastSeen(i *int) *BotUpdateOne + func (buo *BotUpdateOne) SetUUID(s string) *BotUpdateOne + type Bots []*Bot + type Client struct + Action *ActionClient + Bot *BotClient + Group *GroupClient + Host *HostClient + Schema *migrate.Schema + User *UserClient + func FromContext(ctx context.Context) *Client + func NewClient(opts ...Option) *Client + func Open(driverName, dataSourceName string, options ...Option) (*Client, error) + 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) Tx(ctx context.Context) (*Tx, error) + func (c *Client) Use(hooks ...Hook) + type CommitFunc func(context.Context, *Tx) error + func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error + type CommitHook func(Committer) Committer + type Committer interface + Commit func(context.Context, *Tx) error + type ConstraintError struct + func (e *ConstraintError) Unwrap() error + func (e ConstraintError) Error() string + type Group struct + Desc string + Edges GroupEdges + ID int + Name string + func (gr *Group) QueryMembers() *HostQuery + func (gr *Group) String() string + func (gr *Group) Unwrap() *Group + func (gr *Group) Update() *GroupUpdateOne + type GroupClient struct + func NewGroupClient(c config) *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) Query() *GroupQuery + func (c *GroupClient) QueryMembers(gr *Group) *HostQuery + 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 struct + func (gc *GroupCreate) AddMemberIDs(ids ...int) *GroupCreate + func (gc *GroupCreate) AddMembers(h ...*Host) *GroupCreate + 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) SetDesc(s string) *GroupCreate + func (gc *GroupCreate) SetName(s string) *GroupCreate + type GroupCreateBulk struct + func (gcb *GroupCreateBulk) Save(ctx context.Context) ([]*Group, error) + func (gcb *GroupCreateBulk) SaveX(ctx context.Context) []*Group + type GroupDelete struct + func (gd *GroupDelete) Exec(ctx context.Context) (int, error) + func (gd *GroupDelete) ExecX(ctx context.Context) int + func (gd *GroupDelete) Where(ps ...predicate.Group) *GroupDelete + type GroupDeleteOne struct + func (gdo *GroupDeleteOne) Exec(ctx context.Context) error + func (gdo *GroupDeleteOne) ExecX(ctx context.Context) + type GroupEdges struct + Members []*Host + func (e GroupEdges) MembersOrErr() ([]*Host, error) + type GroupGroupBy struct + func (ggb *GroupGroupBy) Aggregate(fns ...AggregateFunc) *GroupGroupBy + func (ggb *GroupGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ggb *GroupGroupBy) BoolX(ctx context.Context) bool + func (ggb *GroupGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ggb *GroupGroupBy) BoolsX(ctx context.Context) []bool + func (ggb *GroupGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ggb *GroupGroupBy) Float64X(ctx context.Context) float64 + func (ggb *GroupGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ggb *GroupGroupBy) Float64sX(ctx context.Context) []float64 + func (ggb *GroupGroupBy) Int(ctx context.Context) (_ int, err error) + func (ggb *GroupGroupBy) IntX(ctx context.Context) int + func (ggb *GroupGroupBy) Ints(ctx context.Context) ([]int, error) + func (ggb *GroupGroupBy) IntsX(ctx context.Context) []int + func (ggb *GroupGroupBy) Scan(ctx context.Context, v interface{}) error + func (ggb *GroupGroupBy) ScanX(ctx context.Context, v interface{}) + func (ggb *GroupGroupBy) String(ctx context.Context) (_ string, err error) + func (ggb *GroupGroupBy) StringX(ctx context.Context) string + func (ggb *GroupGroupBy) Strings(ctx context.Context) ([]string, error) + func (ggb *GroupGroupBy) StringsX(ctx context.Context) []string + type GroupMutation struct + func (m *GroupMutation) AddField(name string, value ent.Value) error + func (m *GroupMutation) AddMemberIDs(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) ClearEdge(name string) error + func (m *GroupMutation) ClearField(name string) error + func (m *GroupMutation) ClearMembers() + func (m *GroupMutation) ClearedEdges() []string + func (m *GroupMutation) ClearedFields() []string + func (m *GroupMutation) Desc() (r string, 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) MembersCleared() bool + func (m *GroupMutation) MembersIDs() (ids []int) + func (m *GroupMutation) Name() (r string, exists bool) + func (m *GroupMutation) OldDesc(ctx context.Context) (v string, err error) + func (m *GroupMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *GroupMutation) OldName(ctx context.Context) (v string, err error) + func (m *GroupMutation) Op() Op + func (m *GroupMutation) RemoveMemberIDs(ids ...int) + func (m *GroupMutation) RemovedEdges() []string + func (m *GroupMutation) RemovedIDs(name string) []ent.Value + func (m *GroupMutation) RemovedMembersIDs() (ids []int) + func (m *GroupMutation) ResetDesc() + func (m *GroupMutation) ResetEdge(name string) error + func (m *GroupMutation) ResetField(name string) error + func (m *GroupMutation) ResetMembers() + func (m *GroupMutation) ResetName() + func (m *GroupMutation) SetDesc(s string) + func (m *GroupMutation) SetField(name string, value ent.Value) error + func (m *GroupMutation) SetName(s string) + func (m *GroupMutation) Type() string + func (m GroupMutation) Client() *Client + func (m GroupMutation) Tx() (*Tx, error) + type GroupQuery struct + 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) GroupBy(field string, fields ...string) *GroupGroupBy + func (gq *GroupQuery) IDs(ctx context.Context) ([]int, 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 ...OrderFunc) *GroupQuery + func (gq *GroupQuery) QueryMembers() *HostQuery + func (gq *GroupQuery) Select(field string, fields ...string) *GroupSelect + func (gq *GroupQuery) Where(ps ...predicate.Group) *GroupQuery + func (gq *GroupQuery) WithMembers(opts ...func(*HostQuery)) *GroupQuery + type GroupSelect struct + func (gs *GroupSelect) Bool(ctx context.Context) (_ bool, err error) + func (gs *GroupSelect) BoolX(ctx context.Context) bool + func (gs *GroupSelect) Bools(ctx context.Context) ([]bool, error) + func (gs *GroupSelect) BoolsX(ctx context.Context) []bool + func (gs *GroupSelect) Float64(ctx context.Context) (_ float64, err error) + func (gs *GroupSelect) Float64X(ctx context.Context) float64 + func (gs *GroupSelect) Float64s(ctx context.Context) ([]float64, error) + func (gs *GroupSelect) Float64sX(ctx context.Context) []float64 + func (gs *GroupSelect) Int(ctx context.Context) (_ int, err error) + func (gs *GroupSelect) IntX(ctx context.Context) int + func (gs *GroupSelect) Ints(ctx context.Context) ([]int, error) + func (gs *GroupSelect) IntsX(ctx context.Context) []int + func (gs *GroupSelect) Scan(ctx context.Context, v interface{}) error + func (gs *GroupSelect) ScanX(ctx context.Context, v interface{}) + func (gs *GroupSelect) String(ctx context.Context) (_ string, err error) + func (gs *GroupSelect) StringX(ctx context.Context) string + func (gs *GroupSelect) Strings(ctx context.Context) ([]string, error) + func (gs *GroupSelect) StringsX(ctx context.Context) []string + type GroupUpdate struct + func (gu *GroupUpdate) AddMemberIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) AddMembers(h ...*Host) *GroupUpdate + func (gu *GroupUpdate) ClearMembers() *GroupUpdate + func (gu *GroupUpdate) Exec(ctx context.Context) error + func (gu *GroupUpdate) ExecX(ctx context.Context) + func (gu *GroupUpdate) Mutation() *GroupMutation + func (gu *GroupUpdate) RemoveMemberIDs(ids ...int) *GroupUpdate + func (gu *GroupUpdate) RemoveMembers(h ...*Host) *GroupUpdate + func (gu *GroupUpdate) Save(ctx context.Context) (int, error) + func (gu *GroupUpdate) SaveX(ctx context.Context) int + func (gu *GroupUpdate) SetDesc(s string) *GroupUpdate + func (gu *GroupUpdate) SetName(s string) *GroupUpdate + func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate + type GroupUpdateOne struct + func (guo *GroupUpdateOne) AddMemberIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) AddMembers(h ...*Host) *GroupUpdateOne + func (guo *GroupUpdateOne) ClearMembers() *GroupUpdateOne + func (guo *GroupUpdateOne) Exec(ctx context.Context) error + func (guo *GroupUpdateOne) ExecX(ctx context.Context) + func (guo *GroupUpdateOne) Mutation() *GroupMutation + func (guo *GroupUpdateOne) RemoveMemberIDs(ids ...int) *GroupUpdateOne + func (guo *GroupUpdateOne) RemoveMembers(h ...*Host) *GroupUpdateOne + func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) + func (guo *GroupUpdateOne) SaveX(ctx context.Context) *Group + func (guo *GroupUpdateOne) SetDesc(s string) *GroupUpdateOne + func (guo *GroupUpdateOne) SetName(s string) *GroupUpdateOne + type Groups []*Group + type Hook = ent.Hook + type Host struct + Edges HostEdges + Hostname string + ID int + Interface string + LastSeen int + func (h *Host) QueryActions() *ActionQuery + func (h *Host) QueryBots() *BotQuery + func (h *Host) QueryMember() *GroupQuery + func (h *Host) String() string + func (h *Host) Unwrap() *Host + func (h *Host) Update() *HostUpdateOne + type HostClient struct + func NewHostClient(c config) *HostClient + func (c *HostClient) Create() *HostCreate + func (c *HostClient) CreateBulk(builders ...*HostCreate) *HostCreateBulk + func (c *HostClient) Delete() *HostDelete + func (c *HostClient) DeleteOne(h *Host) *HostDeleteOne + func (c *HostClient) DeleteOneID(id int) *HostDeleteOne + func (c *HostClient) Get(ctx context.Context, id int) (*Host, error) + func (c *HostClient) GetX(ctx context.Context, id int) *Host + func (c *HostClient) Hooks() []Hook + func (c *HostClient) Query() *HostQuery + func (c *HostClient) QueryActions(h *Host) *ActionQuery + func (c *HostClient) QueryBots(h *Host) *BotQuery + func (c *HostClient) QueryMember(h *Host) *GroupQuery + func (c *HostClient) Update() *HostUpdate + func (c *HostClient) UpdateOne(h *Host) *HostUpdateOne + func (c *HostClient) UpdateOneID(id int) *HostUpdateOne + func (c *HostClient) Use(hooks ...Hook) + type HostCreate struct + func (hc *HostCreate) AddActionIDs(ids ...int) *HostCreate + func (hc *HostCreate) AddActions(a ...*Action) *HostCreate + func (hc *HostCreate) AddBotIDs(ids ...int) *HostCreate + func (hc *HostCreate) AddBots(b ...*Bot) *HostCreate + func (hc *HostCreate) AddMember(g ...*Group) *HostCreate + func (hc *HostCreate) AddMemberIDs(ids ...int) *HostCreate + func (hc *HostCreate) Mutation() *HostMutation + func (hc *HostCreate) Save(ctx context.Context) (*Host, error) + func (hc *HostCreate) SaveX(ctx context.Context) *Host + func (hc *HostCreate) SetHostname(s string) *HostCreate + func (hc *HostCreate) SetInterface(s string) *HostCreate + func (hc *HostCreate) SetLastSeen(i int) *HostCreate + func (hc *HostCreate) SetNillableLastSeen(i *int) *HostCreate + type HostCreateBulk struct + func (hcb *HostCreateBulk) Save(ctx context.Context) ([]*Host, error) + func (hcb *HostCreateBulk) SaveX(ctx context.Context) []*Host + type HostDelete struct + func (hd *HostDelete) Exec(ctx context.Context) (int, error) + func (hd *HostDelete) ExecX(ctx context.Context) int + func (hd *HostDelete) Where(ps ...predicate.Host) *HostDelete + type HostDeleteOne struct + func (hdo *HostDeleteOne) Exec(ctx context.Context) error + func (hdo *HostDeleteOne) ExecX(ctx context.Context) + type HostEdges struct + Actions []*Action + Bots []*Bot + Member []*Group + func (e HostEdges) ActionsOrErr() ([]*Action, error) + func (e HostEdges) BotsOrErr() ([]*Bot, error) + func (e HostEdges) MemberOrErr() ([]*Group, error) + type HostGroupBy struct + func (hgb *HostGroupBy) Aggregate(fns ...AggregateFunc) *HostGroupBy + func (hgb *HostGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (hgb *HostGroupBy) BoolX(ctx context.Context) bool + func (hgb *HostGroupBy) Bools(ctx context.Context) ([]bool, error) + func (hgb *HostGroupBy) BoolsX(ctx context.Context) []bool + func (hgb *HostGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (hgb *HostGroupBy) Float64X(ctx context.Context) float64 + func (hgb *HostGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (hgb *HostGroupBy) Float64sX(ctx context.Context) []float64 + func (hgb *HostGroupBy) Int(ctx context.Context) (_ int, err error) + func (hgb *HostGroupBy) IntX(ctx context.Context) int + func (hgb *HostGroupBy) Ints(ctx context.Context) ([]int, error) + func (hgb *HostGroupBy) IntsX(ctx context.Context) []int + func (hgb *HostGroupBy) Scan(ctx context.Context, v interface{}) error + func (hgb *HostGroupBy) ScanX(ctx context.Context, v interface{}) + func (hgb *HostGroupBy) String(ctx context.Context) (_ string, err error) + func (hgb *HostGroupBy) StringX(ctx context.Context) string + func (hgb *HostGroupBy) Strings(ctx context.Context) ([]string, error) + func (hgb *HostGroupBy) StringsX(ctx context.Context) []string + type HostMutation struct + func (m *HostMutation) ActionsCleared() bool + func (m *HostMutation) ActionsIDs() (ids []int) + func (m *HostMutation) AddActionIDs(ids ...int) + func (m *HostMutation) AddBotIDs(ids ...int) + func (m *HostMutation) AddField(name string, value ent.Value) error + func (m *HostMutation) AddLastSeen(i int) + func (m *HostMutation) AddMemberIDs(ids ...int) + func (m *HostMutation) AddedEdges() []string + func (m *HostMutation) AddedField(name string) (ent.Value, bool) + func (m *HostMutation) AddedFields() []string + func (m *HostMutation) AddedIDs(name string) []ent.Value + func (m *HostMutation) AddedLastSeen() (r int, exists bool) + func (m *HostMutation) BotsCleared() bool + func (m *HostMutation) BotsIDs() (ids []int) + func (m *HostMutation) ClearActions() + func (m *HostMutation) ClearBots() + func (m *HostMutation) ClearEdge(name string) error + func (m *HostMutation) ClearField(name string) error + func (m *HostMutation) ClearMember() + func (m *HostMutation) ClearedEdges() []string + func (m *HostMutation) ClearedFields() []string + func (m *HostMutation) EdgeCleared(name string) bool + func (m *HostMutation) Field(name string) (ent.Value, bool) + func (m *HostMutation) FieldCleared(name string) bool + func (m *HostMutation) Fields() []string + func (m *HostMutation) Hostname() (r string, exists bool) + func (m *HostMutation) ID() (id int, exists bool) + func (m *HostMutation) Interface() (r string, exists bool) + func (m *HostMutation) LastSeen() (r int, exists bool) + func (m *HostMutation) MemberCleared() bool + func (m *HostMutation) MemberIDs() (ids []int) + func (m *HostMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *HostMutation) OldHostname(ctx context.Context) (v string, err error) + func (m *HostMutation) OldInterface(ctx context.Context) (v string, err error) + func (m *HostMutation) OldLastSeen(ctx context.Context) (v int, err error) + func (m *HostMutation) Op() Op + func (m *HostMutation) RemoveActionIDs(ids ...int) + func (m *HostMutation) RemoveBotIDs(ids ...int) + func (m *HostMutation) RemoveMemberIDs(ids ...int) + func (m *HostMutation) RemovedActionsIDs() (ids []int) + func (m *HostMutation) RemovedBotsIDs() (ids []int) + func (m *HostMutation) RemovedEdges() []string + func (m *HostMutation) RemovedIDs(name string) []ent.Value + func (m *HostMutation) RemovedMemberIDs() (ids []int) + func (m *HostMutation) ResetActions() + func (m *HostMutation) ResetBots() + func (m *HostMutation) ResetEdge(name string) error + func (m *HostMutation) ResetField(name string) error + func (m *HostMutation) ResetHostname() + func (m *HostMutation) ResetInterface() + func (m *HostMutation) ResetLastSeen() + func (m *HostMutation) ResetMember() + func (m *HostMutation) SetField(name string, value ent.Value) error + func (m *HostMutation) SetHostname(s string) + func (m *HostMutation) SetInterface(s string) + func (m *HostMutation) SetLastSeen(i int) + func (m *HostMutation) Type() string + func (m HostMutation) Client() *Client + func (m HostMutation) Tx() (*Tx, error) + type HostQuery struct + func (hq *HostQuery) All(ctx context.Context) ([]*Host, error) + func (hq *HostQuery) AllX(ctx context.Context) []*Host + func (hq *HostQuery) Clone() *HostQuery + func (hq *HostQuery) Count(ctx context.Context) (int, error) + func (hq *HostQuery) CountX(ctx context.Context) int + func (hq *HostQuery) Exist(ctx context.Context) (bool, error) + func (hq *HostQuery) ExistX(ctx context.Context) bool + func (hq *HostQuery) First(ctx context.Context) (*Host, error) + func (hq *HostQuery) FirstID(ctx context.Context) (id int, err error) + func (hq *HostQuery) FirstIDX(ctx context.Context) int + func (hq *HostQuery) FirstX(ctx context.Context) *Host + func (hq *HostQuery) GroupBy(field string, fields ...string) *HostGroupBy + func (hq *HostQuery) IDs(ctx context.Context) ([]int, error) + func (hq *HostQuery) IDsX(ctx context.Context) []int + func (hq *HostQuery) Limit(limit int) *HostQuery + func (hq *HostQuery) Offset(offset int) *HostQuery + func (hq *HostQuery) Only(ctx context.Context) (*Host, error) + func (hq *HostQuery) OnlyID(ctx context.Context) (id int, err error) + func (hq *HostQuery) OnlyIDX(ctx context.Context) int + func (hq *HostQuery) OnlyX(ctx context.Context) *Host + func (hq *HostQuery) Order(o ...OrderFunc) *HostQuery + func (hq *HostQuery) QueryActions() *ActionQuery + func (hq *HostQuery) QueryBots() *BotQuery + func (hq *HostQuery) QueryMember() *GroupQuery + func (hq *HostQuery) Select(field string, fields ...string) *HostSelect + func (hq *HostQuery) Where(ps ...predicate.Host) *HostQuery + func (hq *HostQuery) WithActions(opts ...func(*ActionQuery)) *HostQuery + func (hq *HostQuery) WithBots(opts ...func(*BotQuery)) *HostQuery + func (hq *HostQuery) WithMember(opts ...func(*GroupQuery)) *HostQuery + type HostSelect struct + func (hs *HostSelect) Bool(ctx context.Context) (_ bool, err error) + func (hs *HostSelect) BoolX(ctx context.Context) bool + func (hs *HostSelect) Bools(ctx context.Context) ([]bool, error) + func (hs *HostSelect) BoolsX(ctx context.Context) []bool + func (hs *HostSelect) Float64(ctx context.Context) (_ float64, err error) + func (hs *HostSelect) Float64X(ctx context.Context) float64 + func (hs *HostSelect) Float64s(ctx context.Context) ([]float64, error) + func (hs *HostSelect) Float64sX(ctx context.Context) []float64 + func (hs *HostSelect) Int(ctx context.Context) (_ int, err error) + func (hs *HostSelect) IntX(ctx context.Context) int + func (hs *HostSelect) Ints(ctx context.Context) ([]int, error) + func (hs *HostSelect) IntsX(ctx context.Context) []int + func (hs *HostSelect) Scan(ctx context.Context, v interface{}) error + func (hs *HostSelect) ScanX(ctx context.Context, v interface{}) + func (hs *HostSelect) String(ctx context.Context) (_ string, err error) + func (hs *HostSelect) StringX(ctx context.Context) string + func (hs *HostSelect) Strings(ctx context.Context) ([]string, error) + func (hs *HostSelect) StringsX(ctx context.Context) []string + type HostUpdate struct + func (hu *HostUpdate) AddActionIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) AddActions(a ...*Action) *HostUpdate + func (hu *HostUpdate) AddBotIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) AddBots(b ...*Bot) *HostUpdate + func (hu *HostUpdate) AddLastSeen(i int) *HostUpdate + func (hu *HostUpdate) AddMember(g ...*Group) *HostUpdate + func (hu *HostUpdate) AddMemberIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) ClearActions() *HostUpdate + func (hu *HostUpdate) ClearBots() *HostUpdate + func (hu *HostUpdate) ClearMember() *HostUpdate + func (hu *HostUpdate) Exec(ctx context.Context) error + func (hu *HostUpdate) ExecX(ctx context.Context) + func (hu *HostUpdate) Mutation() *HostMutation + func (hu *HostUpdate) RemoveActionIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) RemoveActions(a ...*Action) *HostUpdate + func (hu *HostUpdate) RemoveBotIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) RemoveBots(b ...*Bot) *HostUpdate + func (hu *HostUpdate) RemoveMember(g ...*Group) *HostUpdate + func (hu *HostUpdate) RemoveMemberIDs(ids ...int) *HostUpdate + func (hu *HostUpdate) Save(ctx context.Context) (int, error) + func (hu *HostUpdate) SaveX(ctx context.Context) int + func (hu *HostUpdate) SetHostname(s string) *HostUpdate + func (hu *HostUpdate) SetInterface(s string) *HostUpdate + func (hu *HostUpdate) SetLastSeen(i int) *HostUpdate + func (hu *HostUpdate) SetNillableLastSeen(i *int) *HostUpdate + func (hu *HostUpdate) Where(ps ...predicate.Host) *HostUpdate + type HostUpdateOne struct + func (huo *HostUpdateOne) AddActionIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) AddActions(a ...*Action) *HostUpdateOne + func (huo *HostUpdateOne) AddBotIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) AddBots(b ...*Bot) *HostUpdateOne + func (huo *HostUpdateOne) AddLastSeen(i int) *HostUpdateOne + func (huo *HostUpdateOne) AddMember(g ...*Group) *HostUpdateOne + func (huo *HostUpdateOne) AddMemberIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) ClearActions() *HostUpdateOne + func (huo *HostUpdateOne) ClearBots() *HostUpdateOne + func (huo *HostUpdateOne) ClearMember() *HostUpdateOne + func (huo *HostUpdateOne) Exec(ctx context.Context) error + func (huo *HostUpdateOne) ExecX(ctx context.Context) + func (huo *HostUpdateOne) Mutation() *HostMutation + func (huo *HostUpdateOne) RemoveActionIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) RemoveActions(a ...*Action) *HostUpdateOne + func (huo *HostUpdateOne) RemoveBotIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) RemoveBots(b ...*Bot) *HostUpdateOne + func (huo *HostUpdateOne) RemoveMember(g ...*Group) *HostUpdateOne + func (huo *HostUpdateOne) RemoveMemberIDs(ids ...int) *HostUpdateOne + func (huo *HostUpdateOne) Save(ctx context.Context) (*Host, error) + func (huo *HostUpdateOne) SaveX(ctx context.Context) *Host + func (huo *HostUpdateOne) SetHostname(s string) *HostUpdateOne + func (huo *HostUpdateOne) SetInterface(s string) *HostUpdateOne + func (huo *HostUpdateOne) SetLastSeen(i int) *HostUpdateOne + func (huo *HostUpdateOne) SetNillableLastSeen(i *int) *HostUpdateOne + type Hosts []*Host + type MutateFunc = ent.MutateFunc + type Mutation = ent.Mutation + type Mutator = ent.Mutator + type NotFoundError struct + func (e *NotFoundError) Error() string + type NotLoadedError struct + func (e *NotLoadedError) Error() string + type NotSingularError struct + func (e *NotSingularError) Error() string + type Op = ent.Op + type Option func(*config) + func Debug() Option + func Driver(driver dialect.Driver) Option + func Log(fn func(...interface{})) Option + type OrderFunc func(*sql.Selector, func(string) bool) + func Asc(fields ...string) OrderFunc + func Desc(fields ...string) OrderFunc + type Policy = ent.Policy + type Query = ent.Query + type RollbackFunc func(context.Context, *Tx) error + func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error + type RollbackHook func(Rollbacker) Rollbacker + type Rollbacker interface + Rollback func(context.Context, *Tx) error + type Tx struct + Action *ActionClient + Bot *BotClient + Group *GroupClient + Host *HostClient + User *UserClient + func TxFromContext(ctx context.Context) *Tx + func (tx *Tx) Client() *Client + func (tx *Tx) Commit() error + func (tx *Tx) OnCommit(f CommitHook) + func (tx *Tx) OnRollback(f RollbackHook) + func (tx *Tx) Rollback() error + type User struct + ID int + Password string + Username string + func (u *User) String() string + func (u *User) Unwrap() *User + func (u *User) Update() *UserUpdateOne + type UserClient struct + func NewUserClient(c config) *UserClient + func (c *UserClient) Create() *UserCreate + func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk + func (c *UserClient) Delete() *UserDelete + func (c *UserClient) DeleteOne(u *User) *UserDeleteOne + func (c *UserClient) DeleteOneID(id int) *UserDeleteOne + func (c *UserClient) Get(ctx context.Context, id int) (*User, error) + func (c *UserClient) GetX(ctx context.Context, id int) *User + func (c *UserClient) Hooks() []Hook + func (c *UserClient) Query() *UserQuery + func (c *UserClient) Update() *UserUpdate + func (c *UserClient) UpdateOne(u *User) *UserUpdateOne + func (c *UserClient) UpdateOneID(id int) *UserUpdateOne + func (c *UserClient) Use(hooks ...Hook) + type UserCreate struct + func (uc *UserCreate) Mutation() *UserMutation + func (uc *UserCreate) Save(ctx context.Context) (*User, error) + func (uc *UserCreate) SaveX(ctx context.Context) *User + func (uc *UserCreate) SetPassword(s string) *UserCreate + func (uc *UserCreate) SetUsername(s string) *UserCreate + type UserCreateBulk struct + func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error) + func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User + type UserDelete struct + func (ud *UserDelete) Exec(ctx context.Context) (int, error) + func (ud *UserDelete) ExecX(ctx context.Context) int + func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete + type UserDeleteOne struct + func (udo *UserDeleteOne) Exec(ctx context.Context) error + func (udo *UserDeleteOne) ExecX(ctx context.Context) + type UserGroupBy struct + func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy + func (ugb *UserGroupBy) Bool(ctx context.Context) (_ bool, err error) + func (ugb *UserGroupBy) BoolX(ctx context.Context) bool + func (ugb *UserGroupBy) Bools(ctx context.Context) ([]bool, error) + func (ugb *UserGroupBy) BoolsX(ctx context.Context) []bool + func (ugb *UserGroupBy) Float64(ctx context.Context) (_ float64, err error) + func (ugb *UserGroupBy) Float64X(ctx context.Context) float64 + func (ugb *UserGroupBy) Float64s(ctx context.Context) ([]float64, error) + func (ugb *UserGroupBy) Float64sX(ctx context.Context) []float64 + func (ugb *UserGroupBy) Int(ctx context.Context) (_ int, err error) + func (ugb *UserGroupBy) IntX(ctx context.Context) int + func (ugb *UserGroupBy) Ints(ctx context.Context) ([]int, error) + func (ugb *UserGroupBy) IntsX(ctx context.Context) []int + func (ugb *UserGroupBy) Scan(ctx context.Context, v interface{}) error + func (ugb *UserGroupBy) ScanX(ctx context.Context, v interface{}) + func (ugb *UserGroupBy) String(ctx context.Context) (_ string, err error) + func (ugb *UserGroupBy) StringX(ctx context.Context) string + func (ugb *UserGroupBy) Strings(ctx context.Context) ([]string, error) + func (ugb *UserGroupBy) StringsX(ctx context.Context) []string + type UserMutation struct + func (m *UserMutation) AddField(name string, value ent.Value) error + func (m *UserMutation) AddedEdges() []string + func (m *UserMutation) AddedField(name string) (ent.Value, bool) + func (m *UserMutation) AddedFields() []string + func (m *UserMutation) AddedIDs(name string) []ent.Value + func (m *UserMutation) ClearEdge(name string) error + func (m *UserMutation) ClearField(name string) error + func (m *UserMutation) ClearedEdges() []string + func (m *UserMutation) ClearedFields() []string + func (m *UserMutation) EdgeCleared(name string) bool + func (m *UserMutation) Field(name string) (ent.Value, bool) + func (m *UserMutation) FieldCleared(name string) bool + func (m *UserMutation) Fields() []string + func (m *UserMutation) ID() (id int, exists bool) + func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error) + func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error) + func (m *UserMutation) OldUsername(ctx context.Context) (v string, err error) + func (m *UserMutation) Op() Op + func (m *UserMutation) Password() (r string, exists bool) + func (m *UserMutation) RemovedEdges() []string + func (m *UserMutation) RemovedIDs(name string) []ent.Value + func (m *UserMutation) ResetEdge(name string) error + func (m *UserMutation) ResetField(name string) error + func (m *UserMutation) ResetPassword() + func (m *UserMutation) ResetUsername() + func (m *UserMutation) SetField(name string, value ent.Value) error + func (m *UserMutation) SetPassword(s string) + func (m *UserMutation) SetUsername(s string) + func (m *UserMutation) Type() string + func (m *UserMutation) Username() (r string, exists bool) + func (m UserMutation) Client() *Client + func (m UserMutation) Tx() (*Tx, error) + type UserQuery struct + func (uq *UserQuery) All(ctx context.Context) ([]*User, error) + func (uq *UserQuery) AllX(ctx context.Context) []*User + func (uq *UserQuery) Clone() *UserQuery + func (uq *UserQuery) Count(ctx context.Context) (int, error) + func (uq *UserQuery) CountX(ctx context.Context) int + func (uq *UserQuery) Exist(ctx context.Context) (bool, error) + func (uq *UserQuery) ExistX(ctx context.Context) bool + func (uq *UserQuery) First(ctx context.Context) (*User, error) + func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error) + func (uq *UserQuery) FirstIDX(ctx context.Context) int + func (uq *UserQuery) FirstX(ctx context.Context) *User + func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy + func (uq *UserQuery) IDs(ctx context.Context) ([]int, error) + func (uq *UserQuery) IDsX(ctx context.Context) []int + func (uq *UserQuery) Limit(limit int) *UserQuery + func (uq *UserQuery) Offset(offset int) *UserQuery + func (uq *UserQuery) Only(ctx context.Context) (*User, error) + func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error) + func (uq *UserQuery) OnlyIDX(ctx context.Context) int + func (uq *UserQuery) OnlyX(ctx context.Context) *User + func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery + func (uq *UserQuery) Select(field string, fields ...string) *UserSelect + func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery + type UserSelect struct + func (us *UserSelect) Bool(ctx context.Context) (_ bool, err error) + func (us *UserSelect) BoolX(ctx context.Context) bool + func (us *UserSelect) Bools(ctx context.Context) ([]bool, error) + func (us *UserSelect) BoolsX(ctx context.Context) []bool + func (us *UserSelect) Float64(ctx context.Context) (_ float64, err error) + func (us *UserSelect) Float64X(ctx context.Context) float64 + func (us *UserSelect) Float64s(ctx context.Context) ([]float64, error) + func (us *UserSelect) Float64sX(ctx context.Context) []float64 + func (us *UserSelect) Int(ctx context.Context) (_ int, err error) + func (us *UserSelect) IntX(ctx context.Context) int + func (us *UserSelect) Ints(ctx context.Context) ([]int, error) + func (us *UserSelect) IntsX(ctx context.Context) []int + func (us *UserSelect) Scan(ctx context.Context, v interface{}) error + func (us *UserSelect) ScanX(ctx context.Context, v interface{}) + func (us *UserSelect) String(ctx context.Context) (_ string, err error) + func (us *UserSelect) StringX(ctx context.Context) string + func (us *UserSelect) Strings(ctx context.Context) ([]string, error) + func (us *UserSelect) StringsX(ctx context.Context) []string + type UserUpdate struct + func (uu *UserUpdate) Exec(ctx context.Context) error + func (uu *UserUpdate) ExecX(ctx context.Context) + func (uu *UserUpdate) Mutation() *UserMutation + func (uu *UserUpdate) Save(ctx context.Context) (int, error) + func (uu *UserUpdate) SaveX(ctx context.Context) int + func (uu *UserUpdate) SetPassword(s string) *UserUpdate + func (uu *UserUpdate) SetUsername(s string) *UserUpdate + func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate + type UserUpdateOne struct + func (uuo *UserUpdateOne) Exec(ctx context.Context) error + func (uuo *UserUpdateOne) ExecX(ctx context.Context) + func (uuo *UserUpdateOne) Mutation() *UserMutation + func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) + func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User + func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne + func (uuo *UserUpdateOne) SetUsername(s string) *UserUpdateOne + type Users []*User + type ValidationError struct + Name string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Value = ent.Value