Documentation
¶
Overview ¶
Copyright 2025 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func CheckLookerExploreFields(resp *v4.LookmlModelExplore) error
- func ExtractLookerFieldProperties(ctx context.Context, fields *[]v4.LookmlModelExploreField, ...) ([]any, error)
- func GetFieldParameters() tools.Parameters
- func GetLookerSDK(useClientOAuth bool, config *rtl.ApiSettings, client *v4.LookerSDK, ...) (*v4.LookerSDK, error)
- func GetQueryParameters() tools.Parameters
- func ProcessFieldArgs(ctx context.Context, params tools.ParamValues) (*string, *string, error)
- func ProcessQueryArgs(ctx context.Context, params tools.ParamValues) (*v4.WriteQuery, error)
- func RunInlineQuery2(l *v4.LookerSDK, request RequestRunInlineQuery2, options *rtl.ApiSettings) (string, error)
- type QueryApiClientContext
- type RenderOptions
- type RequestRunInlineQuery2
Constants ¶
const ( DimensionsFields = "" /* 138-byte string literal not displayed */ FiltersFields = "" /* 135-byte string literal not displayed */ MeasuresFields = "" /* 136-byte string literal not displayed */ ParametersFields = "" /* 138-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CheckLookerExploreFields ¶
func CheckLookerExploreFields(resp *v4.LookmlModelExplore) error
CheckLookerExploreFields checks if the Fields object in LookmlModelExplore is nil before accessing its sub-fields.
func ExtractLookerFieldProperties ¶
func ExtractLookerFieldProperties(ctx context.Context, fields *[]v4.LookmlModelExploreField, showHiddenFields bool) ([]any, error)
ExtractLookerFieldProperties extracts common properties from Looker field objects.
func GetFieldParameters ¶
func GetFieldParameters() tools.Parameters
func GetLookerSDK ¶ added in v0.14.0
func GetLookerSDK(useClientOAuth bool, config *rtl.ApiSettings, client *v4.LookerSDK, accessToken tools.AccessToken) (*v4.LookerSDK, error)
func GetQueryParameters ¶
func GetQueryParameters() tools.Parameters
func ProcessFieldArgs ¶
func ProcessQueryArgs ¶
func ProcessQueryArgs(ctx context.Context, params tools.ParamValues) (*v4.WriteQuery, error)
func RunInlineQuery2 ¶ added in v0.15.0
func RunInlineQuery2(l *v4.LookerSDK, request RequestRunInlineQuery2, options *rtl.ApiSettings) (string, error)
Types ¶
type QueryApiClientContext ¶ added in v0.15.0
type RenderOptions ¶ added in v0.15.0
type RenderOptions struct {
Format string `json:"format"`
}
type RequestRunInlineQuery2 ¶ added in v0.15.0
type RequestRunInlineQuery2 struct {
Query v4.WriteQuery `json:"query"`
RenderOpts RenderOptions `json:"render_options"`
QueryApiClientCtx QueryApiClientContext `json:"query_api_client_context"`
}