// Package main implements a Composition Function.
package main
import (
"github.com/alecthomas/kong"
"github.com/crossplane/function-sdk-go"
)
// CLI of this Function.
typeCLIstruct {
Debugbool`help:"Emit debug logs in addition to info logs." short:"d"`
Networkstring`default:"tcp" help:"Network on which to listen for gRPC connections."`
Addressstring`default:":9443" help:"Address at which to listen for gRPC connections."`
TLSCertsDirstring`env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"`
Insecurebool`help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
MaxRecvMessageSizeint`default:"4" help:"Maximum size of received messages in MB."`