v1

package
v0.0.435 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const JobKind = "Job"

JobKind is the name of the type used to represent objects of type 'job'.

View Source
const JobLinkKind = "JobLink"

JobLinkKind is the name of the type used to represent links to objects of type 'job'.

View Source
const JobListKind = "JobList"

JobListKind is the name of the type used to represent list of objects of type 'job'.

View Source
const JobListLinkKind = "JobListLink"

JobListLinkKind is the name of the type used to represent links to list of objects of type 'job'.

View Source
const JobListNilKind = "JobListNil"

JobNilKind is the name of the type used to nil lists of objects of type 'job'.

View Source
const JobNilKind = "JobNil"

JobNilKind is the name of the type used to nil references to objects of type 'job'.

View Source
const QueueKind = "Queue"

QueueKind is the name of the type used to represent objects of type 'queue'.

View Source
const QueueLinkKind = "QueueLink"

QueueLinkKind is the name of the type used to represent links to objects of type 'queue'.

View Source
const QueueListKind = "QueueList"

QueueListKind is the name of the type used to represent list of objects of type 'queue'.

View Source
const QueueListLinkKind = "QueueListLink"

QueueListLinkKind is the name of the type used to represent links to list of objects of type 'queue'.

View Source
const QueueListNilKind = "QueueListNil"

QueueNilKind is the name of the type used to nil lists of objects of type 'queue'.

View Source
const QueueNilKind = "QueueNil"

QueueNilKind is the name of the type used to nil references to objects of type 'queue'.

Variables

This section is empty.

Functions

func MarshalBooleanList

func MarshalBooleanList(list []bool, writer io.Writer) error

MarshalBooleanList writes a list of values of the 'boolean' type to the given writer.

func MarshalDateList

func MarshalDateList(list []time.Time, writer io.Writer) error

MarshalDateList writes a list of values of the 'date' type to the given writer.

func MarshalFloatList

func MarshalFloatList(list []float64, writer io.Writer) error

MarshalFloatList writes a list of values of the 'float' type to the given writer.

func MarshalIntegerList

func MarshalIntegerList(list []int, writer io.Writer) error

MarshalIntegerList writes a list of values of the 'integer' type to the given writer.

func MarshalInterfaceList

func MarshalInterfaceList(list []interface{}, writer io.Writer) error

MarshalInterfaceList writes a list of values of the 'interface' type to the given writer.

func MarshalJob

func MarshalJob(object *Job, writer io.Writer) error

MarshalJob writes a value of the 'job' type to the given writer.

func MarshalJobList

func MarshalJobList(list []*Job, writer io.Writer) error

MarshalJobList writes a list of values of the 'job' type to the given writer.

func MarshalLongList

func MarshalLongList(list []int64, writer io.Writer) error

MarshalLongList writes a list of values of the 'long' type to the given writer.

func MarshalMetadata

func MarshalMetadata(object *Metadata, writer io.Writer) error

MarshalMetadata writes a value of the metadata type to the given target, which can be a writer or a JSON encoder.

func MarshalQueue

func MarshalQueue(object *Queue, writer io.Writer) error

MarshalQueue writes a value of the 'queue' type to the given writer.

func MarshalQueueList

func MarshalQueueList(list []*Queue, writer io.Writer) error

MarshalQueueList writes a list of values of the 'queue' type to the given writer.

func MarshalStringList

func MarshalStringList(list []string, writer io.Writer) error

MarshalStringList writes a list of values of the 'string' type to the given writer.

func ReadBooleanList

func ReadBooleanList(iterator *jsoniter.Iterator) []bool

ReadBooleanList reads list of values of the ”boolean' type from the given iterator.

func ReadDateList

func ReadDateList(iterator *jsoniter.Iterator) []time.Time

ReadDateList reads list of values of the ”date' type from the given iterator.

func ReadFloatList

func ReadFloatList(iterator *jsoniter.Iterator) []float64

ReadFloatList reads list of values of the ”float' type from the given iterator.

func ReadIntegerList

func ReadIntegerList(iterator *jsoniter.Iterator) []int

ReadIntegerList reads list of values of the ”integer' type from the given iterator.

func ReadInterfaceList

func ReadInterfaceList(iterator *jsoniter.Iterator) []interface{}

ReadInterfaceList reads list of values of the ”interface' type from the given iterator.

func ReadLongList

func ReadLongList(iterator *jsoniter.Iterator) []int64

ReadLongList reads list of values of the ”long' type from the given iterator.

func ReadStringList

func ReadStringList(iterator *jsoniter.Iterator) []string

ReadStringList reads list of values of the ”string' type from the given iterator.

func UnmarshalBooleanList

func UnmarshalBooleanList(source interface{}) (items []bool, err error)

UnmarshalBooleanList reads a list of values of the 'boolean' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalDateList

func UnmarshalDateList(source interface{}) (items []time.Time, err error)

UnmarshalDateList reads a list of values of the 'date' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalFloatList

func UnmarshalFloatList(source interface{}) (items []float64, err error)

UnmarshalFloatList reads a list of values of the 'float' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalIntegerList

func UnmarshalIntegerList(source interface{}) (items []int, err error)

UnmarshalIntegerList reads a list of values of the 'integer' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalInterfaceList

func UnmarshalInterfaceList(source interface{}) (items []interface{}, err error)

UnmarshalInterfaceList reads a list of values of the 'interface' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalLongList

func UnmarshalLongList(source interface{}) (items []int64, err error)

UnmarshalLongList reads a list of values of the 'long' type from the given source, which can be a slice of bytes, a string or a reader.

func UnmarshalStringList

func UnmarshalStringList(source interface{}) (items []string, err error)

UnmarshalStringList reads a list of values of the 'string' type from the given source, which can be a slice of bytes, a string or a reader.

func WriteBooleanList

func WriteBooleanList(list []bool, stream *jsoniter.Stream)

WriteBooleanList writes a list of value of the 'boolean' type to the given stream.

func WriteDateList

func WriteDateList(list []time.Time, stream *jsoniter.Stream)

WriteDateList writes a list of value of the 'date' type to the given stream.

func WriteFloatList

func WriteFloatList(list []float64, stream *jsoniter.Stream)

WriteFloatList writes a list of value of the 'float' type to the given stream.

func WriteIntegerList

func WriteIntegerList(list []int, stream *jsoniter.Stream)

WriteIntegerList writes a list of value of the 'integer' type to the given stream.

func WriteInterfaceList

func WriteInterfaceList(list []interface{}, stream *jsoniter.Stream)

WriteInterfaceList writes a list of value of the 'interface' type to the given stream.

func WriteJob

func WriteJob(object *Job, stream *jsoniter.Stream)

WriteJob writes a value of the 'job' type to the given stream.

func WriteJobList

func WriteJobList(list []*Job, stream *jsoniter.Stream)

WriteJobList writes a list of value of the 'job' type to the given stream.

func WriteLongList

func WriteLongList(list []int64, stream *jsoniter.Stream)

WriteLongList writes a list of value of the 'long' type to the given stream.

func WriteQueue

func WriteQueue(object *Queue, stream *jsoniter.Stream)

WriteQueue writes a value of the 'queue' type to the given stream.

func WriteQueueList

func WriteQueueList(list []*Queue, stream *jsoniter.Stream)

WriteQueueList writes a list of value of the 'queue' type to the given stream.

func WriteStringList

func WriteStringList(list []string, stream *jsoniter.Stream)

WriteStringList writes a list of value of the 'string' type to the given stream.

Types

type Job

type Job struct {
	// contains filtered or unexported fields
}

Job represents the values of the 'job' type.

This struct is a job in a Job Queue.

func ReadJob

func ReadJob(iterator *jsoniter.Iterator) *Job

ReadJob reads a value of the 'job' type from the given iterator.

func ReadJobList

func ReadJobList(iterator *jsoniter.Iterator) []*Job

ReadJobList reads list of values of the ”job' type from the given iterator.

func UnmarshalJob

func UnmarshalJob(source interface{}) (object *Job, err error)

UnmarshalJob reads a value of the 'job' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalJobList

func UnmarshalJobList(source interface{}) (items []*Job, err error)

UnmarshalJobList reads a list of values of the 'job' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Job) AbandonedAt

func (o *Job) AbandonedAt() time.Time

AbandonedAt returns the value of the 'abandoned_at' attribute, or the zero value of the type if the attribute doesn't have a value.

DLQ sent timestamp

func (*Job) Arguments

func (o *Job) Arguments() string

Arguments returns the value of the 'arguments' attribute, or the zero value of the type if the attribute doesn't have a value.

Arguments to run Job with.

func (*Job) Attempts

func (o *Job) Attempts() int

Attempts returns the value of the 'attempts' attribute, or the zero value of the type if the attribute doesn't have a value.

Number of retries.

func (*Job) CreatedAt

func (o *Job) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Job) Empty

func (o *Job) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Job) GetAbandonedAt

func (o *Job) GetAbandonedAt() (value time.Time, ok bool)

GetAbandonedAt returns the value of the 'abandoned_at' attribute and a flag indicating if the attribute has a value.

DLQ sent timestamp

func (*Job) GetArguments

func (o *Job) GetArguments() (value string, ok bool)

GetArguments returns the value of the 'arguments' attribute and a flag indicating if the attribute has a value.

Arguments to run Job with.

func (*Job) GetAttempts

func (o *Job) GetAttempts() (value int, ok bool)

GetAttempts returns the value of the 'attempts' attribute and a flag indicating if the attribute has a value.

Number of retries.

func (*Job) GetCreatedAt

func (o *Job) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Job) GetHREF

func (o *Job) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Job) GetID

func (o *Job) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Job) GetReceiptId

func (o *Job) GetReceiptId() (value string, ok bool)

GetReceiptId returns the value of the 'receipt_id' attribute and a flag indicating if the attribute has a value.

Each time a specific job is pop'd, the receiptId will change, while the ID stays the same.

func (*Job) GetUpdatedAt

func (o *Job) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Job) HREF

func (o *Job) HREF() string

HREF returns the link to the object.

func (*Job) ID

func (o *Job) ID() string

ID returns the identifier of the object.

func (*Job) Kind

func (o *Job) Kind() string

Kind returns the name of the type of the object.

func (o *Job) Link() bool

Link returns true if this is a link.

func (*Job) ReceiptId

func (o *Job) ReceiptId() string

ReceiptId returns the value of the 'receipt_id' attribute, or the zero value of the type if the attribute doesn't have a value.

Each time a specific job is pop'd, the receiptId will change, while the ID stays the same.

func (*Job) UpdatedAt

func (o *Job) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type JobBuilder

type JobBuilder struct {
	// contains filtered or unexported fields
}

This struct is a job in a Job Queue.

func NewJob

func NewJob() *JobBuilder

NewJob creates a new builder of 'job' objects.

func (*JobBuilder) AbandonedAt

func (b *JobBuilder) AbandonedAt(value time.Time) *JobBuilder

AbandonedAt sets the value of the 'abandoned_at' attribute to the given value.

func (*JobBuilder) Arguments

func (b *JobBuilder) Arguments(value string) *JobBuilder

Arguments sets the value of the 'arguments' attribute to the given value.

func (*JobBuilder) Attempts

func (b *JobBuilder) Attempts(value int) *JobBuilder

Attempts sets the value of the 'attempts' attribute to the given value.

func (*JobBuilder) Build

func (b *JobBuilder) Build() (object *Job, err error)

Build creates a 'job' object using the configuration stored in the builder.

func (*JobBuilder) Copy

func (b *JobBuilder) Copy(object *Job) *JobBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*JobBuilder) CreatedAt

func (b *JobBuilder) CreatedAt(value time.Time) *JobBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*JobBuilder) Empty

func (b *JobBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*JobBuilder) HREF

func (b *JobBuilder) HREF(value string) *JobBuilder

HREF sets the link to the object.

func (*JobBuilder) ID

func (b *JobBuilder) ID(value string) *JobBuilder

ID sets the identifier of the object.

func (b *JobBuilder) Link(value bool) *JobBuilder

Link sets the flag that indicates if this is a link.

func (*JobBuilder) ReceiptId

func (b *JobBuilder) ReceiptId(value string) *JobBuilder

ReceiptId sets the value of the 'receipt_id' attribute to the given value.

func (*JobBuilder) UpdatedAt

func (b *JobBuilder) UpdatedAt(value time.Time) *JobBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type JobList

type JobList struct {
	// contains filtered or unexported fields
}

JobList is a list of values of the 'job' type.

func (*JobList) Each

func (l *JobList) Each(f func(item *Job) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*JobList) Empty

func (l *JobList) Empty() bool

Empty returns true if the list is empty.

func (*JobList) Get

func (l *JobList) Get(i int) *Job

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*JobList) GetHREF

func (l *JobList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*JobList) HREF

func (l *JobList) HREF() string

HREF returns the link to the list.

func (*JobList) Items

func (l *JobList) Items() []*Job

Items returns the items of the list.

func (*JobList) Kind

func (l *JobList) Kind() string

Kind returns the name of the type of the object.

func (*JobList) Len

func (l *JobList) Len() int

Len returns the length of the list.

func (l *JobList) Link() bool

Link returns true iif this is a link.

func (*JobList) Range

func (l *JobList) Range(f func(index int, item *Job) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*JobList) SetHREF

func (l *JobList) SetHREF(href string)

Items sets the items of the list.

func (*JobList) SetItems

func (l *JobList) SetItems(items []*Job)

Items sets the items of the list.

func (l *JobList) SetLink(link bool)

Items sets the items of the list.

func (*JobList) Slice

func (l *JobList) Slice() []*Job

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type JobListBuilder

type JobListBuilder struct {
	// contains filtered or unexported fields
}

JobListBuilder contains the data and logic needed to build 'job' objects.

func NewJobList

func NewJobList() *JobListBuilder

NewJobList creates a new builder of 'job' objects.

func (*JobListBuilder) Build

func (b *JobListBuilder) Build() (list *JobList, err error)

Build creates a list of 'job' objects using the configuration stored in the builder.

func (*JobListBuilder) Copy

func (b *JobListBuilder) Copy(list *JobList) *JobListBuilder

Copy copies the items of the given list into this builder, discarding any previous items.

func (*JobListBuilder) Empty

func (b *JobListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*JobListBuilder) Items

func (b *JobListBuilder) Items(values ...*JobBuilder) *JobListBuilder

Items sets the items of the list.

type Metadata

type Metadata struct {
	// contains filtered or unexported fields
}

Metadata contains the version metadata.

func UnmarshalMetadata

func UnmarshalMetadata(source interface{}) (object *Metadata, err error)

UnmarshalMetadata reads a value of the metadata type from the given source, which which can be a reader, a slice of byte or a string.

func (*Metadata) GetServerVersion

func (m *Metadata) GetServerVersion() (value string, ok bool)

GetServerVersion returns the value of the server version and a flag indicating if the attribute has a value.

func (*Metadata) ServerVersion

func (m *Metadata) ServerVersion() string

ServerVersion returns the version of the server.

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue represents the values of the 'queue' type.

func ReadQueue

func ReadQueue(iterator *jsoniter.Iterator) *Queue

ReadQueue reads a value of the 'queue' type from the given iterator.

func ReadQueueList

func ReadQueueList(iterator *jsoniter.Iterator) []*Queue

ReadQueueList reads list of values of the ”queue' type from the given iterator.

func UnmarshalQueue

func UnmarshalQueue(source interface{}) (object *Queue, err error)

UnmarshalQueue reads a value of the 'queue' type from the given source, which can be an slice of bytes, a string or a reader.

func UnmarshalQueueList

func UnmarshalQueueList(source interface{}) (items []*Queue, err error)

UnmarshalQueueList reads a list of values of the 'queue' type from the given source, which can be a slice of bytes, a string or a reader.

func (*Queue) CreatedAt

func (o *Queue) CreatedAt() time.Time

CreatedAt returns the value of the 'created_at' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Queue) Empty

func (o *Queue) Empty() bool

Empty returns true if the object is empty, i.e. no attribute has a value.

func (*Queue) GetCreatedAt

func (o *Queue) GetCreatedAt() (value time.Time, ok bool)

GetCreatedAt returns the value of the 'created_at' attribute and a flag indicating if the attribute has a value.

func (*Queue) GetHREF

func (o *Queue) GetHREF() (value string, ok bool)

GetHREF returns the link of the object and a flag indicating if the link has a value.

func (*Queue) GetID

func (o *Queue) GetID() (value string, ok bool)

GetID returns the identifier of the object and a flag indicating if the identifier has a value.

func (*Queue) GetMaxAttempts

func (o *Queue) GetMaxAttempts() (value int, ok bool)

GetMaxAttempts returns the value of the 'max_attempts' attribute and a flag indicating if the attribute has a value.

SQS Visibility Timeout

func (*Queue) GetMaxRunTime

func (o *Queue) GetMaxRunTime() (value int, ok bool)

GetMaxRunTime returns the value of the 'max_run_time' attribute and a flag indicating if the attribute has a value.

func (*Queue) GetName

func (o *Queue) GetName() (value string, ok bool)

GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.

func (*Queue) GetUpdatedAt

func (o *Queue) GetUpdatedAt() (value time.Time, ok bool)

GetUpdatedAt returns the value of the 'updated_at' attribute and a flag indicating if the attribute has a value.

func (*Queue) HREF

func (o *Queue) HREF() string

HREF returns the link to the object.

func (*Queue) ID

func (o *Queue) ID() string

ID returns the identifier of the object.

func (*Queue) Kind

func (o *Queue) Kind() string

Kind returns the name of the type of the object.

func (o *Queue) Link() bool

Link returns true if this is a link.

func (*Queue) MaxAttempts

func (o *Queue) MaxAttempts() int

MaxAttempts returns the value of the 'max_attempts' attribute, or the zero value of the type if the attribute doesn't have a value.

SQS Visibility Timeout

func (*Queue) MaxRunTime

func (o *Queue) MaxRunTime() int

MaxRunTime returns the value of the 'max_run_time' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Queue) Name

func (o *Queue) Name() string

Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.

func (*Queue) UpdatedAt

func (o *Queue) UpdatedAt() time.Time

UpdatedAt returns the value of the 'updated_at' attribute, or the zero value of the type if the attribute doesn't have a value.

type QueueBuilder

type QueueBuilder struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue() *QueueBuilder

NewQueue creates a new builder of 'queue' objects.

func (*QueueBuilder) Build

func (b *QueueBuilder) Build() (object *Queue, err error)

Build creates a 'queue' object using the configuration stored in the builder.

func (*QueueBuilder) Copy

func (b *QueueBuilder) Copy(object *Queue) *QueueBuilder

Copy copies the attributes of the given object into this builder, discarding any previous values.

func (*QueueBuilder) CreatedAt

func (b *QueueBuilder) CreatedAt(value time.Time) *QueueBuilder

CreatedAt sets the value of the 'created_at' attribute to the given value.

func (*QueueBuilder) Empty

func (b *QueueBuilder) Empty() bool

Empty returns true if the builder is empty, i.e. no attribute has a value.

func (*QueueBuilder) HREF

func (b *QueueBuilder) HREF(value string) *QueueBuilder

HREF sets the link to the object.

func (*QueueBuilder) ID

func (b *QueueBuilder) ID(value string) *QueueBuilder

ID sets the identifier of the object.

func (b *QueueBuilder) Link(value bool) *QueueBuilder

Link sets the flag that indicates if this is a link.

func (*QueueBuilder) MaxAttempts

func (b *QueueBuilder) MaxAttempts(value int) *QueueBuilder

MaxAttempts sets the value of the 'max_attempts' attribute to the given value.

func (*QueueBuilder) MaxRunTime

func (b *QueueBuilder) MaxRunTime(value int) *QueueBuilder

MaxRunTime sets the value of the 'max_run_time' attribute to the given value.

func (*QueueBuilder) Name

func (b *QueueBuilder) Name(value string) *QueueBuilder

Name sets the value of the 'name' attribute to the given value.

func (*QueueBuilder) UpdatedAt

func (b *QueueBuilder) UpdatedAt(value time.Time) *QueueBuilder

UpdatedAt sets the value of the 'updated_at' attribute to the given value.

type QueueList

type QueueList struct {
	// contains filtered or unexported fields
}

QueueList is a list of values of the 'queue' type.

func (*QueueList) Each

func (l *QueueList) Each(f func(item *Queue) bool)

Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QueueList) Empty

func (l *QueueList) Empty() bool

Empty returns true if the list is empty.

func (*QueueList) Get

func (l *QueueList) Get(i int) *Queue

Get returns the item of the list with the given index. If there is no item with that index it returns nil.

func (*QueueList) GetHREF

func (l *QueueList) GetHREF() (value string, ok bool)

GetHREF returns the link of the list and a flag indicating if the link has a value.

func (*QueueList) HREF

func (l *QueueList) HREF() string

HREF returns the link to the list.

func (*QueueList) Items

func (l *QueueList) Items() []*Queue

Items returns the items of the list.

func (*QueueList) Kind

func (l *QueueList) Kind() string

Kind returns the name of the type of the object.

func (*QueueList) Len

func (l *QueueList) Len() int

Len returns the length of the list.

func (l *QueueList) Link() bool

Link returns true iif this is a link.

func (*QueueList) Range

func (l *QueueList) Range(f func(index int, item *Queue) bool)

Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.

func (*QueueList) SetHREF

func (l *QueueList) SetHREF(href string)

Items sets the items of the list.

func (*QueueList) SetItems

func (l *QueueList) SetItems(items []*Queue)

Items sets the items of the list.

func (l *QueueList) SetLink(link bool)

Items sets the items of the list.

func (*QueueList) Slice

func (l *QueueList) Slice() []*Queue

Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.

If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.

type QueueListBuilder

type QueueListBuilder struct {
	// contains filtered or unexported fields
}

QueueListBuilder contains the data and logic needed to build 'queue' objects.

func NewQueueList

func NewQueueList() *QueueListBuilder

NewQueueList creates a new builder of 'queue' objects.

func (*QueueListBuilder) Build

func (b *QueueListBuilder) Build() (list *QueueList, err error)

Build creates a list of 'queue' objects using the configuration stored in the builder.

func (*QueueListBuilder) Copy

Copy copies the items of the given list into this builder, discarding any previous items.

func (*QueueListBuilder) Empty

func (b *QueueListBuilder) Empty() bool

Empty returns true if the list is empty.

func (*QueueListBuilder) Items

func (b *QueueListBuilder) Items(values ...*QueueBuilder) *QueueListBuilder

Items sets the items of the list.

Jump to

Keyboard shortcuts

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