infra

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 4 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 {
	// ShardID is the shard ID of the node
	ShardID sharding.ID

	// NumOfShards is the total number of running shards
	NumOfShards uint64

	// NumOfLocalShards is the number of shards managed using local resources
	NumOfLocalShards uint64

	// NATSAddresses contains addresses of NATS cluster
	NATSAddresses []string

	// VerboseLogging turns on verbose logging
	VerboseLogging bool
}

Config stores configuration

func NewConfigFromCLI

func NewConfigFromCLI() Config

NewConfigFromCLI creates new config based on CLI flags

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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