config

package
v1.0.1-0...-386defc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(w http.ResponseWriter, r *http.Request)

func SaveSpannerConfig

func SaveSpannerConfig(config Config)

func SetSpannerConfig

func SetSpannerConfig(w http.ResponseWriter, r *http.Request)

Types

type Config

type Config struct {
	GCPProjectID      string `json:"GCPProjectID"`
	SpannerInstanceID string `json:"SpannerInstanceID"`
}

Config represents Spanner Configuration for Spanner Session Management.

func GetSpannerConfig

func GetSpannerConfig() (Config, error)

func TryInitializeSpannerConfig

func TryInitializeSpannerConfig() Config

type ConfigWithMetadata

type ConfigWithMetadata struct {
	Config
	IsMetadataDbCreated bool
	IsConfigValid       bool
}

Config wiith metadata

Jump to

Keyboard shortcuts

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