pconf

package
v0.0.0-...-4cad2d6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Apply(g *GeneralConfig) error
}

func WithAPIKey

func WithAPIKey(key string) Config

func WithBaseURL

func WithBaseURL(url string) Config

func WithGoogleClientOptions

func WithGoogleClientOptions(options ...option.ClientOption) Config

func WithLocation

func WithLocation(location string) Config

func WithProjectID

func WithProjectID(id string) Config

func WithUseREST

func WithUseREST(useREST bool) Config

type GeneralConfig

type GeneralConfig struct {
	APIKey  string
	BaseURL string

	ProjectID string
	Location  string

	UseREST bool

	GoogleClientOptions []option.ClientOption
}

func (GeneralConfig) String

func (GeneralConfig) String() string

Jump to

Keyboard shortcuts

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