Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sample) predicate.Sample
- func Error(v string) predicate.Sample
- func ErrorContains(v string) predicate.Sample
- func ErrorContainsFold(v string) predicate.Sample
- func ErrorEQ(v string) predicate.Sample
- func ErrorEqualFold(v string) predicate.Sample
- func ErrorGT(v string) predicate.Sample
- func ErrorGTE(v string) predicate.Sample
- func ErrorHasPrefix(v string) predicate.Sample
- func ErrorHasSuffix(v string) predicate.Sample
- func ErrorIn(vs ...string) predicate.Sample
- func ErrorIsNil() predicate.Sample
- func ErrorLT(v string) predicate.Sample
- func ErrorLTE(v string) predicate.Sample
- func ErrorNEQ(v string) predicate.Sample
- func ErrorNotIn(vs ...string) predicate.Sample
- func ErrorNotNil() predicate.Sample
- func ID(id int) predicate.Sample
- func IDEQ(id int) predicate.Sample
- func IDGT(id int) predicate.Sample
- func IDGTE(id int) predicate.Sample
- func IDIn(ids ...int) predicate.Sample
- func IDLT(id int) predicate.Sample
- func IDLTE(id int) predicate.Sample
- func IDNEQ(id int) predicate.Sample
- func IDNotIn(ids ...int) predicate.Sample
- func Not(p predicate.Sample) predicate.Sample
- func Or(predicates ...predicate.Sample) predicate.Sample
- func RttMs(v float64) predicate.Sample
- func RttMsEQ(v float64) predicate.Sample
- func RttMsGT(v float64) predicate.Sample
- func RttMsGTE(v float64) predicate.Sample
- func RttMsIn(vs ...float64) predicate.Sample
- func RttMsIsNil() predicate.Sample
- func RttMsLT(v float64) predicate.Sample
- func RttMsLTE(v float64) predicate.Sample
- func RttMsNEQ(v float64) predicate.Sample
- func RttMsNotIn(vs ...float64) predicate.Sample
- func RttMsNotNil() predicate.Sample
- func Success(v bool) predicate.Sample
- func SuccessEQ(v bool) predicate.Sample
- func SuccessNEQ(v bool) predicate.Sample
- func TargetHost(v string) predicate.Sample
- func TargetHostContains(v string) predicate.Sample
- func TargetHostContainsFold(v string) predicate.Sample
- func TargetHostEQ(v string) predicate.Sample
- func TargetHostEqualFold(v string) predicate.Sample
- func TargetHostGT(v string) predicate.Sample
- func TargetHostGTE(v string) predicate.Sample
- func TargetHostHasPrefix(v string) predicate.Sample
- func TargetHostHasSuffix(v string) predicate.Sample
- func TargetHostIn(vs ...string) predicate.Sample
- func TargetHostLT(v string) predicate.Sample
- func TargetHostLTE(v string) predicate.Sample
- func TargetHostNEQ(v string) predicate.Sample
- func TargetHostNotIn(vs ...string) predicate.Sample
- func TargetKind(v string) predicate.Sample
- func TargetKindContains(v string) predicate.Sample
- func TargetKindContainsFold(v string) predicate.Sample
- func TargetKindEQ(v string) predicate.Sample
- func TargetKindEqualFold(v string) predicate.Sample
- func TargetKindGT(v string) predicate.Sample
- func TargetKindGTE(v string) predicate.Sample
- func TargetKindHasPrefix(v string) predicate.Sample
- func TargetKindHasSuffix(v string) predicate.Sample
- func TargetKindIn(vs ...string) predicate.Sample
- func TargetKindLT(v string) predicate.Sample
- func TargetKindLTE(v string) predicate.Sample
- func TargetKindNEQ(v string) predicate.Sample
- func TargetKindNotIn(vs ...string) predicate.Sample
- func TargetLabel(v string) predicate.Sample
- func TargetLabelContains(v string) predicate.Sample
- func TargetLabelContainsFold(v string) predicate.Sample
- func TargetLabelEQ(v string) predicate.Sample
- func TargetLabelEqualFold(v string) predicate.Sample
- func TargetLabelGT(v string) predicate.Sample
- func TargetLabelGTE(v string) predicate.Sample
- func TargetLabelHasPrefix(v string) predicate.Sample
- func TargetLabelHasSuffix(v string) predicate.Sample
- func TargetLabelIn(vs ...string) predicate.Sample
- func TargetLabelLT(v string) predicate.Sample
- func TargetLabelLTE(v string) predicate.Sample
- func TargetLabelNEQ(v string) predicate.Sample
- func TargetLabelNotIn(vs ...string) predicate.Sample
- func TargetPort(v int) predicate.Sample
- func TargetPortEQ(v int) predicate.Sample
- func TargetPortGT(v int) predicate.Sample
- func TargetPortGTE(v int) predicate.Sample
- func TargetPortIn(vs ...int) predicate.Sample
- func TargetPortIsNil() predicate.Sample
- func TargetPortLT(v int) predicate.Sample
- func TargetPortLTE(v int) predicate.Sample
- func TargetPortNEQ(v int) predicate.Sample
- func TargetPortNotIn(vs ...int) predicate.Sample
- func TargetPortNotNil() predicate.Sample
- func TsUnixMs(v int64) predicate.Sample
- func TsUnixMsEQ(v int64) predicate.Sample
- func TsUnixMsGT(v int64) predicate.Sample
- func TsUnixMsGTE(v int64) predicate.Sample
- func TsUnixMsIn(vs ...int64) predicate.Sample
- func TsUnixMsLT(v int64) predicate.Sample
- func TsUnixMsLTE(v int64) predicate.Sample
- func TsUnixMsNEQ(v int64) predicate.Sample
- func TsUnixMsNotIn(vs ...int64) predicate.Sample
- func ValidColumn(column string) bool
- type OrderOption
- func ByError(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRttMs(opts ...sql.OrderTermOption) OrderOption
- func BySuccess(opts ...sql.OrderTermOption) OrderOption
- func ByTargetHost(opts ...sql.OrderTermOption) OrderOption
- func ByTargetKind(opts ...sql.OrderTermOption) OrderOption
- func ByTargetLabel(opts ...sql.OrderTermOption) OrderOption
- func ByTargetPort(opts ...sql.OrderTermOption) OrderOption
- func ByTsUnixMs(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sample type in the database. Label = "sample" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTsUnixMs holds the string denoting the ts_unix_ms field in the database. FieldTsUnixMs = "ts_unix_ms" // FieldTargetLabel holds the string denoting the target_label field in the database. FieldTargetLabel = "target_label" // FieldTargetKind holds the string denoting the target_kind field in the database. FieldTargetKind = "target_kind" // FieldTargetHost holds the string denoting the target_host field in the database. FieldTargetHost = "target_host" // FieldTargetPort holds the string denoting the target_port field in the database. FieldTargetPort = "target_port" // FieldSuccess holds the string denoting the success field in the database. FieldSuccess = "success" // FieldRttMs holds the string denoting the rtt_ms field in the database. FieldRttMs = "rtt_ms" // FieldError holds the string denoting the error field in the database. FieldError = "error" // Table holds the table name of the sample in the database. Table = "samples" )
Variables ¶
var Columns = []string{ FieldID, FieldTsUnixMs, FieldTargetLabel, FieldTargetKind, FieldTargetHost, FieldTargetPort, FieldSuccess, FieldRttMs, FieldError, }
Columns holds all SQL columns for sample fields.
var ( // TargetLabelValidator is a validator for the "target_label" field. It is called by the builders before save. TargetLabelValidator func(string) error )
Functions ¶
func Error ¶
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEqualFold ¶
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorHasPrefix ¶
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIsNil ¶
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorNotIn ¶
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶
ErrorNotNil applies the NotNil predicate on the "error" field.
func RttMs ¶
RttMs applies equality check predicate on the "rtt_ms" field. It's identical to RttMsEQ.
func RttMsIsNil ¶
RttMsIsNil applies the IsNil predicate on the "rtt_ms" field.
func RttMsNotIn ¶
RttMsNotIn applies the NotIn predicate on the "rtt_ms" field.
func RttMsNotNil ¶
RttMsNotNil applies the NotNil predicate on the "rtt_ms" field.
func Success ¶
Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
func SuccessNEQ ¶
SuccessNEQ applies the NEQ predicate on the "success" field.
func TargetHost ¶
TargetHost applies equality check predicate on the "target_host" field. It's identical to TargetHostEQ.
func TargetHostContains ¶
TargetHostContains applies the Contains predicate on the "target_host" field.
func TargetHostContainsFold ¶
TargetHostContainsFold applies the ContainsFold predicate on the "target_host" field.
func TargetHostEQ ¶
TargetHostEQ applies the EQ predicate on the "target_host" field.
func TargetHostEqualFold ¶
TargetHostEqualFold applies the EqualFold predicate on the "target_host" field.
func TargetHostGT ¶
TargetHostGT applies the GT predicate on the "target_host" field.
func TargetHostGTE ¶
TargetHostGTE applies the GTE predicate on the "target_host" field.
func TargetHostHasPrefix ¶
TargetHostHasPrefix applies the HasPrefix predicate on the "target_host" field.
func TargetHostHasSuffix ¶
TargetHostHasSuffix applies the HasSuffix predicate on the "target_host" field.
func TargetHostIn ¶
TargetHostIn applies the In predicate on the "target_host" field.
func TargetHostLT ¶
TargetHostLT applies the LT predicate on the "target_host" field.
func TargetHostLTE ¶
TargetHostLTE applies the LTE predicate on the "target_host" field.
func TargetHostNEQ ¶
TargetHostNEQ applies the NEQ predicate on the "target_host" field.
func TargetHostNotIn ¶
TargetHostNotIn applies the NotIn predicate on the "target_host" field.
func TargetKind ¶
TargetKind applies equality check predicate on the "target_kind" field. It's identical to TargetKindEQ.
func TargetKindContains ¶
TargetKindContains applies the Contains predicate on the "target_kind" field.
func TargetKindContainsFold ¶
TargetKindContainsFold applies the ContainsFold predicate on the "target_kind" field.
func TargetKindEQ ¶
TargetKindEQ applies the EQ predicate on the "target_kind" field.
func TargetKindEqualFold ¶
TargetKindEqualFold applies the EqualFold predicate on the "target_kind" field.
func TargetKindGT ¶
TargetKindGT applies the GT predicate on the "target_kind" field.
func TargetKindGTE ¶
TargetKindGTE applies the GTE predicate on the "target_kind" field.
func TargetKindHasPrefix ¶
TargetKindHasPrefix applies the HasPrefix predicate on the "target_kind" field.
func TargetKindHasSuffix ¶
TargetKindHasSuffix applies the HasSuffix predicate on the "target_kind" field.
func TargetKindIn ¶
TargetKindIn applies the In predicate on the "target_kind" field.
func TargetKindLT ¶
TargetKindLT applies the LT predicate on the "target_kind" field.
func TargetKindLTE ¶
TargetKindLTE applies the LTE predicate on the "target_kind" field.
func TargetKindNEQ ¶
TargetKindNEQ applies the NEQ predicate on the "target_kind" field.
func TargetKindNotIn ¶
TargetKindNotIn applies the NotIn predicate on the "target_kind" field.
func TargetLabel ¶
TargetLabel applies equality check predicate on the "target_label" field. It's identical to TargetLabelEQ.
func TargetLabelContains ¶
TargetLabelContains applies the Contains predicate on the "target_label" field.
func TargetLabelContainsFold ¶
TargetLabelContainsFold applies the ContainsFold predicate on the "target_label" field.
func TargetLabelEQ ¶
TargetLabelEQ applies the EQ predicate on the "target_label" field.
func TargetLabelEqualFold ¶
TargetLabelEqualFold applies the EqualFold predicate on the "target_label" field.
func TargetLabelGT ¶
TargetLabelGT applies the GT predicate on the "target_label" field.
func TargetLabelGTE ¶
TargetLabelGTE applies the GTE predicate on the "target_label" field.
func TargetLabelHasPrefix ¶
TargetLabelHasPrefix applies the HasPrefix predicate on the "target_label" field.
func TargetLabelHasSuffix ¶
TargetLabelHasSuffix applies the HasSuffix predicate on the "target_label" field.
func TargetLabelIn ¶
TargetLabelIn applies the In predicate on the "target_label" field.
func TargetLabelLT ¶
TargetLabelLT applies the LT predicate on the "target_label" field.
func TargetLabelLTE ¶
TargetLabelLTE applies the LTE predicate on the "target_label" field.
func TargetLabelNEQ ¶
TargetLabelNEQ applies the NEQ predicate on the "target_label" field.
func TargetLabelNotIn ¶
TargetLabelNotIn applies the NotIn predicate on the "target_label" field.
func TargetPort ¶
TargetPort applies equality check predicate on the "target_port" field. It's identical to TargetPortEQ.
func TargetPortEQ ¶
TargetPortEQ applies the EQ predicate on the "target_port" field.
func TargetPortGT ¶
TargetPortGT applies the GT predicate on the "target_port" field.
func TargetPortGTE ¶
TargetPortGTE applies the GTE predicate on the "target_port" field.
func TargetPortIn ¶
TargetPortIn applies the In predicate on the "target_port" field.
func TargetPortIsNil ¶
TargetPortIsNil applies the IsNil predicate on the "target_port" field.
func TargetPortLT ¶
TargetPortLT applies the LT predicate on the "target_port" field.
func TargetPortLTE ¶
TargetPortLTE applies the LTE predicate on the "target_port" field.
func TargetPortNEQ ¶
TargetPortNEQ applies the NEQ predicate on the "target_port" field.
func TargetPortNotIn ¶
TargetPortNotIn applies the NotIn predicate on the "target_port" field.
func TargetPortNotNil ¶
TargetPortNotNil applies the NotNil predicate on the "target_port" field.
func TsUnixMs ¶
TsUnixMs applies equality check predicate on the "ts_unix_ms" field. It's identical to TsUnixMsEQ.
func TsUnixMsEQ ¶
TsUnixMsEQ applies the EQ predicate on the "ts_unix_ms" field.
func TsUnixMsGT ¶
TsUnixMsGT applies the GT predicate on the "ts_unix_ms" field.
func TsUnixMsGTE ¶
TsUnixMsGTE applies the GTE predicate on the "ts_unix_ms" field.
func TsUnixMsIn ¶
TsUnixMsIn applies the In predicate on the "ts_unix_ms" field.
func TsUnixMsLT ¶
TsUnixMsLT applies the LT predicate on the "ts_unix_ms" field.
func TsUnixMsLTE ¶
TsUnixMsLTE applies the LTE predicate on the "ts_unix_ms" field.
func TsUnixMsNEQ ¶
TsUnixMsNEQ applies the NEQ predicate on the "ts_unix_ms" field.
func TsUnixMsNotIn ¶
TsUnixMsNotIn applies the NotIn predicate on the "ts_unix_ms" 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 Sample queries.
func ByError ¶
func ByError(opts ...sql.OrderTermOption) OrderOption
ByError orders the results by the error field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRttMs ¶
func ByRttMs(opts ...sql.OrderTermOption) OrderOption
ByRttMs orders the results by the rtt_ms field.
func BySuccess ¶
func BySuccess(opts ...sql.OrderTermOption) OrderOption
BySuccess orders the results by the success field.
func ByTargetHost ¶
func ByTargetHost(opts ...sql.OrderTermOption) OrderOption
ByTargetHost orders the results by the target_host field.
func ByTargetKind ¶
func ByTargetKind(opts ...sql.OrderTermOption) OrderOption
ByTargetKind orders the results by the target_kind field.
func ByTargetLabel ¶
func ByTargetLabel(opts ...sql.OrderTermOption) OrderOption
ByTargetLabel orders the results by the target_label field.
func ByTargetPort ¶
func ByTargetPort(opts ...sql.OrderTermOption) OrderOption
ByTargetPort orders the results by the target_port field.
func ByTsUnixMs ¶
func ByTsUnixMs(opts ...sql.OrderTermOption) OrderOption
ByTsUnixMs orders the results by the ts_unix_ms field.