From 1cb3e4b5b74d5246797a88ff60c704b228c7356c Mon Sep 17 00:00:00 2001 From: Colin Pistell Date: Fri, 9 Aug 2024 14:51:56 +0000 Subject: [PATCH] feat: update Go SDK to accept auth sesesion interface --- packages/sdk-codegen/src/go.gen.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/sdk-codegen/src/go.gen.ts b/packages/sdk-codegen/src/go.gen.ts index 2f2d33fde..24a4d32c9 100644 --- a/packages/sdk-codegen/src/go.gen.ts +++ b/packages/sdk-codegen/src/go.gen.ts @@ -371,11 +371,15 @@ import ( "time" ) +type authSessionDoer interface { + Do(result interface{}, method, ver, path string, reqPars map[string]interface{}, body interface{}, options *rtl.ApiSettings) error +} + type LookerSDK struct { - session *rtl.AuthSession + session authSessionDoer } -func NewLookerSDK(session *rtl.AuthSession) *LookerSDK { +func NewLookerSDK(session authSessionDoer) *LookerSDK { return &LookerSDK{ session: session, }