Versions in this module Expand all Collapse all v3 v3.4.15 Feb 24, 2021 Changes in this version + type InteractionEnv struct + Messages []pb.Message + Nodes []Node + Options *InteractionOpts + Output *RedirectLogger + func NewInteractionEnv(opts *InteractionOpts) *InteractionEnv + func (env *InteractionEnv) AddNodes(n int, snap pb.Snapshot) error + func (env *InteractionEnv) Campaign(t *testing.T, idx int) error + func (env *InteractionEnv) Compact(idx int, newFirstIndex uint64) error + func (env *InteractionEnv) DeliverMsgs(rs ...Recipient) int + func (env *InteractionEnv) Handle(t *testing.T, d datadriven.TestData) string + func (env *InteractionEnv) LogLevel(name string) error + func (env *InteractionEnv) ProcessReady(idx int) error + func (env *InteractionEnv) Propose(idx int, data []byte) error + func (env *InteractionEnv) ProposeConfChange(idx int, c raftpb.ConfChangeI) error + func (env *InteractionEnv) RaftLog(idx int) error + func (env *InteractionEnv) Stabilize(idxs ...int) error + func (env *InteractionEnv) Status(idx int) error + func (env *InteractionEnv) Tick(idx int, num int) error + type InteractionOpts struct + OnConfig func(*raft.Config) + type Node struct + Config *raft.Config + History []pb.Snapshot + type Recipient struct + Drop bool + ID uint64 + type RedirectLogger struct + Lvl int + func (l *RedirectLogger) Debug(v ...interface{}) + func (l *RedirectLogger) Debugf(format string, v ...interface{}) + func (l *RedirectLogger) Error(v ...interface{}) + func (l *RedirectLogger) Errorf(format string, v ...interface{}) + func (l *RedirectLogger) Fatal(v ...interface{}) + func (l *RedirectLogger) Fatalf(format string, v ...interface{}) + func (l *RedirectLogger) Info(v ...interface{}) + func (l *RedirectLogger) Infof(format string, v ...interface{}) + func (l *RedirectLogger) Panic(v ...interface{}) + func (l *RedirectLogger) Panicf(format string, v ...interface{}) + func (l *RedirectLogger) Warning(v ...interface{}) + func (l *RedirectLogger) Warningf(format string, v ...interface{}) + type Storage interface + Append func([]pb.Entry) error + ApplySnapshot func(pb.Snapshot) error + Compact func(newFirstIndex uint64) error + SetHardState func(state pb.HardState) error Other modules containing this package github.com/btwiuse/etcd