Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownBank = errors.New("bank doesn't exist")
Functions ¶
This section is empty.
Types ¶
type SimpleQueue ¶
type SimpleQueue struct { TransactionsUpTo time.Duration JobTimeout time.Duration Queue []*SimpleQueueJob // contains filtered or unexported fields }
func (*SimpleQueue) Position ¶
func (s *SimpleQueue) Position(j *SimpleQueueJob) int32
Position returns the position of the job in queue. If it is equal to zero, the job is being or has been processed.
func (*SimpleQueue) Process ¶
func (s *SimpleQueue) Process()
Process get the first element in queue and run it. This method blocks forever and there is no way to unblock it.
type SimpleQueueJob ¶
type SimpleQueueJob struct {
// contains filtered or unexported fields
}
func (*SimpleQueueJob) Credentials ¶
func (s *SimpleQueueJob) Credentials(login, pwd []byte, a <-chan string) (q <-chan string)
Credentials passes the username and password It should be called when the Started method closes. This method is meant to be called a single time so the credentials channel will be closed right after sending the credentials.
func (*SimpleQueueJob) Done ¶
func (s *SimpleQueueJob) Done() <-chan struct{}
func (*SimpleQueueJob) Position ¶
func (s *SimpleQueueJob) Position() int
func (*SimpleQueueJob) Results ¶
func (s *SimpleQueueJob) Results() ([]*Account, error)
Results blocks until the job is done.
func (*SimpleQueueJob) Started ¶
func (s *SimpleQueueJob) Started() <-chan struct{}
Click to show internal directories.
Click to hide internal directories.