Documentation ¶ Index ¶ type ExQueue func New(conf *viper.Viper) (*ExQueue, error) func (l ExQueue) Add(r exRequest) error func (q *ExQueue) AddRequest(r exRequest) error func (l ExQueue) Get() exRequest func (q *ExQueue) OnStart(ctx context.Context) (err error) func (q *ExQueue) OnStop(ctx context.Context) (err error) func (l ExQueue) Size() (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ExQueue ¶ type ExQueue struct { Threads int // contains filtered or unexported fields } func New ¶ func New(conf *viper.Viper) (*ExQueue, error) New creates a new queue func (ExQueue) Add ¶ func (l ExQueue) Add(r exRequest) error Add add request to exList func (*ExQueue) AddRequest ¶ func (q *ExQueue) AddRequest(r exRequest) error AddRequest adds a new Request to the queue func (ExQueue) Get ¶ func (l ExQueue) Get() exRequest Get get request from exList func (*ExQueue) OnStart ¶ func (q *ExQueue) OnStart(ctx context.Context) (err error) OnStart TODO func (*ExQueue) OnStop ¶ func (q *ExQueue) OnStop(ctx context.Context) (err error) OnStop TODO func (ExQueue) Size ¶ func (l ExQueue) Size() (int, error) Size get the size of exList Source Files ¶ View all Source files exqueue.go Click to show internal directories. Click to hide internal directories.