Add client core, handshake pending frames, and in-memory Conn tests
This commit is contained in:
25
message.go
Normal file
25
message.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package ownwire_sdk
|
||||
|
||||
type EventKind uint8
|
||||
|
||||
const (
|
||||
EventOpened EventKind = iota + 1
|
||||
EventMessage
|
||||
EventError
|
||||
EventClosed
|
||||
)
|
||||
|
||||
type Event struct {
|
||||
Kind EventKind
|
||||
Message Message
|
||||
Err error
|
||||
}
|
||||
|
||||
type Message struct {
|
||||
Content string
|
||||
Metadata string
|
||||
SeqNum uint64
|
||||
IsResponse bool
|
||||
CreatedAt int64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user