config

package
v0.0.0-...-b0a49f2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GRPC    grpc        `yaml:"grpc"`
	Logger  logger      `yaml:"logger"`
	Cluster clusterConf `yaml:"cluster"`
}

func FromBytes

func FromBytes(data []byte) (*Config, error)

func FromFile

func FromFile(filename string) (*Config, error)

func (*Config) BuildLogger

func (c *Config) BuildLogger(opts ...zap.Option) (*zap.Logger, error)

func (*Config) ClusterAddr

func (c *Config) ClusterAddr() string

func (*Config) ClusterOptions

func (c *Config) ClusterOptions() *cluster.Options

func (*Config) GRPCAddr

func (c *Config) GRPCAddr() string

Jump to

Keyboard shortcuts

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