mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 04:01:40 +00:00
Refactor Application to Application & AppContext
This commit is contained in:
@ -2,6 +2,12 @@ package types
|
||||
|
||||
type Application interface {
|
||||
|
||||
// For new socket connections
|
||||
Open() AppContext
|
||||
}
|
||||
|
||||
type AppContext interface {
|
||||
|
||||
// Echo a message
|
||||
Echo(message string) string
|
||||
|
||||
@ -28,4 +34,7 @@ type Application interface {
|
||||
|
||||
// Remove event listener
|
||||
RemListener(key string) RetCode
|
||||
|
||||
// Close this AppContext
|
||||
Close() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user