Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAgent ¶
CreateAgent creates PURLs in a given domain with a given interval.
Use this agent to simulate a user continuously generating PURLs.
func NewCreateAgent ¶
func (*CreateAgent) Run ¶
func (a *CreateAgent) Run(t *testing.T, done <-chan struct{}, wg *sync.WaitGroup)
Run starts this agent's work loop.
Run ensures that the agent's Domain exists before starting to create PURLs.
The agent runs until a message is sent to the done channel. It will then decrement the given wait group.
You should use this method in a dedicated goroutine as this is a blocking function.
Click to show internal directories.
Click to hide internal directories.