mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-1439] Added Stop command * [NOD-1439] Added comment explaining why we wait before closing the StopChan * [NOD-1439] Warnf -> Warn * [NOD-1439] Rename Stop command to Shut Down * [NOD-1439] Clean up pauseBeforeShutDown * [NOD-1439] Add ShutDownRequestMessage case for toRPCPayload * [NOD-1439] Minor stylistic changes
35 lines
972 B
Go
35 lines
972 B
Go
package appmessage
|
|
|
|
// ShutDownRequestMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type ShutDownRequestMessage struct {
|
|
baseMessage
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *ShutDownRequestMessage) Command() MessageCommand {
|
|
return CmdShutDownRequestMessage
|
|
}
|
|
|
|
// NewShutDownRequestMessage returns a instance of the message
|
|
func NewShutDownRequestMessage() *ShutDownRequestMessage {
|
|
return &ShutDownRequestMessage{}
|
|
}
|
|
|
|
// ShutDownResponseMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type ShutDownResponseMessage struct {
|
|
baseMessage
|
|
Error *RPCError
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *ShutDownResponseMessage) Command() MessageCommand {
|
|
return CmdShutDownResponseMessage
|
|
}
|
|
|
|
// NewShutDownResponseMessage returns a instance of the message
|
|
func NewShutDownResponseMessage() *ShutDownResponseMessage {
|
|
return &ShutDownResponseMessage{}
|
|
}
|