Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Schedule
- func AgentIDContains(v string) predicate.Schedule
- func AgentIDContainsFold(v string) predicate.Schedule
- func AgentIDEQ(v string) predicate.Schedule
- func AgentIDEqualFold(v string) predicate.Schedule
- func AgentIDGT(v string) predicate.Schedule
- func AgentIDGTE(v string) predicate.Schedule
- func AgentIDHasPrefix(v string) predicate.Schedule
- func AgentIDHasSuffix(v string) predicate.Schedule
- func AgentIDIn(vs ...string) predicate.Schedule
- func AgentIDLT(v string) predicate.Schedule
- func AgentIDLTE(v string) predicate.Schedule
- func AgentIDNEQ(v string) predicate.Schedule
- func AgentIDNotIn(vs ...string) predicate.Schedule
- func And(predicates ...predicate.Schedule) predicate.Schedule
- func CommitEvery(v time.Duration) predicate.Schedule
- func CommitEveryEQ(v time.Duration) predicate.Schedule
- func CommitEveryGT(v time.Duration) predicate.Schedule
- func CommitEveryGTE(v time.Duration) predicate.Schedule
- func CommitEveryIn(vs ...time.Duration) predicate.Schedule
- func CommitEveryLT(v time.Duration) predicate.Schedule
- func CommitEveryLTE(v time.Duration) predicate.Schedule
- func CommitEveryNEQ(v time.Duration) predicate.Schedule
- func CommitEveryNotIn(vs ...time.Duration) predicate.Schedule
- func ID(id string) predicate.Schedule
- func IDContainsFold(id string) predicate.Schedule
- func IDEQ(id string) predicate.Schedule
- func IDEqualFold(id string) predicate.Schedule
- func IDGT(id string) predicate.Schedule
- func IDGTE(id string) predicate.Schedule
- func IDIn(ids ...string) predicate.Schedule
- func IDLT(id string) predicate.Schedule
- func IDLTE(id string) predicate.Schedule
- func IDNEQ(id string) predicate.Schedule
- func IDNotIn(ids ...string) predicate.Schedule
- func Jitter(v time.Duration) predicate.Schedule
- func JitterEQ(v time.Duration) predicate.Schedule
- func JitterGT(v time.Duration) predicate.Schedule
- func JitterGTE(v time.Duration) predicate.Schedule
- func JitterIn(vs ...time.Duration) predicate.Schedule
- func JitterLT(v time.Duration) predicate.Schedule
- func JitterLTE(v time.Duration) predicate.Schedule
- func JitterNEQ(v time.Duration) predicate.Schedule
- func JitterNotIn(vs ...time.Duration) predicate.Schedule
- func Kind(v string) predicate.Schedule
- func KindContains(v string) predicate.Schedule
- func KindContainsFold(v string) predicate.Schedule
- func KindEQ(v string) predicate.Schedule
- func KindEqualFold(v string) predicate.Schedule
- func KindGT(v string) predicate.Schedule
- func KindGTE(v string) predicate.Schedule
- func KindHasPrefix(v string) predicate.Schedule
- func KindHasSuffix(v string) predicate.Schedule
- func KindIn(vs ...string) predicate.Schedule
- func KindLT(v string) predicate.Schedule
- func KindLTE(v string) predicate.Schedule
- func KindNEQ(v string) predicate.Schedule
- func KindNotIn(vs ...string) predicate.Schedule
- func LongestGap(v time.Duration) predicate.Schedule
- func LongestGapEQ(v time.Duration) predicate.Schedule
- func LongestGapGT(v time.Duration) predicate.Schedule
- func LongestGapGTE(v time.Duration) predicate.Schedule
- func LongestGapIn(vs ...time.Duration) predicate.Schedule
- func LongestGapLT(v time.Duration) predicate.Schedule
- func LongestGapLTE(v time.Duration) predicate.Schedule
- func LongestGapNEQ(v time.Duration) predicate.Schedule
- func LongestGapNotIn(vs ...time.Duration) predicate.Schedule
- func Not(p predicate.Schedule) predicate.Schedule
- func Or(predicates ...predicate.Schedule) predicate.Schedule
- func ReportedAt(v time.Time) predicate.Schedule
- func ReportedAtEQ(v time.Time) predicate.Schedule
- func ReportedAtGT(v time.Time) predicate.Schedule
- func ReportedAtGTE(v time.Time) predicate.Schedule
- func ReportedAtIn(vs ...time.Time) predicate.Schedule
- func ReportedAtLT(v time.Time) predicate.Schedule
- func ReportedAtLTE(v time.Time) predicate.Schedule
- func ReportedAtNEQ(v time.Time) predicate.Schedule
- func ReportedAtNotIn(vs ...time.Time) predicate.Schedule
- func Since(v time.Time) predicate.Schedule
- func SinceEQ(v time.Time) predicate.Schedule
- func SinceGT(v time.Time) predicate.Schedule
- func SinceGTE(v time.Time) predicate.Schedule
- func SinceIn(vs ...time.Time) predicate.Schedule
- func SinceLT(v time.Time) predicate.Schedule
- func SinceLTE(v time.Time) predicate.Schedule
- func SinceNEQ(v time.Time) predicate.Schedule
- func SinceNotIn(vs ...time.Time) predicate.Schedule
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCommitEvery(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJitter(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByLongestGap(opts ...sql.OrderTermOption) OrderOption
- func ByReportedAt(opts ...sql.OrderTermOption) OrderOption
- func BySince(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the schedule type in the database. Label = "schedule" // FieldID holds the string denoting the id field in the database. FieldID = "set_name" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldLongestGap holds the string denoting the longest_gap field in the database. FieldLongestGap = "longest_gap" // FieldJitter holds the string denoting the jitter field in the database. FieldJitter = "jitter" // FieldCommitEvery holds the string denoting the commit_every field in the database. FieldCommitEvery = "commit_every" // FieldSince holds the string denoting the since field in the database. FieldSince = "since" // FieldReportedAt holds the string denoting the reported_at field in the database. FieldReportedAt = "reported_at" // Table holds the table name of the schedule in the database. Table = "schedules" )
Variables ¶
var Columns = []string{ FieldID, FieldAgentID, FieldKind, FieldLongestGap, FieldJitter, FieldCommitEvery, FieldSince, FieldReportedAt, }
Columns holds all SQL columns for schedule fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func CommitEvery ¶
CommitEvery applies equality check predicate on the "commit_every" field. It's identical to CommitEveryEQ.
func CommitEveryEQ ¶
CommitEveryEQ applies the EQ predicate on the "commit_every" field.
func CommitEveryGT ¶
CommitEveryGT applies the GT predicate on the "commit_every" field.
func CommitEveryGTE ¶
CommitEveryGTE applies the GTE predicate on the "commit_every" field.
func CommitEveryIn ¶
CommitEveryIn applies the In predicate on the "commit_every" field.
func CommitEveryLT ¶
CommitEveryLT applies the LT predicate on the "commit_every" field.
func CommitEveryLTE ¶
CommitEveryLTE applies the LTE predicate on the "commit_every" field.
func CommitEveryNEQ ¶
CommitEveryNEQ applies the NEQ predicate on the "commit_every" field.
func CommitEveryNotIn ¶
CommitEveryNotIn applies the NotIn predicate on the "commit_every" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Jitter ¶
Jitter applies equality check predicate on the "jitter" field. It's identical to JitterEQ.
func JitterNotIn ¶
JitterNotIn applies the NotIn predicate on the "jitter" field.
func KindContains ¶
KindContains applies the Contains predicate on the "kind" field.
func KindContainsFold ¶
KindContainsFold applies the ContainsFold predicate on the "kind" field.
func KindEqualFold ¶
KindEqualFold applies the EqualFold predicate on the "kind" field.
func KindHasPrefix ¶
KindHasPrefix applies the HasPrefix predicate on the "kind" field.
func KindHasSuffix ¶
KindHasSuffix applies the HasSuffix predicate on the "kind" field.
func LongestGap ¶
LongestGap applies equality check predicate on the "longest_gap" field. It's identical to LongestGapEQ.
func LongestGapEQ ¶
LongestGapEQ applies the EQ predicate on the "longest_gap" field.
func LongestGapGT ¶
LongestGapGT applies the GT predicate on the "longest_gap" field.
func LongestGapGTE ¶
LongestGapGTE applies the GTE predicate on the "longest_gap" field.
func LongestGapIn ¶
LongestGapIn applies the In predicate on the "longest_gap" field.
func LongestGapLT ¶
LongestGapLT applies the LT predicate on the "longest_gap" field.
func LongestGapLTE ¶
LongestGapLTE applies the LTE predicate on the "longest_gap" field.
func LongestGapNEQ ¶
LongestGapNEQ applies the NEQ predicate on the "longest_gap" field.
func LongestGapNotIn ¶
LongestGapNotIn applies the NotIn predicate on the "longest_gap" field.
func ReportedAt ¶
ReportedAt applies equality check predicate on the "reported_at" field. It's identical to ReportedAtEQ.
func ReportedAtEQ ¶
ReportedAtEQ applies the EQ predicate on the "reported_at" field.
func ReportedAtGT ¶
ReportedAtGT applies the GT predicate on the "reported_at" field.
func ReportedAtGTE ¶
ReportedAtGTE applies the GTE predicate on the "reported_at" field.
func ReportedAtIn ¶
ReportedAtIn applies the In predicate on the "reported_at" field.
func ReportedAtLT ¶
ReportedAtLT applies the LT predicate on the "reported_at" field.
func ReportedAtLTE ¶
ReportedAtLTE applies the LTE predicate on the "reported_at" field.
func ReportedAtNEQ ¶
ReportedAtNEQ applies the NEQ predicate on the "reported_at" field.
func ReportedAtNotIn ¶
ReportedAtNotIn applies the NotIn predicate on the "reported_at" field.
func Since ¶
Since applies equality check predicate on the "since" field. It's identical to SinceEQ.
func SinceNotIn ¶
SinceNotIn applies the NotIn predicate on the "since" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Schedule queries.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByCommitEvery ¶
func ByCommitEvery(opts ...sql.OrderTermOption) OrderOption
ByCommitEvery orders the results by the commit_every field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJitter ¶
func ByJitter(opts ...sql.OrderTermOption) OrderOption
ByJitter orders the results by the jitter field.
func ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByLongestGap ¶
func ByLongestGap(opts ...sql.OrderTermOption) OrderOption
ByLongestGap orders the results by the longest_gap field.
func ByReportedAt ¶
func ByReportedAt(opts ...sql.OrderTermOption) OrderOption
ByReportedAt orders the results by the reported_at field.
func BySince ¶
func BySince(opts ...sql.OrderTermOption) OrderOption
BySince orders the results by the since field.