Documentation ¶
Index ¶
- func SetupManagementRPCHander(actions Actions) (*jsonrpc.MethodRepository, error)
- type Action
- type Actions
- type DealerMessageHandler
- type DealerMessageParams
- type DealerMessageResult
- type HandleDealerMessage
- type RetriggerPSSAction
- type RetriggerPSSHandler
- type RetriggerPSSParams
- type RetriggerPSSResult
- type SetLogLevelHandler
- type SetLogLevelParams
- type SetLogLevelResult
- type SetMutableConfigHandler
- type SetMutableConfigParams
- type SetMutableConfigResult
- type Trigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupManagementRPCHander ¶
func SetupManagementRPCHander(actions Actions) (*jsonrpc.MethodRepository, error)
Types ¶
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 DealerMessageResult ¶
type DealerMessageResult struct {
Result string
}
type HandleDealerMessage ¶
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 SetMutableConfigResult ¶
type SetMutableConfigResult struct {
NewConfigs string `json:"new_configs"`
}
Click to show internal directories.
Click to hide internal directories.