OriginService is something a tunnel can proxy traffic to.
| 30 | |
| 31 | // OriginService is something a tunnel can proxy traffic to. |
| 32 | type OriginService interface { |
| 33 | String() string |
| 34 | // Start the origin service if it's managed by cloudflared, e.g. proxy servers or Hello World. |
| 35 | // If it's not managed by cloudflared, this is a no-op because the user is responsible for |
| 36 | // starting the origin service. |
| 37 | // Implementor of services managed by cloudflared should terminate the service if shutdownC is closed |
| 38 | start(log *zerolog.Logger, shutdownC <-chan struct{}, cfg OriginRequestConfig) error |
| 39 | MarshalJSON() ([]byte, error) |
| 40 | } |
| 41 | |
| 42 | // unixSocketPath is an OriginService representing a unix socket (which accepts HTTP or HTTPS) |
| 43 | type unixSocketPath struct { |
no outgoing calls
no test coverage detected