Versions in this module Expand all Collapse all v0 v0.1.0 Apr 13, 2021 Changes in this version + const DefaultHTTPPort + const KeyFile + const StateFile + var ErrRankObsolete = errors.New(...) + func HandleRequest(ctx context.Context, msg *tm_privvalproto.Message, pv *SCFilePV) (*tm_privvalproto.Message, error) + func KeyFilePath(cfgDir string) string + func StateFilePath(cfgDir string) string + type SCFilePV struct + Config config.Config + Gauges types.Gauges + HTTP *http.Server + Logger *types.SyncLogger + SecretConn net.Conn + State config.State + TMFilePV tm_types.PrivValidator + func NewSCFilePV(logger *types.SyncLogger, cfg config.Config, state config.State, ...) *SCFilePV + func (pv *SCFilePV) OnMissedTooMany() + func (pv *SCFilePV) OnPromote() + func (pv *SCFilePV) OnStart() (err error) + func (pv *SCFilePV) OnStop() error + func (pv *SCFilePV) StartHTTPServer() error + type StatusResponse struct + Counter int + Height int64 + Rank int + SetSize int + Threshold int + func GetStatus() (*StatusResponse, error)