Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

types.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // @flow
  2. import {
  3. Socket,
  4. } from 'net';
  5. import {
  6. TLSSocket,
  7. } from 'tls';
  8. import {
  9. Agent as HttpAgent,
  10. } from 'http';
  11. import {
  12. Agent as HttpsAgent,
  13. } from 'https';
  14. export type ProxyConfigurationType = {|
  15. +authorization: string,
  16. +hostname: string,
  17. +port: number,
  18. |};
  19. export type TlsConfigurationType = {|
  20. +ca?: string,
  21. +cert?: string,
  22. +ciphers?: string,
  23. +clientCertEngine?: string,
  24. +crl?: string,
  25. +dhparam?: string,
  26. +ecdhCurve?: string,
  27. +honorCipherOrder?: boolean,
  28. +key?: string,
  29. +passphrase?: string,
  30. +pfx?: string,
  31. +rejectUnauthorized?: boolean,
  32. +secureOptions?: number,
  33. +secureProtocol?: string,
  34. +servername?: string,
  35. +sessionIdContext?: string,
  36. |};
  37. export type ConnectionConfigurationType = {|
  38. +host: string,
  39. +port: number,
  40. +tls?: TlsConfigurationType,
  41. +proxy: ProxyConfigurationType,
  42. |};
  43. export type ConnectionCallbackType = (error: Error | null, socket?: Socket | TLSSocket) => void;
  44. export type AgentType = HttpAgent | HttpsAgent;
  45. export type IsProxyConfiguredMethodType = () => boolean;
  46. export type MustUrlUseProxyMethodType = (url: string) => boolean;
  47. export type GetUrlProxyMethodType = (url: string) => ProxyConfigurationType;
  48. export type ProtocolType = 'http:' | 'https:';
  49. export type ProxyAgentConfigurationInputType = {|
  50. +environmentVariableNamespace?: string,
  51. +forceGlobalAgent?: boolean,
  52. +socketConnectionTimeout?: number,
  53. |};
  54. export type ProxyAgentConfigurationType = {|
  55. +environmentVariableNamespace: string,
  56. +forceGlobalAgent: boolean,
  57. +socketConnectionTimeout: number,
  58. |};