rpc_options.km 623 B

12345678910111213141516171819202122232425262728293031323334
  1. type ServerOptions {
  2. common: CommonOptions
  3. };
  4. type ClientOptions {
  5. common: CommonOptions
  6. };
  7. type CommonOptions {
  8. log: LogOptions,
  9. limits: LimitOptions
  10. };
  11. export const @default: CommonOptions := {};
  12. type LogOptions {
  13. enabled: Bool
  14. };
  15. export const @default: LogOptions := { enabled: Yes };
  16. type LimitOptions {
  17. send-timeout: Number,
  18. recv-timeout: Number,
  19. recv-interval: Number,
  20. recv-max-obj-size: Number
  21. };
  22. export const @default: LimitOptions := {
  23. send-timeout: 10000,
  24. recv-timeout: 0,
  25. recv-interval: 100,
  26. recv-max-obj-size: 33554432
  27. };