Documentation ¶
Overview ¶
Package rafthttp implements HTTP transportation layer for raft.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures http using the functional options paradigm popularized by Rob Pike and Dave Cheney. If you're unfamiliar with this style, see https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis.
func WithBasePath ¶
WithBasePath specifies the HTTP path that will serve raft requests. Default: "/_raft/".
func WithRoundTripper ¶
func WithRoundTripper(tr http.RoundTripper) Option
WithRoundTripper optionally specifies an http.RoundTripper for the client to use when it makes a request. Default: http.DefaultTransport.
Click to show internal directories.
Click to hide internal directories.