conduit/types/message.go
Evan Reichard 20c1388cf4
All checks were successful
continuous-integration/drone/push Build is passing
chore: better source tracking
2025-09-23 09:24:09 -04:00

16 lines
328 B
Go

package types
type MessageType string
const (
MessageTypeData MessageType = "data"
MessageTypeClose MessageType = "close"
)
type Message struct {
Type MessageType `json:"type"`
StreamID string `json:"stream_id"`
SourceAddr string `json:"source_addr"`
Data []byte `json:"data,omitempty"`
}