parameters

package
v0.0.0-...-a58d1de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params map[string]interface{}

Params are additional parameters which can be send for specific options per exchange

func UnionParams

func UnionParams(pp []Params) Params

UnionParams merges the parameters to one single parameter map. It handles the element in a sequential way, this means that `Params` with the same key will override earlier values. It always returns a valid `Params` maps, this map could be empty but never `nil`.

func (Params) GetBool

func (p Params) GetBool(key string) (bool, bool)

GetBool return `key` in params as an `bool`. Indicating if the actual `value` was an bool.

func (Params) GetFloat32

func (p Params) GetFloat32(key string) (float32, bool)

GetFloat32 return `key` in params as a float32. Indicating if the actual `value` was a float32.

func (Params) GetFloat64

func (p Params) GetFloat64(key string) (float64, bool)

GetFloat64 return `key` in params as a float64. Indicating if the actual `value` was a float64.

func (Params) GetInt

func (p Params) GetInt(key string) (int, bool)

GetInt return `key` in params as an `int`. Indicating if the actual `value` was an int.

func (Params) GetInt32

func (p Params) GetInt32(key string) (int32, bool)

GetInt32 return `key` in params as an int32. Indicating if the actual `value` was an int32.

func (Params) GetInt64

func (p Params) GetInt64(key string) (int64, bool)

GetInt64 return `key` in params as an `int64`. Indicating if the actual `value` was an int64.

func (Params) GetString

func (p Params) GetString(key string) (string, bool)

GetString return `key` in params as a string. Indicating if the actual `value` was a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL