Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Abort(ctx context.Context, req *pb.AbortRequest) (*empty.Empty, error)
- func (h *Handler) Commit(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error)
- func (h *Handler) Contribute(ctx context.Context, req *pb.ContributeRequest) (*pb.ContributeResponse, error)
- func (h *Handler) Execute(ctx context.Context, req *pb.ExecuteRequest) (*empty.Empty, error)
- func (h *Handler) Prepare(ctx context.Context, req *pb.PrepareRequest) (*empty.Empty, error)
- type Parameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { pb.UnimplementedDKGServer // contains filtered or unexported fields }
Handler is the receiver handler, receiving requests in the distributed key generation process.
func (*Handler) Commit ¶
func (h *Handler) Commit(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error)
Commit handles the Commit() grpc call.
func (*Handler) Contribute ¶
func (h *Handler) Contribute(ctx context.Context, req *pb.ContributeRequest) (*pb.ContributeResponse, error)
Contribute receives and returns contributions.
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for handler parameters.
func WithLogLevel ¶
WithLogLevel sets the log level for the handler.
func WithProcess ¶
WithProcess sets the process service for the handler.
Click to show internal directories.
Click to hide internal directories.