transport

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package transport provides types for raft transport functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler = transport.Handler

Handler responds to an RPC request.

type Proto

type Proto uint

Proto is a portmanteau of protocol and represents the underlying RPC protocol.

const (
	// GRPC represents raft transportation using gRPC.
	GRPC Proto = Proto(transport.GRPC)
	// HTTP represents raft transportation using http.
	HTTP Proto = Proto(transport.HTTP)
)

Directories

Path Synopsis
Package raftgrpc implements gRPC transportation layer for raft.
Package raftgrpc implements gRPC transportation layer for raft.
Package rafthttp implements HTTP transportation layer for raft.
Package rafthttp implements HTTP transportation layer for raft.

Jump to

Keyboard shortcuts

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