coordinator

package
v0.0.0-...-35419fc Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRoundNotMatch = errors.New("start and end round not match")

Functions

This section is empty.

Types

type Coordinator

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

func NewCoordinator

func NewCoordinator(c CoordinatorConfig) *Coordinator

func (*Coordinator) Bootstrap

func (co *Coordinator) Bootstrap(ctx context.Context) error

func (*Coordinator) Close

func (co *Coordinator) Close(ctx context.Context) error

func (*Coordinator) Run

func (co *Coordinator) Run(ctx context.Context) error

type CoordinatorConfig

type CoordinatorConfig struct {
	ServerN int

	// Redis addr
	RAddr string
	// MongoDB URI
	MURI string
}

Jump to

Keyboard shortcuts

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