mrpc

package
v0.0.0-...-d9fe26e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupManagementRPCHander

func SetupManagementRPCHander(actions Actions) (*jsonrpc.MethodRepository, error)

Types

type Action

type Action func(interface{}) (interface{}, error)

type Actions

type Actions struct {
	RetriggerPSS        RetriggerPSSAction
	HandleDealerMessage HandleDealerMessage
}

type DealerMessageHandler

type DealerMessageHandler struct {
	HandleDealerMessage HandleDealerMessage
}

func (DealerMessageHandler) ServeJSONRPC

func (h DealerMessageHandler) ServeJSONRPC(c context.Context, params *bijson.RawMessage) (interface{}, *jsonrpc.Error)

DealerMessage

type DealerMessageParams

type DealerMessageParams struct {
	DealerMessage dealer.Message `json:"dealerMessage"`
}

type DealerMessageResult

type DealerMessageResult struct {
	Result string
}

type HandleDealerMessage

type HandleDealerMessage func(dealer.Message) error

type RetriggerPSSAction

type RetriggerPSSAction func() error

type RetriggerPSSHandler

type RetriggerPSSHandler struct {
	RetriggerPSS RetriggerPSSAction
}

func (RetriggerPSSHandler) ServeJSONRPC

func (h RetriggerPSSHandler) ServeJSONRPC(c context.Context, params *bijson.RawMessage) (interface{}, *jsonrpc.Error)

type RetriggerPSSParams

type RetriggerPSSParams struct {
	PssProtocolPrefix string `json:"pss_protocol_prefix"`
	EndIndex          int    `json:"end_index"`
	EpochOld          int    `json:"epoch_old"`
	NOld              int    `json:"n_old"`
	KOld              int    `json:"k_old"`
	TOld              int    `json:"t_old"`
	EpochNew          int    `json:"epoch_new"`
	NNew              int    `json:"n_new"`
	KNew              int    `json:"k_new"`
	TNew              int    `json:"t_new"`
}

type RetriggerPSSResult

type RetriggerPSSResult struct{}

type SetLogLevelHandler

type SetLogLevelHandler struct{}

func (SetLogLevelHandler) ServeJSONRPC

func (h SetLogLevelHandler) ServeJSONRPC(c context.Context, params *bijson.RawMessage) (interface{}, *jsonrpc.Error)

type SetLogLevelParams

type SetLogLevelParams struct {
	Level string `json:"level"`
}

type SetLogLevelResult

type SetLogLevelResult struct{}

type SetMutableConfigHandler

type SetMutableConfigHandler struct{}

func (SetMutableConfigHandler) ServeJSONRPC

func (h SetMutableConfigHandler) ServeJSONRPC(c context.Context, params *bijson.RawMessage) (interface{}, *jsonrpc.Error)

type SetMutableConfigParams

type SetMutableConfigParams struct {
	Key         string `json:"key"`
	ValueType   string `json:"value_type"`
	StringValue string `json:"string_value"`
	IntValue    int    `json:"int_value"`
	BoolValue   bool   `json:"bool_value"`
}

type SetMutableConfigResult

type SetMutableConfigResult struct {
	NewConfigs string `json:"new_configs"`
}

type Trigger

type Trigger interface {
	TriggerPSS(pssProtocolPrefix string, keygenID string, epochOld int, nOld int, kOld int, tOld int, epochNew int, nNew int, kNew int, tNew int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL