lookercommon

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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

View Source
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 ProcessFieldArgs(ctx context.Context, params tools.ParamValues) (*string, *string, error)

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 QueryApiClientContext struct {
	Name            string            `json:"name"`
	Attributes      map[string]string `json:"attributes,omitempty"`
	ExtraAttributes map[string]string `json:"extra_attributes,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL