rpc

package
v2.0.0-...-90431d4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RaftGRPCClient

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

func NewRaftGRPCClient

func NewRaftGRPCClient(config RaftGRPCClientConfig) (*RaftGRPCClient, error)

func (*RaftGRPCClient) AppendData

func (*RaftGRPCClient) AppendEntries

func (*RaftGRPCClient) Close

func (c *RaftGRPCClient) Close() error

func (*RaftGRPCClient) RequestVote

type RaftGRPCClientConfig

type RaftGRPCClientConfig struct {
	Endpoint          string
	ConnectionTimeout time.Duration
}

type RaftGRPCServer

type RaftGRPCServer struct {
	konsen.RaftServer
	// contains filtered or unexported fields
}

func NewRaftGRPCServer

func NewRaftGRPCServer(config RaftGRPCServerConfig) *RaftGRPCServer

func (*RaftGRPCServer) AppendData

func (*RaftGRPCServer) AppendEntries

func (*RaftGRPCServer) RequestVote

func (*RaftGRPCServer) Serve

func (r *RaftGRPCServer) Serve() error

func (*RaftGRPCServer) Stop

func (r *RaftGRPCServer) Stop()

type RaftGRPCServerConfig

type RaftGRPCServerConfig struct {
	Endpoint     string
	StateMachine *core.StateMachine
}

Jump to

Keyboard shortcuts

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