config

package
v0.0.0-...-769d54b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppEnvLocal = "local"
	AppEnvDev   = "dev"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CircleService

type CircleService struct {
	Host   string
	Port   int
	Secure bool
}

type Config

type Config struct {
	AppEnv         string
	ServiceName    string
	LogLevel       string
	EnvID          string
	Server         Server
	Spanner        Spanner
	CircleService  CircleService
	ProfileService ProfileService
	Auth           string

	Pubsub Pubsub
}

func LoadConfig

func LoadConfig(ctx context.Context) (Config, error)

type ProfileService

type ProfileService struct {
	Host   string
	Port   int
	Secure bool
}

type Pubsub

type Pubsub struct {
	ADC          string
	Project      string
	TopicProfile string
}

type Server

type Server struct {
	GRPCPort  uint32
	HTTPPort  uint32
	DebugPort uint32
}

type Spanner

type Spanner struct {
	DSN     string
	ADCPath string
}

func (Spanner) ToSpannerClientOptions

func (s Spanner) ToSpannerClientOptions() []option.ClientOption

Jump to

Keyboard shortcuts

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