config

package
v0.0.0-...-352bf0c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Description: This file is the focal point of configuration that needs passed to various parts of the service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config tracks config needed for origin

func Load

func Load(ctx context.Context) (*Config, error)

Load returns a new Config type that has been loaded in accordance to the environment that the service was deployed in, with all necessary tweaks made before returning.

func (*Config) GRPCPort

func (c *Config) GRPCPort() int

func (*Config) ListenHost

func (c *Config) ListenHost() string

func (*Config) MarshalLog

func (c *Config) MarshalLog(addfield func(key string, value interface{}))

MarshalLog can be used to write config to log

func (*Config) PrivateHTTPPort

func (c *Config) PrivateHTTPPort() int

func (*Config) PublicHTTPPort

func (c *Config) PublicHTTPPort() int

Jump to

Keyboard shortcuts

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