Documentation ¶
Index ¶
- func LoadRandomWords()
- type App
- type GenericError
- type UnorderedStringMap
- func (d *UnorderedStringMap) Get(key string) interface{}
- func (d *UnorderedStringMap) GetKey(idx int) (string, error)
- func (d *UnorderedStringMap) GetValue(idx int) (interface{}, error)
- func (d *UnorderedStringMap) Has(key string) bool
- func (d *UnorderedStringMap) Len() int
- func (d *UnorderedStringMap) Remove(key string)
- func (d *UnorderedStringMap) Set(key string, content interface{})
- type UnorderedStringMapOutOfBoundsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRandomWords ¶
func LoadRandomWords()
LoadRandomWords loads random words into memory for random clan name generation
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents a load test application
type GenericError ¶
GenericError represents a generic error
func (*GenericError) Error ¶
func (e *GenericError) Error() string
type UnorderedStringMap ¶
type UnorderedStringMap struct {
// contains filtered or unexported fields
}
UnorderedStringMap represents a map from strings to interface{}s that can be looped using zero-based indexes with order based on previously executed Set/Remove operations
func NewUnorderedStringMap ¶
func NewUnorderedStringMap() *UnorderedStringMap
NewUnorderedStringMap returns a new UnorderedStringMap
func (*UnorderedStringMap) Get ¶
func (d *UnorderedStringMap) Get(key string) interface{}
Get returns the interface{} content for a key
func (*UnorderedStringMap) GetKey ¶
func (d *UnorderedStringMap) GetKey(idx int) (string, error)
GetKey returns the string key at the specified integer index
func (*UnorderedStringMap) GetValue ¶
func (d *UnorderedStringMap) GetValue(idx int) (interface{}, error)
GetValue returns the interface{} content at the specified integer index
func (*UnorderedStringMap) Has ¶
func (d *UnorderedStringMap) Has(key string) bool
Has returns a boolean telling whether a string is in the key space or not
func (*UnorderedStringMap) Len ¶
func (d *UnorderedStringMap) Len() int
Len returns the number of elements
func (*UnorderedStringMap) Remove ¶
func (d *UnorderedStringMap) Remove(key string)
Remove removes a string key
func (*UnorderedStringMap) Set ¶
func (d *UnorderedStringMap) Set(key string, content interface{})
Set maps a string to a value
type UnorderedStringMapOutOfBoundsError ¶
UnorderedStringMapOutOfBoundsError represents the error when trying to read unexisting position in the key space
func (*UnorderedStringMapOutOfBoundsError) Error ¶
func (e *UnorderedStringMapOutOfBoundsError) Error() string