Documentation ¶
Index ¶
- type Cohort
- type CohortImpl
- func (c *CohortImpl) Commit(ctx context.Context, in *entity.CommitRequest) (resp *entity.CohortResponse, err error)
- func (c *CohortImpl) Height() uint64
- func (s *CohortImpl) Precommit(ctx context.Context, index uint64, votes []*entity.Vote) (*entity.CohortResponse, error)
- func (c *CohortImpl) Propose(ctx context.Context, req *entity.ProposeRequest) (*entity.CohortResponse, error)
- type Mode
- type PrecommitRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cohort ¶
type Cohort interface { Propose(ctx context.Context, req *entity.ProposeRequest) (*entity.CohortResponse, error) Precommit(ctx context.Context, index uint64, votes []*entity.Vote) (*entity.CohortResponse, error) Commit(ctx context.Context, in *entity.CommitRequest) (*entity.CohortResponse, error) Height() uint64 }
type CohortImpl ¶
type CohortImpl struct {
// contains filtered or unexported fields
}
func NewCohort ¶
func NewCohort( tracer *zipkin.Tracer, committer *commitalgo.Committer, commitType Mode) *CohortImpl
func (*CohortImpl) Commit ¶
func (c *CohortImpl) Commit(ctx context.Context, in *entity.CommitRequest) (resp *entity.CohortResponse, err error)
func (*CohortImpl) Height ¶
func (c *CohortImpl) Height() uint64
func (*CohortImpl) Precommit ¶
func (s *CohortImpl) Precommit(ctx context.Context, index uint64, votes []*entity.Vote) (*entity.CohortResponse, error)
func (*CohortImpl) Propose ¶
func (c *CohortImpl) Propose(ctx context.Context, req *entity.ProposeRequest) (*entity.CohortResponse, error)
type PrecommitRequest ¶
Click to show internal directories.
Click to hide internal directories.