Versions in this module Expand all Collapse all v0 v0.0.25 Nov 28, 2022 v0.0.24 Nov 28, 2022 Changes in this version + const CKORequestID + const CKOVersion + const ClientVersion + const DefaultMaxNetworkRetries + const Production + const Sandbox + const UnknownPlatform + var DefaultConfig = Config + func Bool(v bool) *bool + func BoolSlice(v []bool) []*bool + func BoolValue(v *bool) bool + func Float64(v float64) *float64 + func Float64Slice(v []float64) []*float64 + func Float64Value(v *float64) float64 + func Int64(v int64) *int64 + func Int64Value(v *int64) int64 + func NewIdempotencyKey() string + func SetAppInfo(info *AppInfo) + func String(v string) *string + func StringSlice(v []string) []*string + func StringValue(v *string) string + type AppInfo struct + Name string + URL string + Version string + type Config struct + HTTPClient *http.Client + LeveledLogger LeveledLoggerInterface + MaxNetworkRetries *int64 + PublicKey string + SecretKey string + URI *string + func Create(secretKey string, publicKey *string) (*Config, error) + type HTTPClient interface + Delete func(path string) (*StatusResponse, error) + Download func(path string) (*StatusResponse, error) + Get func(path string) (*StatusResponse, error) + Patch func(path string, request interface{}) (*StatusResponse, error) + Post func(path string, request interface{}, params *Params) (*StatusResponse, error) + Put func(path string, request interface{}) (*StatusResponse, error) + Upload func(path, boundary string, body *bytes.Buffer) (*StatusResponse, error) + type Headers struct + CKORequestID *string + CKOVersion *string + Header http.Header + type Level uint32 + const LevelDebug + const LevelError + const LevelInfo + const LevelNull + const LevelWarn + type LeveledLogger struct + Level Level + func (l *LeveledLogger) Debugf(format string, v ...interface{}) + func (l *LeveledLogger) Errorf(format string, v ...interface{}) + func (l *LeveledLogger) Infof(format string, v ...interface{}) + func (l *LeveledLogger) Warnf(format string, v ...interface{}) + type LeveledLoggerInterface interface + Debugf func(format string, v ...interface{}) + Errorf func(format string, v ...interface{}) + Infof func(format string, v ...interface{}) + Warnf func(format string, v ...interface{}) + var DefaultLeveledLogger LeveledLoggerInterface = &LeveledLogger{ ... } + type Params struct + Headers http.Header + IdempotencyKey *string + func (p *Params) GetParams() *Params + func (p *Params) SetIdempotencyKey(val string) + type ParamsContainer interface + GetParams func() *Params + type StatusResponse struct + Headers *Headers + ResponseBody []byte + ResponseCSV [][]string + Status string + StatusCode int + type SupportedAPI string + const Access + const UPAPI + type SupportedEnvironment string