Versions in this module Expand all Collapse all v1 v1.0.2 Aug 20, 2019 Changes in this version + const DefaultAPIURL + const DefaultStreamURL + const DefaultTradeURL + const Filepath + var ErrEmptyAPIKey = Error + var ErrEmptySecretKey = Error + var ErrInvalidHTTPURL = Error + var ErrInvalidScheme = Error + var ErrInvalidWSURL = Error + var ErrNilArgs = Error + var ErrNilConfig = Error + func CheckURL(given string, schemes ...string) error + func DefaultFilepath() (string, error) + func ValidateCWDefault(c *CW) error + type CW struct + APIKey string + APIURL string + SecretKey string + StreamURL string + TradeURL string + func New(name string) (*CW, error) + func NewFromFilename(filename string) (*CW, error) + func NewFromRaw(raw []byte) (*CW, error) + func (c *CW) Example() *CW + func (c *CW) String() string + func (c *CW) Validate() error + func (c *CW) ValidateFunc(vfs ...ValidateFuncCW) error + type Error struct + How string + Type string + What string + Why string + func (e Error) Error() string + type ValidateFuncCW func(*CW) error