system

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

func (*Process) HeartBeat

func (c *Process) HeartBeat(ctx context.Context, lead chan bool)

HeartBeat function - updates current process state and master election ttl option

func (*Process) Register

func (c *Process) Register(ctx context.Context, kind string, stg storage.Storage) (*types.Process, error)

Process register function The main purpose is to register process in the system If we need to distribution and need master/replicas, use WaitElected function

Jump to

Keyboard shortcuts

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