Documentation
¶
Index ¶
- Constants
- func NewGetIdentityCommand(idProvider module.IdentityProvider) commands.AdminCommand
- func NewReadProtocolStateBlocksCommand(state protocol.State, storage storage.Blocks) commands.AdminCommand
- type GetConfigCommand
- type GetIdentityCommand
- type GetRequiredApprovalsForSealingCommand
- type ListConfigCommand
- type ReadProtocolStateBlocksCommand
- type SetConfigCommand
- type SetLogLevelCommand
Constants ¶
View Source
const ( FlowID getIdentityRequestType = iota PeerID )
View Source
const ( ID requestType = iota Height Final Sealed )
Variables ¶
This section is empty.
Functions ¶
func NewGetIdentityCommand ¶ added in v0.24.9
func NewGetIdentityCommand(idProvider module.IdentityProvider) commands.AdminCommand
func NewReadProtocolStateBlocksCommand ¶ added in v0.23.2
Types ¶
type GetConfigCommand ¶ added in v0.28.13
type GetConfigCommand struct {
// contains filtered or unexported fields
}
GetConfigCommand is an admin command which retrieves the current value of a dynamically updatable config.
func NewGetConfigCommand ¶ added in v0.28.13
func NewGetConfigCommand(configs *updatable_configs.Manager) *GetConfigCommand
func (*GetConfigCommand) Handler ¶ added in v0.28.13
func (s *GetConfigCommand) Handler(_ context.Context, req *admin.CommandRequest) (interface{}, error)
func (*GetConfigCommand) Validator ¶ added in v0.28.13
func (s *GetConfigCommand) Validator(req *admin.CommandRequest) error
type GetIdentityCommand ¶ added in v0.24.9
type GetIdentityCommand struct {
// contains filtered or unexported fields
}
func (*GetIdentityCommand) Handler ¶ added in v0.24.9
func (r *GetIdentityCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*GetIdentityCommand) Validator ¶ added in v0.24.9
func (r *GetIdentityCommand) Validator(req *admin.CommandRequest) error
type GetRequiredApprovalsForSealingCommand ¶ added in v0.26.13
type GetRequiredApprovalsForSealingCommand struct {
// contains filtered or unexported fields
}
func NewGetRequiredApprovalsForSealingCommand ¶ added in v0.26.13
func NewGetRequiredApprovalsForSealingCommand(getter module.SealingConfigsGetter) *GetRequiredApprovalsForSealingCommand
func (*GetRequiredApprovalsForSealingCommand) Handler ¶ added in v0.26.13
func (s *GetRequiredApprovalsForSealingCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*GetRequiredApprovalsForSealingCommand) Validator ¶ added in v0.26.13
func (s *GetRequiredApprovalsForSealingCommand) Validator(req *admin.CommandRequest) error
type ListConfigCommand ¶ added in v0.28.13
type ListConfigCommand struct {
// contains filtered or unexported fields
}
ListConfigCommand is an admin command which lists all config fields which may by dynamically modified via admin command.
func NewListConfigCommand ¶ added in v0.28.13
func NewListConfigCommand(configs *updatable_configs.Manager) *ListConfigCommand
func (*ListConfigCommand) Handler ¶ added in v0.28.13
func (s *ListConfigCommand) Handler(_ context.Context, req *admin.CommandRequest) (interface{}, error)
func (*ListConfigCommand) Validator ¶ added in v0.28.13
func (s *ListConfigCommand) Validator(req *admin.CommandRequest) error
type ReadProtocolStateBlocksCommand ¶ added in v0.23.2
type ReadProtocolStateBlocksCommand struct {
// contains filtered or unexported fields
}
func (*ReadProtocolStateBlocksCommand) Handler ¶ added in v0.23.2
func (r *ReadProtocolStateBlocksCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*ReadProtocolStateBlocksCommand) Validator ¶ added in v0.23.2
func (r *ReadProtocolStateBlocksCommand) Validator(req *admin.CommandRequest) error
type SetConfigCommand ¶ added in v0.28.13
type SetConfigCommand struct {
// contains filtered or unexported fields
}
SetConfigCommand is an admin command which enables setting any config field which has registered as dynamically updatable with the config Manager.
func NewSetConfigCommand ¶ added in v0.28.13
func NewSetConfigCommand(configs *updatable_configs.Manager) *SetConfigCommand
func (*SetConfigCommand) Handler ¶ added in v0.28.13
func (s *SetConfigCommand) Handler(_ context.Context, req *admin.CommandRequest) (interface{}, error)
func (*SetConfigCommand) Validator ¶ added in v0.28.13
func (s *SetConfigCommand) Validator(req *admin.CommandRequest) error
type SetLogLevelCommand ¶
type SetLogLevelCommand struct{}
func (*SetLogLevelCommand) Handler ¶ added in v0.23.2
func (s *SetLogLevelCommand) Handler(ctx context.Context, req *admin.CommandRequest) (interface{}, error)
func (*SetLogLevelCommand) Validator ¶ added in v0.23.2
func (s *SetLogLevelCommand) Validator(req *admin.CommandRequest) error
Click to show internal directories.
Click to hide internal directories.