2016-02-28 00:20:40 +00:00
|
|
|
package goricochet
|
|
|
|
|
|
|
|
type RicochetService interface {
|
2016-02-29 00:18:25 +00:00
|
|
|
OnConnect(serverHostname string)
|
|
|
|
OnAuthenticationChallenge(channelID int32, serverHostname string, serverCookie [16]byte)
|
|
|
|
OnAuthenticationResult(channelID int32, serverHostname string, result bool)
|
|
|
|
|
|
|
|
OnOpenChannelRequest(channelID int32, serverHostname string)
|
|
|
|
OnOpenChannelRequestAck(channelID int32, serverHostname string, result bool)
|
|
|
|
OnChannelClose(channelID int32, serverHostname string)
|
|
|
|
|
|
|
|
OnContactRequest(channelID string, serverHostname string, nick string, message string)
|
|
|
|
|
|
|
|
OnChatMessage(channelID int32, serverHostname string, messageID int32, message string)
|
|
|
|
OnChatMessageAck(channelID int32, serverHostname string, messageID int32)
|
2016-02-28 00:20:40 +00:00
|
|
|
}
|