CLI of this Function.
| 9 | |
| 10 | // CLI of this Function. |
| 11 | type CLI struct { |
| 12 | Debug bool `help:"Emit debug logs in addition to info logs." short:"d"` |
| 13 | |
| 14 | Network string `default:"tcp" help:"Network on which to listen for gRPC connections."` |
| 15 | Address string `default:":9443" help:"Address at which to listen for gRPC connections."` |
| 16 | TLSCertsDir string `env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"` |
| 17 | Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` |
| 18 | MaxRecvMessageSize int `default:"4" help:"Maximum size of received messages in MB."` |
| 19 | } |
| 20 | |
| 21 | // Run this Function. |
| 22 | func (c *CLI) Run() error { |
nothing calls this directly
no outgoing calls
no test coverage detected