options

package
v1.15.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// Raft protocol configurations
	RaftID string

	RaftPeers        []raft.PeerInfo
	RaftInMemEnabled bool
	RaftLogStorePath string

	// Placement server configurations
	PlacementPort          int
	PlacementListenAddress string
	HealthzPort            int
	HealthzListenAddress   string
	MetadataEnabled        bool
	MaxAPILevel            int
	MinAPILevel            int

	TLSEnabled       bool
	TrustDomain      string
	TrustAnchorsFile string
	SentryAddress    string
	Mode             string

	ReplicationFactor int

	KeepAliveTime      time.Duration
	KeepAliveTimeout   time.Duration
	DisseminateTimeout time.Duration

	// Log and metrics configurations
	Logger  logger.Options
	Metrics *metrics.FlagOptions
	// contains filtered or unexported fields
}

func New

func New(origArgs []string) (*Options, error)

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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