outbox

package
v0.0.0-...-fe50809 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the outbox type in the database.
	Label = "outbox"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// FieldTopic holds the string denoting the topic field in the database.
	FieldTopic = "topic"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldPayload holds the string denoting the payload field in the database.
	FieldPayload = "payload"
	// FieldHeaders holds the string denoting the headers field in the database.
	FieldHeaders = "headers"
	// FieldRetryCount holds the string denoting the retry_count field in the database.
	FieldRetryCount = "retry_count"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldLastRetry holds the string denoting the last_retry field in the database.
	FieldLastRetry = "last_retry"
	// FieldProcessingErrors holds the string denoting the processing_errors field in the database.
	FieldProcessingErrors = "processing_errors"
	// Table holds the table name of the outbox in the database.
	Table = "outboxes"
)

Variables

Columns holds all SQL columns for outbox fields.

Functions

func And

func And(predicates ...predicate.Outbox) predicate.Outbox

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Outbox

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Outbox

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Outbox

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Outbox

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Outbox

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Outbox

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Outbox

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Outbox

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Outbox

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Outbox

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Outbox

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Outbox

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Outbox

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Outbox

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Outbox

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Outbox

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Outbox

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Outbox

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Outbox

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Outbox

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Outbox

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Outbox

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Outbox

KeyNotIn applies the NotIn predicate on the "key" field.

func LastRetry

func LastRetry(v time.Time) predicate.Outbox

LastRetry applies equality check predicate on the "last_retry" field. It's identical to LastRetryEQ.

func LastRetryEQ

func LastRetryEQ(v time.Time) predicate.Outbox

LastRetryEQ applies the EQ predicate on the "last_retry" field.

func LastRetryGT

func LastRetryGT(v time.Time) predicate.Outbox

LastRetryGT applies the GT predicate on the "last_retry" field.

func LastRetryGTE

func LastRetryGTE(v time.Time) predicate.Outbox

LastRetryGTE applies the GTE predicate on the "last_retry" field.

func LastRetryIn

func LastRetryIn(vs ...time.Time) predicate.Outbox

LastRetryIn applies the In predicate on the "last_retry" field.

func LastRetryIsNil

func LastRetryIsNil() predicate.Outbox

LastRetryIsNil applies the IsNil predicate on the "last_retry" field.

func LastRetryLT

func LastRetryLT(v time.Time) predicate.Outbox

LastRetryLT applies the LT predicate on the "last_retry" field.

func LastRetryLTE

func LastRetryLTE(v time.Time) predicate.Outbox

LastRetryLTE applies the LTE predicate on the "last_retry" field.

func LastRetryNEQ

func LastRetryNEQ(v time.Time) predicate.Outbox

LastRetryNEQ applies the NEQ predicate on the "last_retry" field.

func LastRetryNotIn

func LastRetryNotIn(vs ...time.Time) predicate.Outbox

LastRetryNotIn applies the NotIn predicate on the "last_retry" field.

func LastRetryNotNil

func LastRetryNotNil() predicate.Outbox

LastRetryNotNil applies the NotNil predicate on the "last_retry" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Outbox) predicate.Outbox

Or groups predicates with the OR operator between them.

func Payload

func Payload(v []byte) predicate.Outbox

Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.

func PayloadEQ

func PayloadEQ(v []byte) predicate.Outbox

PayloadEQ applies the EQ predicate on the "payload" field.

func PayloadGT

func PayloadGT(v []byte) predicate.Outbox

PayloadGT applies the GT predicate on the "payload" field.

func PayloadGTE

func PayloadGTE(v []byte) predicate.Outbox

PayloadGTE applies the GTE predicate on the "payload" field.

func PayloadIn

func PayloadIn(vs ...[]byte) predicate.Outbox

PayloadIn applies the In predicate on the "payload" field.

func PayloadLT

func PayloadLT(v []byte) predicate.Outbox

PayloadLT applies the LT predicate on the "payload" field.

func PayloadLTE

func PayloadLTE(v []byte) predicate.Outbox

PayloadLTE applies the LTE predicate on the "payload" field.

func PayloadNEQ

func PayloadNEQ(v []byte) predicate.Outbox

PayloadNEQ applies the NEQ predicate on the "payload" field.

func PayloadNotIn

func PayloadNotIn(vs ...[]byte) predicate.Outbox

PayloadNotIn applies the NotIn predicate on the "payload" field.

func ProcessingErrorsIsNil

func ProcessingErrorsIsNil() predicate.Outbox

ProcessingErrorsIsNil applies the IsNil predicate on the "processing_errors" field.

func ProcessingErrorsNotNil

func ProcessingErrorsNotNil() predicate.Outbox

ProcessingErrorsNotNil applies the NotNil predicate on the "processing_errors" field.

func RetryCount

func RetryCount(v int) predicate.Outbox

RetryCount applies equality check predicate on the "retry_count" field. It's identical to RetryCountEQ.

func RetryCountEQ

func RetryCountEQ(v int) predicate.Outbox

RetryCountEQ applies the EQ predicate on the "retry_count" field.

func RetryCountGT

func RetryCountGT(v int) predicate.Outbox

RetryCountGT applies the GT predicate on the "retry_count" field.

func RetryCountGTE

func RetryCountGTE(v int) predicate.Outbox

RetryCountGTE applies the GTE predicate on the "retry_count" field.

func RetryCountIn

func RetryCountIn(vs ...int) predicate.Outbox

RetryCountIn applies the In predicate on the "retry_count" field.

func RetryCountLT

func RetryCountLT(v int) predicate.Outbox

RetryCountLT applies the LT predicate on the "retry_count" field.

func RetryCountLTE

func RetryCountLTE(v int) predicate.Outbox

RetryCountLTE applies the LTE predicate on the "retry_count" field.

func RetryCountNEQ

func RetryCountNEQ(v int) predicate.Outbox

RetryCountNEQ applies the NEQ predicate on the "retry_count" field.

func RetryCountNotIn

func RetryCountNotIn(vs ...int) predicate.Outbox

RetryCountNotIn applies the NotIn predicate on the "retry_count" field.

func StatusEQ

func StatusEQ(v Status) predicate.Outbox

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Outbox

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Outbox

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Outbox

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func Timestamp

func Timestamp(v time.Time) predicate.Outbox

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Outbox

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Outbox

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Outbox

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Outbox

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Outbox

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Outbox

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Outbox

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Outbox

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func Topic

func Topic(v string) predicate.Outbox

Topic applies equality check predicate on the "topic" field. It's identical to TopicEQ.

func TopicContains

func TopicContains(v string) predicate.Outbox

TopicContains applies the Contains predicate on the "topic" field.

func TopicContainsFold

func TopicContainsFold(v string) predicate.Outbox

TopicContainsFold applies the ContainsFold predicate on the "topic" field.

func TopicEQ

func TopicEQ(v string) predicate.Outbox

TopicEQ applies the EQ predicate on the "topic" field.

func TopicEqualFold

func TopicEqualFold(v string) predicate.Outbox

TopicEqualFold applies the EqualFold predicate on the "topic" field.

func TopicGT

func TopicGT(v string) predicate.Outbox

TopicGT applies the GT predicate on the "topic" field.

func TopicGTE

func TopicGTE(v string) predicate.Outbox

TopicGTE applies the GTE predicate on the "topic" field.

func TopicHasPrefix

func TopicHasPrefix(v string) predicate.Outbox

TopicHasPrefix applies the HasPrefix predicate on the "topic" field.

func TopicHasSuffix

func TopicHasSuffix(v string) predicate.Outbox

TopicHasSuffix applies the HasSuffix predicate on the "topic" field.

func TopicIn

func TopicIn(vs ...string) predicate.Outbox

TopicIn applies the In predicate on the "topic" field.

func TopicLT

func TopicLT(v string) predicate.Outbox

TopicLT applies the LT predicate on the "topic" field.

func TopicLTE

func TopicLTE(v string) predicate.Outbox

TopicLTE applies the LTE predicate on the "topic" field.

func TopicNEQ

func TopicNEQ(v string) predicate.Outbox

TopicNEQ applies the NEQ predicate on the "topic" field.

func TopicNotIn

func TopicNotIn(vs ...string) predicate.Outbox

TopicNotIn applies the NotIn predicate on the "topic" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending   Status = "PENDING"
	StatusSucceeded Status = "SUCCEEDED"
	StatusFailed    Status = "FAILED"
)

Status values.

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL