From 161e030f76379bb555be5dcc6c6b4ede02e036ca Mon Sep 17 00:00:00 2001 From: John Wang Date: Sat, 25 Nov 2023 02:42:33 -0800 Subject: [PATCH] dep: go mod: update --- cmd/goauth/main.go | 4 +- credentials.go | 10 ++-- credentials_basicauth.go | 6 +-- credentials_headerquery.go | 4 +- credentials_oauth2.go | 2 +- go.mod | 18 +++----- go.sum | 46 ++++++++----------- hubspot/client.go | 4 +- hubspot/contacts_export.go | 8 ++-- .../tokens/tokensetredis/tokenset_redis.go | 8 ++-- zoom/cmd/jwt_zoom/main.go | 4 +- 11 files changed, 50 insertions(+), 64 deletions(-) diff --git a/cmd/goauth/main.go b/cmd/goauth/main.go index 69f8982..d6e5a4b 100644 --- a/cmd/goauth/main.go +++ b/cmd/goauth/main.go @@ -24,8 +24,8 @@ type Options struct { Body string `short:"d" long:"data" description:"HTTP Body"` } -func (opts *Options) SimpleRequest() (httpsimple.SimpleRequest, error) { - sr := httpsimple.SimpleRequest{ +func (opts *Options) SimpleRequest() (httpsimple.Request, error) { + sr := httpsimple.Request{ URL: opts.URL, Headers: map[string][]string{}, } diff --git a/credentials.go b/credentials.go index adb8d87..6975cec 100644 --- a/credentials.go +++ b/credentials.go @@ -117,7 +117,7 @@ func (creds *Credentials) NewClient(ctx context.Context) (*http.Client, error) { return authutil.NewClientToken(authutil.TokenBearer, tok.AccessToken, false), nil } -func (creds *Credentials) NewSimpleClient(ctx context.Context) (*httpsimple.SimpleClient, error) { +func (creds *Credentials) NewSimpleClient(ctx context.Context) (*httpsimple.Client, error) { httpClient, err := creds.NewClient(ctx) if err != nil { return nil, err @@ -125,20 +125,20 @@ func (creds *Credentials) NewSimpleClient(ctx context.Context) (*httpsimple.Simp return creds.NewSimpleClientHTTP(httpClient) } -func (creds *Credentials) NewSimpleClientHTTP(httpClient *http.Client) (*httpsimple.SimpleClient, error) { +func (creds *Credentials) NewSimpleClientHTTP(httpClient *http.Client) (*httpsimple.Client, error) { switch creds.Type { case TypeJWT: return nil, ErrJWTNotSupported case TypeBasic: - return &httpsimple.SimpleClient{ + return &httpsimple.Client{ BaseURL: creds.Basic.ServerURL, HTTPClient: httpClient}, nil case TypeHeaderQuery: - return &httpsimple.SimpleClient{ + return &httpsimple.Client{ BaseURL: creds.HeaderQuery.ServerURL, HTTPClient: httpClient}, nil case TypeOAuth2: - return &httpsimple.SimpleClient{ + return &httpsimple.Client{ BaseURL: creds.OAuth2.ServerURL, HTTPClient: httpClient}, nil default: diff --git a/credentials_basicauth.go b/credentials_basicauth.go index 9428a53..7e8d3f0 100644 --- a/credentials_basicauth.go +++ b/credentials_basicauth.go @@ -34,12 +34,12 @@ func (c *CredentialsBasicAuth) NewClient() (*http.Client, error) { return &http.Client{}, nil } -func (c *CredentialsBasicAuth) NewSimpleClient() (httpsimple.SimpleClient, error) { +func (c *CredentialsBasicAuth) NewSimpleClient() (httpsimple.Client, error) { hclient, err := c.NewClient() if err != nil { - return httpsimple.SimpleClient{}, err + return httpsimple.Client{}, err } - return httpsimple.SimpleClient{ + return httpsimple.Client{ HTTPClient: hclient, BaseURL: c.ServerURL}, nil } diff --git a/credentials_headerquery.go b/credentials_headerquery.go index 8c51cd5..1488ea6 100644 --- a/credentials_headerquery.go +++ b/credentials_headerquery.go @@ -19,8 +19,8 @@ func (c *CredentialsHeaderQuery) NewClient() *http.Client { return authutil.NewClientHeaderQuery(c.Header, c.Query, c.AllowInsecure) } -func (c *CredentialsHeaderQuery) NewSimpleClient() httpsimple.SimpleClient { - return httpsimple.SimpleClient{ +func (c *CredentialsHeaderQuery) NewSimpleClient() httpsimple.Client { + return httpsimple.Client{ HTTPClient: c.NewClient(), BaseURL: c.ServerURL} } diff --git a/credentials_oauth2.go b/credentials_oauth2.go index 03e23be..83f3be9 100644 --- a/credentials_oauth2.go +++ b/credentials_oauth2.go @@ -243,7 +243,7 @@ func (oc *CredentialsOAuth2) RefreshTokenSimple(refreshToken string) (*oauth2.To body.Add(authutil.ParamScope, strings.Join(oc.Scopes, " ")) } - sr := httpsimple.SimpleRequest{ + sr := httpsimple.Request{ Method: http.MethodPost, URL: oc.Endpoint.TokenURL, Headers: map[string][]string{ diff --git a/go.mod b/go.mod index bfad472..c2e3727 100644 --- a/go.mod +++ b/go.mod @@ -9,10 +9,10 @@ require ( github.com/caarlos0/env/v9 v9.0.0 github.com/golang-jwt/jwt/v5 v5.1.0 github.com/google/go-querystring v1.1.0 - github.com/grokify/go-salesforce v0.2.22 - github.com/grokify/gocharts/v2 v2.15.1 - github.com/grokify/gostor v0.2.7 - github.com/grokify/mogo v0.60.1 + github.com/grokify/go-salesforce v0.2.23 + github.com/grokify/gocharts/v2 v2.15.2 + github.com/grokify/mogo v0.61.0 + github.com/grokify/xgo v0.6.0 github.com/jessevdk/go-flags v1.5.0 github.com/joho/godotenv v1.5.1 github.com/rs/zerolog v1.31.0 @@ -22,13 +22,11 @@ require ( ) require ( - cloud.google.com/go/compute v1.23.2 // indirect + cloud.google.com/go/compute v1.23.3 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect - github.com/buger/jsonparser v1.1.1 // indirect github.com/caarlos0/env/v6 v6.10.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect - github.com/go-logfmt/logfmt v0.6.0 // indirect github.com/go-redis/redis/v8 v8.11.5 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect @@ -48,22 +46,20 @@ require ( github.com/richardlehane/mscfb v1.0.4 // indirect github.com/richardlehane/msoleps v1.0.3 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - github.com/valyala/fastjson v1.6.4 // indirect github.com/valyala/quicktemplate v1.7.0 // indirect github.com/xuri/efp v0.0.0-20231025114914-d1ff6096ae53 // indirect github.com/xuri/excelize/v2 v2.8.0 // indirect github.com/xuri/nfp v0.0.0-20230919160717-d98342af3f05 // indirect go.opencensus.io v0.24.0 // indirect golang.org/x/crypto v0.15.0 // indirect - golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/net v0.18.0 // indirect golang.org/x/sys v0.14.0 // indirect golang.org/x/text v0.14.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect google.golang.org/grpc v1.59.0 // indirect google.golang.org/protobuf v1.31.0 // indirect - gopkg.in/oleiade/reflections.v1 v1.0.0 // indirect ) // replace github.com/grokify/mogo => ../mogo diff --git a/go.sum b/go.sum index 164eff2..3b29cf7 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go/compute v1.23.2 h1:nWEMDhgbBkBJjfpVySqU4jgWdc22PLR0o4vEexZHers= -cloud.google.com/go/compute v1.23.2/go.mod h1:JJ0atRC0J/oWYiiVBmsSsrRnh92DhZPG4hFDcR04Rns= +cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= +cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -9,8 +9,6 @@ github.com/SparkPost/gosparkpost v0.2.0/go.mod h1:S9WKcGeou7cbPpx0kTIgo8Q69WZvUm github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/buger/jsonparser v1.0.0/go.mod h1:tgcrVJ81GPSF0mz+0nu1Xaz0fazGPrmmJfJtxjbHhUQ= -github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/caarlos0/env/v6 v6.10.1 h1:t1mPSxNpei6M5yAeu1qtRdPAK29Nbcf/n3G7x+b3/II= github.com/caarlos0/env/v6 v6.10.1/go.mod h1:hvp/ryKXKipEkcuYjs9mI4bBCg+UI0Yhgm5Zu0ddvwc= github.com/caarlos0/env/v9 v9.0.0 h1:SI6JNsOA+y5gj9njpgybykATIylrRMklbs5ch6wO6pc= @@ -35,8 +33,6 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= -github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-redis/redis/v8 v8.11.5 h1:AcZZR7igkdvfVmQTPnu9WE37LRrO/YrBH5zWyjDC0oI= github.com/go-redis/redis/v8 v8.11.5/go.mod h1:gREzHqY1hg6oD9ngVRbLStwAWKhA0FEgq8Jd4h5lpwo= github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= @@ -85,14 +81,14 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfF github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= -github.com/grokify/go-salesforce v0.2.22 h1:tHqEHO38jy6WnicndNHQVhaCp2bxz/b9HGyKrrd9i/k= -github.com/grokify/go-salesforce v0.2.22/go.mod h1:9knqPM2hZ4yOQW9ZRUF0VniulKePDhWfjHkkI7KalsY= -github.com/grokify/gocharts/v2 v2.15.1 h1:hAdNGjGfcxaNnpI5goPGejODJ3TOcM+uuqQzU04gTsk= -github.com/grokify/gocharts/v2 v2.15.1/go.mod h1:Krp/pPIoi9Mv/kSmLwYZ8DEADi2Oy2H7UnqYTkS0Hkc= -github.com/grokify/gostor v0.2.7 h1:JyuNf8IUT47aks955XcbiJ/N4R7kCFg6a7sBMhYCG2M= -github.com/grokify/gostor v0.2.7/go.mod h1:cF8Nfg+7BKha9V8LdPzHHslt3kR6AshcTTjlOAmifpM= -github.com/grokify/mogo v0.60.1 h1:gC4AG8Kg8NZAMs/d2CyrQNAtG8Wjpjjiau83QXAbeYE= -github.com/grokify/mogo v0.60.1/go.mod h1:wa3PSmp1Gb5F7Ay4nVSrL51+AUd6HwR991UIJtR2ZXU= +github.com/grokify/go-salesforce v0.2.23 h1:rEbcLN08AyeGlpVe5C4icEGEUR/6twTp/CMaigZO1xM= +github.com/grokify/go-salesforce v0.2.23/go.mod h1:k66Eoc/cjkLcKheQrbl4IFac92H8DO+4KaWL/iiydTQ= +github.com/grokify/gocharts/v2 v2.15.2 h1:L8Aw0+pMgqxM6RnZbl01bocxoGPqshVu5rjaAqTNYD8= +github.com/grokify/gocharts/v2 v2.15.2/go.mod h1:MZyA5pw1DEA4AaOAVEJUQ7ubFS3MsscBS3fX4wY209o= +github.com/grokify/mogo v0.61.0 h1:kTlz/80ux4OeI8xvOHyec0PWLSLKBTT523s5n/AcopE= +github.com/grokify/mogo v0.61.0/go.mod h1:22q+ffdRQN4dIywkTBnDEqMzaoOT90zcd+MRQnvddLw= +github.com/grokify/xgo v0.6.0 h1:RLxNSomdDItiNSMiCjW++XKJtDL0wEaG+wPePknMyRA= +github.com/grokify/xgo v0.6.0/go.mod h1:01SAHwsal0COE2mzqMbgEhcpb2Fd7lk2NraFNXdEnBg= github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43/go.mod h1:CVKlgaMiht+LXvHG173ujK6JUhZXKb2u/BQtjPDIvyk= @@ -127,8 +123,6 @@ github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9 github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oleiade/reflections v1.0.1 h1:D1XO3LVEYroYskEsoSiGItp9RUxG6jWnCVvrqH0HHQM= -github.com/oleiade/reflections v1.0.1/go.mod h1:rdFxbxq4QXVZWj0F+e9jqjDkc7dbp97vkRixKo2JR60= github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= @@ -164,8 +158,6 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= -github.com/valyala/fastjson v1.6.4 h1:uAUNq9Z6ymTgGhcm0UynUAB6tlbakBrz6CQFax3BXVQ= -github.com/valyala/fastjson v1.6.4/go.mod h1:CLCAqky6SMuOcxStkYQvblddUtoRxhYMGLrsQns1aXY= github.com/valyala/quicktemplate v1.7.0 h1:LUPTJmlVcb46OOUY3IeD9DojFpAVbsG+5WFTcjMJzCM= github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= @@ -188,11 +180,11 @@ golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98y golang.org/x/crypto v0.15.0 h1:frVn1TEaCEaZcn3Tmd7Y2b5KKPaZ+I32Q2OA3kYp5TA= golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72g= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= -golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/image v0.11.0/go.mod h1:bglhjqbqVuEb9e9+eNR45Jfu7D+T4Qan+NhQk8Ck2P8= -golang.org/x/image v0.13.0 h1:3cge/F/QTkNLauhf2QoE9zp+7sr+ZcL4HnoZmdwg9sg= -golang.org/x/image v0.13.0/go.mod h1:6mmbMOeV28HuMTgA6OSRkdXKYw/t5W9Uwn2Yv1r3Yxk= +golang.org/x/image v0.14.0 h1:tNgSxAFe3jC4uYqvZdTr84SZoM1KfwdC9SKIFrLjFn4= +golang.org/x/image v0.14.0/go.mod h1:HUYqC05R2ZcZ3ejNQsIHQDQiwWM4JBqmm6MKANTp4LE= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= @@ -278,12 +270,12 @@ google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 h1:I6WNifs6pF9tNdSob2W24JtyxIYjzFB9qDlpUC76q+U= -google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405/go.mod h1:3WDQMjmJk36UQhjQ89emUzb1mdaHcPeeAh4SCBKznB4= +google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f h1:Vn+VyHU5guc9KjB5KrjI2q0wCOWEOIh0OEsleqakHJg= +google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f/go.mod h1:nWSwAFPb+qfNJXsoeO3Io7zf4tMSfN8EA8RlDA04GhY= google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b h1:CIC2YMXmIhYw6evmhPxBKJ4fmLbOFtXQN/GV3XOZR8k= google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f h1:ultW7fxlIvee4HYrtnaRPon9HpEgFk5zYpmfMgtKB5I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= @@ -307,8 +299,6 @@ google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/jeevatkm/go-model.v1 v1.1.0 h1:amtTNQLfoLEE35aUWKVI0plheGTHnlOnESGmN+dnTkA= gopkg.in/jeevatkm/go-model.v1 v1.1.0/go.mod h1:DBVmvWau/0RaL6rFQeTiDcGn3u8xv5rTxKjDw2sIwmA= -gopkg.in/oleiade/reflections.v1 v1.0.0 h1:nV9NFaFd5bXKjilVvPvA+/V/tNQk1pOEEc9gGWDkj+s= -gopkg.in/oleiade/reflections.v1 v1.0.0/go.mod h1:SpA8pv+LUnF0FbB2hyRxc8XSng78D6iLBZ11PDb8Z5g= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/hubspot/client.go b/hubspot/client.go index 9ae2a86..81871f5 100644 --- a/hubspot/client.go +++ b/hubspot/client.go @@ -20,8 +20,8 @@ func NewClientAPIKey(apiKey string) *http.Client { false) } -func NewSimpleClientAPIKey(apiKey string) httpsimple.SimpleClient { - return httpsimple.SimpleClient{ +func NewSimpleClientAPIKey(apiKey string) httpsimple.Client { + return httpsimple.Client{ BaseURL: endpoints.HubspotServerURL, HTTPClient: NewClientAPIKey(apiKey)} } diff --git a/hubspot/contacts_export.go b/hubspot/contacts_export.go index 1e2466a..d450549 100644 --- a/hubspot/contacts_export.go +++ b/hubspot/contacts_export.go @@ -84,11 +84,11 @@ func ContactsV3ExportWriteFiles(client *http.Client, fileprefix string, opts *Co if opts != nil && opts.Limit > LimitMax || opts.Limit < 1 { return errors.New("invalid limit - must be between 1 and 100 inclusive") } - sclient := httpsimple.SimpleClient{ + sclient := httpsimple.Client{ BaseURL: endpoints.HubspotServerURL, HTTPClient: client} - sreq := httpsimple.SimpleRequest{ + sreq := httpsimple.Request{ Method: http.MethodGet, URL: ContactsListAPIPathV3} if opts != nil { @@ -138,11 +138,11 @@ func ContactsV1ExportWriteFiles(client *http.Client, fileprefix string, opts *Co if opts != nil && opts.Count > LimitMax || opts.Count < 1 { return errors.New("invalid count - must be between 1 and 100 inclusive") } - sclient := httpsimple.SimpleClient{ + sclient := httpsimple.Client{ BaseURL: endpoints.HubspotServerURL, HTTPClient: client} - sreq := httpsimple.SimpleRequest{ + sreq := httpsimple.Request{ Method: http.MethodGet, URL: ContactsListAPIPathV3} if opts != nil { diff --git a/multiservice/tokens/tokensetredis/tokenset_redis.go b/multiservice/tokens/tokensetredis/tokenset_redis.go index fa56b79..a7d49cb 100644 --- a/multiservice/tokens/tokensetredis/tokenset_redis.go +++ b/multiservice/tokens/tokensetredis/tokenset_redis.go @@ -6,16 +6,16 @@ import ( "strings" "github.com/grokify/goauth/multiservice/tokens" - "github.com/grokify/gostor" - rds "github.com/grokify/gostor/redis" + "github.com/grokify/xgo/database/document" + "github.com/grokify/xgo/database/document/redis" "golang.org/x/oauth2" ) type TokenSet struct { - gsClient gostor.Client + gsClient document.Client } -func NewTokenSet(client *rds.Client) *TokenSet { +func NewTokenSet(client *redis.Client) *TokenSet { return &TokenSet{gsClient: client} } diff --git a/zoom/cmd/jwt_zoom/main.go b/zoom/cmd/jwt_zoom/main.go index fa45f71..87315e0 100644 --- a/zoom/cmd/jwt_zoom/main.go +++ b/zoom/cmd/jwt_zoom/main.go @@ -71,10 +71,10 @@ func main() { } func createMeeting(client *http.Client) (*http.Response, error) { - sc := httpsimple.SimpleClient{ + sc := httpsimple.Client{ BaseURL: zoom.ZoomAPIBaseURL, HTTPClient: client} - req := httpsimple.SimpleRequest{ + req := httpsimple.Request{ Method: http.MethodPost, URL: urlutil.JoinAbsolute(zoom.ZoomAPIMeURL, "meetings"), Body: []byte(reqBody),