cluster

package
v0.0.0-...-d84c2b0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	// Invoke invokes the invocation and return the result
	Invoke(ctx context.Context, invocation invocation.Invocation) invocation.Result
}

type Option

type Option func(c *SawtoothCluster)

func WithFaultTolerant

func WithFaultTolerant(faultTolerant string) Option

func WithLoadBalance

func WithLoadBalance(loadBalance string) Option

func WithNodes

func WithNodes(nodes []rpc.Node) Option

func WithRetryCount

func WithRetryCount(retryCount int) Option

func WithRetryInterval

func WithRetryInterval(retryInterval int) Option

type SawtoothCluster

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

func NewSawtoothClusterWithOptions

func NewSawtoothClusterWithOptions(opts ...Option) *SawtoothCluster

func (*SawtoothCluster) Invoke

Jump to

Keyboard shortcuts

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