Documentation
¶
Index ¶
- func ConvertToAppendRequest(bufferName, target string, args *rafthashi.AppendEntriesRequest) *intra.AppendEntriesRequest
- func SetRPCFromAppendResp(resp *intra.AppendEntriesResponse, rpc *rafthashi.AppendEntriesResponse)
- type ClientCache
- type IOFetcher
- type Inbound
- func (i *Inbound) Addr() string
- func (i *Inbound) AppendEntries(ctx context.Context, in *intra.AppendEntriesRequest) (resp *intra.AppendEntriesResponse, err error)
- func (i *Inbound) Fetch(bufferName string) <-chan rafthashi.RPC
- func (i *Inbound) RequestVote(ctx context.Context, in *intra.RequestVoteRequest) (resp *intra.RequestVoteResponse, err error)
- type Pipeline
- type SchedulerInbound
- func (i *SchedulerInbound) Create(ctx context.Context, in *intra.CreateInfo) (*intra.CreateResponse, error)
- func (i *SchedulerInbound) Leader(ctx context.Context, in *intra.LeaderRequest) (*intra.LeaderResponse, error)
- func (i *SchedulerInbound) Status(ctx context.Context, in *intra.StatusRequest) (*intra.StatusResponse, error)
- func (i *SchedulerInbound) UpdateConfig(ctx context.Context, in *intra.UpdateConfigRequest) (*intra.UpdateConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToAppendRequest ¶
func ConvertToAppendRequest(bufferName, target string, args *rafthashi.AppendEntriesRequest) *intra.AppendEntriesRequest
func SetRPCFromAppendResp ¶
func SetRPCFromAppendResp(resp *intra.AppendEntriesResponse, rpc *rafthashi.AppendEntriesResponse)
Types ¶
type ClientCache ¶
type ClientCache struct {
// contains filtered or unexported fields
}
func NewClientCache ¶
func NewClientCache() *ClientCache
func (*ClientCache) Fetch ¶
func (c *ClientCache) Fetch(target string) intra.NodeRaftClient
type Inbound ¶
type Inbound struct {
// contains filtered or unexported fields
}
func NewInbound ¶
func NewInbound(addr string, schedulerHandler intra.NodeServer) *Inbound
func (*Inbound) AppendEntries ¶
func (i *Inbound) AppendEntries(ctx context.Context, in *intra.AppendEntriesRequest) (resp *intra.AppendEntriesResponse, err error)
func (*Inbound) RequestVote ¶
func (i *Inbound) RequestVote(ctx context.Context, in *intra.RequestVoteRequest) (resp *intra.RequestVoteResponse, err error)
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
func NewPipeline(bufferName, target string, client intra.NodeRaftClient) *Pipeline
func (*Pipeline) AppendEntries ¶
func (p *Pipeline) AppendEntries(args *rafthashi.AppendEntriesRequest, resp *rafthashi.AppendEntriesResponse) (rafthashi.AppendFuture, error)
func (*Pipeline) Consumer ¶
func (p *Pipeline) Consumer() <-chan rafthashi.AppendFuture
type SchedulerInbound ¶
type SchedulerInbound struct {
// contains filtered or unexported fields
}
func NewSchedulerInbound ¶
func NewSchedulerInbound(externalAddr string, ioFetcher IOFetcher) *SchedulerInbound
func (*SchedulerInbound) Create ¶
func (i *SchedulerInbound) Create(ctx context.Context, in *intra.CreateInfo) (*intra.CreateResponse, error)
func (*SchedulerInbound) Leader ¶
func (i *SchedulerInbound) Leader(ctx context.Context, in *intra.LeaderRequest) (*intra.LeaderResponse, error)
func (*SchedulerInbound) Status ¶
func (i *SchedulerInbound) Status(ctx context.Context, in *intra.StatusRequest) (*intra.StatusResponse, error)
func (*SchedulerInbound) UpdateConfig ¶
func (i *SchedulerInbound) UpdateConfig(ctx context.Context, in *intra.UpdateConfigRequest) (*intra.UpdateConfigResponse, error)
Click to show internal directories.
Click to hide internal directories.