worker

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWorker

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

func NewClientWorker

func NewClientWorker(
	conn *connection.Connection,
	logger logger.Logger,
	config *masterpb.ClientConfig,
	appID, cID uint32,
	localIDs []int,
	metricC chan float64,
	nextIDPtr *uint64,
) *ClientWorker

func (*ClientWorker) Broadcast

func (c *ClientWorker) Broadcast(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

func (*ClientWorker) Dester

func (c *ClientWorker) Dester(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

func (*ClientWorker) Generic

func (c *ClientWorker) Generic(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

func (*ClientWorker) Init

func (c *ClientWorker) Init(
	reqFunc func(*commandpb.Command) (*commandpb.CommandResult, error),
)

func (*ClientWorker) MultiPrimary

func (c *ClientWorker) MultiPrimary(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

func (*ClientWorker) MultiPrimaryRRTarget

func (c *ClientWorker) MultiPrimaryRRTarget(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

func (*ClientWorker) Prime

func (*ClientWorker) Run

func (c *ClientWorker) Run()

func (*ClientWorker) SBFT

func (*ClientWorker) ThresholdMultiPrimary

func (c *ClientWorker) ThresholdMultiPrimary(
	req *commandpb.Command,
) (*commandpb.CommandResult, error)

type Payload

type Payload struct {
	Ctx  context.Context
	Req  *commandpb.Command
	ResC chan *commandpb.CommandResult
	ErrC chan int
}

Jump to

Keyboard shortcuts

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