Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Request) predicate.Request
- func Body(v []byte) predicate.Request
- func BodyEQ(v []byte) predicate.Request
- func BodyGT(v []byte) predicate.Request
- func BodyGTE(v []byte) predicate.Request
- func BodyIn(vs ...[]byte) predicate.Request
- func BodyIsNil() predicate.Request
- func BodyLT(v []byte) predicate.Request
- func BodyLTE(v []byte) predicate.Request
- func BodyNEQ(v []byte) predicate.Request
- func BodyNotIn(vs ...[]byte) predicate.Request
- func BodyNotNil() predicate.Request
- func CreatedAt(v time.Time) predicate.Request
- func CreatedAtEQ(v time.Time) predicate.Request
- func CreatedAtGT(v time.Time) predicate.Request
- func CreatedAtGTE(v time.Time) predicate.Request
- func CreatedAtIn(vs ...time.Time) predicate.Request
- func CreatedAtLT(v time.Time) predicate.Request
- func CreatedAtLTE(v time.Time) predicate.Request
- func CreatedAtNEQ(v time.Time) predicate.Request
- func CreatedAtNotIn(vs ...time.Time) predicate.Request
- func GateID(v uuid.UUID) predicate.Request
- func GateIDEQ(v uuid.UUID) predicate.Request
- func GateIDIn(vs ...uuid.UUID) predicate.Request
- func GateIDNEQ(v uuid.UUID) predicate.Request
- func GateIDNotIn(vs ...uuid.UUID) predicate.Request
- func HasDiff() predicate.Request
- func HasDiffWith(preds ...predicate.Diff) predicate.Request
- func HasGate() predicate.Request
- func HasGateWith(preds ...predicate.Gate) predicate.Request
- func HasResponses() predicate.Request
- func HasResponsesWith(preds ...predicate.Response) predicate.Request
- func HeadersIsNil() predicate.Request
- func HeadersNotNil() predicate.Request
- func ID(id uuid.UUID) predicate.Request
- func IDEQ(id uuid.UUID) predicate.Request
- func IDGT(id uuid.UUID) predicate.Request
- func IDGTE(id uuid.UUID) predicate.Request
- func IDIn(ids ...uuid.UUID) predicate.Request
- func IDLT(id uuid.UUID) predicate.Request
- func IDLTE(id uuid.UUID) predicate.Request
- func IDNEQ(id uuid.UUID) predicate.Request
- func IDNotIn(ids ...uuid.UUID) predicate.Request
- func Method(v string) predicate.Request
- func MethodContains(v string) predicate.Request
- func MethodContainsFold(v string) predicate.Request
- func MethodEQ(v string) predicate.Request
- func MethodEqualFold(v string) predicate.Request
- func MethodGT(v string) predicate.Request
- func MethodGTE(v string) predicate.Request
- func MethodHasPrefix(v string) predicate.Request
- func MethodHasSuffix(v string) predicate.Request
- func MethodIn(vs ...string) predicate.Request
- func MethodLT(v string) predicate.Request
- func MethodLTE(v string) predicate.Request
- func MethodNEQ(v string) predicate.Request
- func MethodNotIn(vs ...string) predicate.Request
- func Not(p predicate.Request) predicate.Request
- func Or(predicates ...predicate.Request) predicate.Request
- func Path(v string) predicate.Request
- func PathContains(v string) predicate.Request
- func PathContainsFold(v string) predicate.Request
- func PathEQ(v string) predicate.Request
- func PathEqualFold(v string) predicate.Request
- func PathGT(v string) predicate.Request
- func PathGTE(v string) predicate.Request
- func PathHasPrefix(v string) predicate.Request
- func PathHasSuffix(v string) predicate.Request
- func PathIn(vs ...string) predicate.Request
- func PathLT(v string) predicate.Request
- func PathLTE(v string) predicate.Request
- func PathNEQ(v string) predicate.Request
- func PathNotIn(vs ...string) predicate.Request
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDiffField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGateID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMethod(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByResponses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResponsesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the request type in the database. Label = "request" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGateID holds the string denoting the gate_id field in the database. FieldGateID = "gate_id" // FieldMethod holds the string denoting the method field in the database. FieldMethod = "method" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldHeaders holds the string denoting the headers field in the database. FieldHeaders = "headers" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeGate holds the string denoting the gate edge name in mutations. EdgeGate = "gate" // EdgeResponses holds the string denoting the responses edge name in mutations. EdgeResponses = "responses" // EdgeDiff holds the string denoting the diff edge name in mutations. EdgeDiff = "diff" // Table holds the table name of the request in the database. Table = "requests" // GateTable is the table that holds the gate relation/edge. GateTable = "requests" // GateInverseTable is the table name for the Gate entity. // It exists in this package in order to avoid circular dependency with the "gate" package. GateInverseTable = "gates" // GateColumn is the table column denoting the gate relation/edge. GateColumn = "gate_id" // ResponsesTable is the table that holds the responses relation/edge. ResponsesTable = "responses" // ResponsesInverseTable is the table name for the Response entity. // It exists in this package in order to avoid circular dependency with the "response" package. ResponsesInverseTable = "responses" // ResponsesColumn is the table column denoting the responses relation/edge. ResponsesColumn = "request_id" // DiffTable is the table that holds the diff relation/edge. DiffTable = "diffs" // DiffInverseTable is the table name for the Diff entity. // It exists in this package in order to avoid circular dependency with the "entdiff" package. DiffInverseTable = "diffs" // DiffColumn is the table column denoting the diff relation/edge. DiffColumn = "request_id" )
Variables ¶
var ( // MethodValidator is a validator for the "method" field. It is called by the builders before save. MethodValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldGateID, FieldMethod, FieldPath, FieldHeaders, FieldBody, FieldCreatedAt, }
Columns holds all SQL columns for request fields.
Functions ¶
func BodyNotNil ¶
BodyNotNil applies the NotNil predicate on the "body" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GateID ¶
GateID applies equality check predicate on the "gate_id" field. It's identical to GateIDEQ.
func GateIDNotIn ¶
GateIDNotIn applies the NotIn predicate on the "gate_id" field.
func HasDiffWith ¶
HasDiffWith applies the HasEdge predicate on the "diff" edge with a given conditions (other predicates).
func HasGateWith ¶
HasGateWith applies the HasEdge predicate on the "gate" edge with a given conditions (other predicates).
func HasResponses ¶
HasResponses applies the HasEdge predicate on the "responses" edge.
func HasResponsesWith ¶
HasResponsesWith applies the HasEdge predicate on the "responses" edge with a given conditions (other predicates).
func HeadersIsNil ¶
HeadersIsNil applies the IsNil predicate on the "headers" field.
func HeadersNotNil ¶
HeadersNotNil applies the NotNil predicate on the "headers" field.
func Method ¶
Method applies equality check predicate on the "method" field. It's identical to MethodEQ.
func MethodContains ¶
MethodContains applies the Contains predicate on the "method" field.
func MethodContainsFold ¶
MethodContainsFold applies the ContainsFold predicate on the "method" field.
func MethodEqualFold ¶
MethodEqualFold applies the EqualFold predicate on the "method" field.
func MethodHasPrefix ¶
MethodHasPrefix applies the HasPrefix predicate on the "method" field.
func MethodHasSuffix ¶
MethodHasSuffix applies the HasSuffix predicate on the "method" field.
func MethodNotIn ¶
MethodNotIn applies the NotIn predicate on the "method" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" 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 Request queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDiffField ¶
func ByDiffField(field string, opts ...sql.OrderTermOption) OrderOption
ByDiffField orders the results by diff field.
func ByGateField ¶
func ByGateField(field string, opts ...sql.OrderTermOption) OrderOption
ByGateField orders the results by gate field.
func ByGateID ¶
func ByGateID(opts ...sql.OrderTermOption) OrderOption
ByGateID orders the results by the gate_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMethod ¶
func ByMethod(opts ...sql.OrderTermOption) OrderOption
ByMethod orders the results by the method field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByResponses ¶
func ByResponses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResponses orders the results by responses terms.
func ByResponsesCount ¶
func ByResponsesCount(opts ...sql.OrderTermOption) OrderOption
ByResponsesCount orders the results by responses count.