node

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataNode

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

func NewDataNode

func NewDataNode(config *DataNodeConfig) (*DataNode, error)

func (*DataNode) Run

func (d *DataNode) Run() error

func (*DataNode) RunAsPrimary

func (d *DataNode) RunAsPrimary() error

func (*DataNode) RunAsSecondary

func (d *DataNode) RunAsSecondary() error

type DataNodeConfig

type DataNodeConfig struct {
	NodeID           string
	Port             uint
	ForClientAddr    string
	DataDirPath      string
	ZookeeperServers []string
	ZookeeperTimeout time.Duration
	ElectionZnode    string
	ElectionPrefix   string
	ElectionAck      string
	KafkaServer      string
	KafkaTopic       string
}

Source Files

Jump to

Keyboard shortcuts

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