Documentation ¶
Overview ¶
Package consensus implements publicly accessible consensus services.
Index ¶
Constants ¶
View Source
const (
// CfgWorkerEnabled enables the consensus RPC services worker.
CfgWorkerEnabled = "worker.consensusrpc.enabled"
)
Variables ¶
View Source
var Flags = flag.NewFlagSet("", flag.ContinueOnError)
Flags has the configuration flags.
Functions ¶
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a worker providing publicly accessible consensus services.
Currently this only exposes the consensus light client service.
func New ¶
func New(commonWorker *workerCommon.Worker, registration *registration.Worker) (*Worker, error)
New creates a new public consensus services worker.
func (*Worker) Cleanup ¶
func (w *Worker) Cleanup()
Cleanup performs the service specific post-termination cleanup.
Click to show internal directories.
Click to hide internal directories.