pool

package
v0.0.0-...-f0aa2c5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireRaftCMDRequest

func AcquireRaftCMDRequest() *raftcmdpb.RaftCMDRequest

AcquireRaftCMDRequest returns a raft cmd request from pool

func AcquireRaftCMDResponse

func AcquireRaftCMDResponse() *raftcmdpb.RaftCMDResponse

AcquireRaftCMDResponse returns a raft cmd response from pool

func AcquireRaftMessage

func AcquireRaftMessage() *mraft.RaftMessage

AcquireRaftMessage returns a raft message from pool

func AcquireRaftRequestHeader

func AcquireRaftRequestHeader() *raftcmdpb.RaftRequestHeader

AcquireRaftRequestHeader returns a raft request header from pool

func AcquireRaftResponseHeader

func AcquireRaftResponseHeader() *raftcmdpb.RaftResponseHeader

AcquireRaftResponseHeader returns a raft response header from pool

func AcquireRequest

func AcquireRequest() *raftcmdpb.Request

AcquireRequest returns a raft request from pool

func AcquireResponse

func AcquireResponse() *raftcmdpb.Response

AcquireResponse returns a response from pool

func ReleaseRaftCMDRequest

func ReleaseRaftCMDRequest(req *raftcmdpb.RaftCMDRequest)

ReleaseRaftCMDRequest returns a raft cmd request to pool

func ReleaseRaftCMDResponse

func ReleaseRaftCMDResponse(resp *raftcmdpb.RaftCMDResponse)

ReleaseRaftCMDResponse returns a raft cmd response to pool

func ReleaseRaftMessage

func ReleaseRaftMessage(msg *mraft.RaftMessage)

ReleaseRaftMessage returns a raft message to pool

func ReleaseRaftRequestAll

func ReleaseRaftRequestAll(req *raftcmdpb.RaftCMDRequest)

ReleaseRaftRequestAll release requests, header and self to pool

func ReleaseRaftRequestHeader

func ReleaseRaftRequestHeader(header *raftcmdpb.RaftRequestHeader)

ReleaseRaftRequestHeader returns a raft request header to pool

func ReleaseRaftResponseAll

func ReleaseRaftResponseAll(resp *raftcmdpb.RaftCMDResponse)

ReleaseRaftResponseAll release responses, header and self to pool

func ReleaseRaftResponseHeader

func ReleaseRaftResponseHeader(header *raftcmdpb.RaftResponseHeader)

ReleaseRaftResponseHeader returns a raft response header to pool

func ReleaseRequest

func ReleaseRequest(req *raftcmdpb.Request)

ReleaseRequest returns a request to pool

func ReleaseResponse

func ReleaseResponse(resp *raftcmdpb.Response)

ReleaseResponse returns a response to pool

Types

This section is empty.

Jump to

Keyboard shortcuts

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