2016-06-19 06:43:29 +00:00
|
|
|
package service
|
|
|
|
|
|
|
|
// RPCCallback is used by RPC methods to return their result asynchronously.
|
|
|
|
type RPCCallback interface {
|
|
|
|
Return(out interface{}, err error)
|
2021-03-08 18:05:10 +00:00
|
|
|
|
2022-03-09 17:12:42 +00:00
|
|
|
// SetupDoneChan returns a channel that should be closed to signal that the
|
2023-04-27 20:39:33 +00:00
|
|
|
// asynchronous method has completed setup and the server is ready to
|
2021-03-08 18:05:10 +00:00
|
|
|
// receive other requests.
|
|
|
|
SetupDoneChan() chan struct{}
|
2024-06-12 19:31:46 +00:00
|
|
|
|
2024-06-25 13:16:58 +00:00
|
|
|
// DisconnectChan returns a channel that should be closed to signal that
|
2024-06-12 19:31:46 +00:00
|
|
|
// the client that initially issued the command has been disconnected.
|
|
|
|
DisconnectChan() chan struct{}
|
2016-06-19 06:43:29 +00:00
|
|
|
}
|