key.go 664 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package metadata
  2. // metadata common key
  3. const (
  4. // Network
  5. RemoteIP = "remote_ip"
  6. RemotePort = "remote_port"
  7. ServerAddr = "server_addr"
  8. ClientAddr = "client_addr"
  9. // Router
  10. Color = "color"
  11. // Trace
  12. Trace = "trace"
  13. Caller = "caller"
  14. // Timeout
  15. Timeout = "timeout"
  16. // Dispatch
  17. CPUUsage = "cpu_usage"
  18. Errors = "errors"
  19. Requests = "requests"
  20. // Mirror
  21. Mirror = "mirror"
  22. // Mid
  23. // 外网账户用户id
  24. Mid = "mid"
  25. // Uid
  26. // 内网manager平台的用户id user_id
  27. Uid = "uid"
  28. // Username
  29. // LDAP平台的username
  30. Username = "username"
  31. // Device
  32. Device = "device"
  33. // Cluster cluster info key
  34. Cluster = "cluster"
  35. )