server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package server is a package for starting servers for M3 components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunComponents added in v1.2.0

func RunComponents(opts Options)

RunComponents runs the appropriate M3 components based on the configuration. Kicks off either a single DB node or both a DB node and coordinator.

Types

type Options added in v1.2.0

type Options struct {
	// Configuration is the top level configuration that includes both a DB
	// node and a coordinator.
	Configuration config.Configuration

	// InterruptCh is a programmatic interrupt channel to supply to
	// interrupt and shutdown the server.
	InterruptCh <-chan error

	// ShutdownCh is an optional channel to supply if interested in receiving
	// a notification that the server has shutdown.
	ShutdownCh chan<- struct{}
}

Options contains options for starting M3 components.

Jump to

Keyboard shortcuts

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