forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 4
/
application.go
26 lines (19 loc) · 917 Bytes
/
application.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package quickfix
// The Application interface should be implemented by FIX Applications.
// This is the primary interface for processing messages from a FIX Session.
type Application interface {
//Notification of a session begin created.
OnCreate(sessionID SessionID)
//Notification of a session successfully logging on.
OnLogon(sessionID SessionID)
//Notification of a session logging off or disconnecting.
OnLogout(sessionID SessionID)
//Notification of admin message being sent to target.
ToAdmin(message *Message, sessionID SessionID)
//Notification of app message being sent to target.
ToApp(message *Message, sessionID SessionID) error
//Notification of admin message being received from target.
FromAdmin(message *Message, sessionID SessionID) MessageRejectError
//Notification of app message being received from target.
FromApp(message *Message, sessionID SessionID) MessageRejectError
}