Documentation ¶
Index ¶
- func GetCpuClass() int
- func IsValidPort(port int) bool
- func LogTag(tag string) string
- func ObtainIpPort(hostname string) (string, int)
- type Enum
- type RandSafe
- func (r *RandSafe) ExpFloat64() float64
- func (r *RandSafe) Float32() float32
- func (r *RandSafe) Float64() float64
- func (r *RandSafe) Int() int
- func (r *RandSafe) Int31() int32
- func (r *RandSafe) Int31n(n int32) int32
- func (r *RandSafe) Int63() int64
- func (r *RandSafe) Int63n(n int64) int64
- func (r *RandSafe) Intn(n int) int
- func (r *RandSafe) NormFloat64() float64
- func (r *RandSafe) Perm(n int) []int
- func (r *RandSafe) Read(p []byte) (int, error)
- func (r *RandSafe) Seed(seed int64)
- func (r *RandSafe) Uint32() uint32
- func (r *RandSafe) Uint64() uint64
- type SourceSafe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidPort ¶
IsValidPort verifies if the port is valid or not.
func ObtainIpPort ¶
Obtains IP port from a hostname string i.e. 178.673.111.33:9122.
Types ¶
type Enum ¶
type Enum interface {
// contains filtered or unexported methods
}
Enum is the interface for all the custom enum types.
type RandSafe ¶
type RandSafe struct {
// contains filtered or unexported fields
}
RandSafe is a version of math/rand that can be used by multiple goroutines safely.
func NewRandSafe ¶
NewRandSafe creates a new RandSafe to be used.
func (*RandSafe) ExpFloat64 ¶
func (*RandSafe) NormFloat64 ¶
type SourceSafe ¶
type SourceSafe struct {
// contains filtered or unexported fields
}
SourceSafe is a version of math/rand source that can be used by multiple goroutines safely.
func NewSourceSafe ¶
func NewSourceSafe(source rand.Source) *SourceSafe
NewSourceSafe creates a new SourceSafe to be used.
func (*SourceSafe) Int63 ¶
func (s *SourceSafe) Int63() int64
func (*SourceSafe) Seed ¶
func (s *SourceSafe) Seed(seed int64)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.