You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

constant.go 558 B

3 years ago
12345678910111213141516171819202122232425262728
  1. package protocol
  2. var MAGIC_CODE_BYTES = [2]byte{0xda, 0xda}
  3. const (
  4. VERSION = 1
  5. // MaxFrameLength max frame length
  6. MaxFrameLength = 8 * 1024 * 1024
  7. // V1HeadLength v1 head length
  8. V1HeadLength = 16
  9. // MSGTypeRequest request message type
  10. MSGTypeRequest = 0
  11. // MSGTypeResponse response message type
  12. MSGTypeResponse = 1
  13. // MSGTypeRequestOneway request one way
  14. MSGTypeRequestOneway = 2
  15. // MSGTypeHeartbeatRequest heart beat request
  16. MSGTypeHeartbeatRequest = 3
  17. // MSGTypeHeartbeatResponse heart beat response
  18. MSGTypeHeartbeatResponse = 4
  19. )

Go Implementation For Seata