raftapi

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

raftapi

Raft Service API

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RaftClientPoolClass = reflect.TypeOf((*RaftClientPool)(nil)).Elem()
View Source
var RaftGrpcServerClass = reflect.TypeOf((*RaftGrpcServer)(nil)).Elem()
View Source
var RaftServerClass = reflect.TypeOf((*RaftServer)(nil)).Elem()
View Source
var RaftServiceClass = reflect.TypeOf((*RaftService)(nil)).Elem()

Functions

This section is empty.

Types

type FSMResponse

type FSMResponse struct {
	Status *raftpb.Status
	Err    error
}

* Finite State Machine Response

type RaftClientPool

type RaftClientPool interface {
	glue.InitializingBean
	glue.DisposableBean

	GetAPIEndpoint(raftAddress string) (string, error)

	GetAPIConn(raftAddress raft.ServerAddress) (*grpc.ClientConn, error)

	Close() error
}

type RaftGrpcServer

type RaftGrpcServer interface {
	glue.InitializingBean
	sprint.Component
}

type RaftServer

type RaftServer interface {
	sprint.Server
	sprint.Component

	Transport() (raft.Transport, bool)

	Raft() (*raft.Raft, bool)
}

type RaftService

type RaftService interface {
	glue.InitializingBean
	raft.FSM
}

Jump to

Keyboard shortcuts

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