menciusproto

package
v0.0.0-...-791b115 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accept

type Accept struct {
	LeaderId          int32
	Instance          int32
	Ballot            int32
	Skip              uint8
	NbInstancesToSkip int32
	Command           state.Command
}

func (*Accept) BinarySize

func (t *Accept) BinarySize() (nbytes int, sizeKnown bool)

func (*Accept) Marshal

func (t *Accept) Marshal(wire io.Writer)

func (*Accept) New

func (t *Accept) New() fastrpc.Serializable

func (*Accept) Unmarshal

func (t *Accept) Unmarshal(wire io.Reader) error

type AcceptCache

type AcceptCache struct {
	// contains filtered or unexported fields
}

func NewAcceptCache

func NewAcceptCache() *AcceptCache

func (*AcceptCache) Get

func (p *AcceptCache) Get() *Accept

func (*AcceptCache) Put

func (p *AcceptCache) Put(t *Accept)

type AcceptReply

type AcceptReply struct {
	Instance             int32
	OK                   uint8
	Ballot               int32
	SkippedStartInstance int32
	SkippedEndInstance   int32
}

func (*AcceptReply) BinarySize

func (t *AcceptReply) BinarySize() (nbytes int, sizeKnown bool)

func (*AcceptReply) Marshal

func (t *AcceptReply) Marshal(wire io.Writer)

func (*AcceptReply) New

func (t *AcceptReply) New() fastrpc.Serializable

func (*AcceptReply) Unmarshal

func (t *AcceptReply) Unmarshal(wire io.Reader) error

type AcceptReplyCache

type AcceptReplyCache struct {
	// contains filtered or unexported fields
}

func NewAcceptReplyCache

func NewAcceptReplyCache() *AcceptReplyCache

func (*AcceptReplyCache) Get

func (p *AcceptReplyCache) Get() *AcceptReply

func (*AcceptReplyCache) Put

func (p *AcceptReplyCache) Put(t *AcceptReply)

type Commit

type Commit struct {
	LeaderId          int32
	Instance          int32
	Skip              uint8
	NbInstancesToSkip int32
}

func (*Commit) BinarySize

func (t *Commit) BinarySize() (nbytes int, sizeKnown bool)

func (*Commit) Marshal

func (t *Commit) Marshal(wire io.Writer)

func (*Commit) New

func (t *Commit) New() fastrpc.Serializable

func (*Commit) Unmarshal

func (t *Commit) Unmarshal(wire io.Reader) error

type CommitCache

type CommitCache struct {
	// contains filtered or unexported fields
}

func NewCommitCache

func NewCommitCache() *CommitCache

func (*CommitCache) Get

func (p *CommitCache) Get() *Commit

func (*CommitCache) Put

func (p *CommitCache) Put(t *Commit)

type Prepare

type Prepare struct {
	LeaderId int32
	Instance int32
	Ballot   int32
}

func (*Prepare) BinarySize

func (t *Prepare) BinarySize() (nbytes int, sizeKnown bool)

func (*Prepare) Marshal

func (t *Prepare) Marshal(wire io.Writer)

func (*Prepare) New

func (t *Prepare) New() fastrpc.Serializable

func (*Prepare) Unmarshal

func (t *Prepare) Unmarshal(wire io.Reader) error

type PrepareCache

type PrepareCache struct {
	// contains filtered or unexported fields
}

func NewPrepareCache

func NewPrepareCache() *PrepareCache

func (*PrepareCache) Get

func (p *PrepareCache) Get() *Prepare

func (*PrepareCache) Put

func (p *PrepareCache) Put(t *Prepare)

type PrepareReply

type PrepareReply struct {
	Instance          int32
	OK                uint8
	Ballot            int32
	Skip              uint8
	NbInstancesToSkip int32
	Command           state.Command
}

func (*PrepareReply) BinarySize

func (t *PrepareReply) BinarySize() (nbytes int, sizeKnown bool)

func (*PrepareReply) Marshal

func (t *PrepareReply) Marshal(wire io.Writer)

func (*PrepareReply) New

func (*PrepareReply) Unmarshal

func (t *PrepareReply) Unmarshal(wire io.Reader) error

type PrepareReplyCache

type PrepareReplyCache struct {
	// contains filtered or unexported fields
}

func NewPrepareReplyCache

func NewPrepareReplyCache() *PrepareReplyCache

func (*PrepareReplyCache) Get

func (p *PrepareReplyCache) Get() *PrepareReply

func (*PrepareReplyCache) Put

func (p *PrepareReplyCache) Put(t *PrepareReply)

type Skip

type Skip struct {
	LeaderId      int32
	StartInstance int32
	EndInstance   int32
}

func (*Skip) BinarySize

func (t *Skip) BinarySize() (nbytes int, sizeKnown bool)

func (*Skip) Marshal

func (t *Skip) Marshal(wire io.Writer)

func (*Skip) New

func (t *Skip) New() fastrpc.Serializable

func (*Skip) Unmarshal

func (t *Skip) Unmarshal(wire io.Reader) error

type SkipCache

type SkipCache struct {
	// contains filtered or unexported fields
}

func NewSkipCache

func NewSkipCache() *SkipCache

func (*SkipCache) Get

func (p *SkipCache) Get() *Skip

func (*SkipCache) Put

func (p *SkipCache) Put(t *Skip)

Jump to

Keyboard shortcuts

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