Run this Function.
()
| 20 | |
| 21 | // Run this Function. |
| 22 | func (c *CLI) Run() error { |
| 23 | log, err := function.NewLogger(c.Debug) |
| 24 | if err != nil { |
| 25 | return err |
| 26 | } |
| 27 | |
| 28 | return function.Serve(&Function{log: log}, |
| 29 | function.Listen(c.Network, c.Address), |
| 30 | function.MTLSCertificates(c.TLSCertsDir), |
| 31 | function.Insecure(c.Insecure), |
| 32 | function.MaxRecvMessageSize(c.MaxRecvMessageSize*1024*1024)) |
| 33 | } |
| 34 | |
| 35 | func main() { |
| 36 | ctx := kong.Parse(&CLI{}, kong.Description("A Crossplane Composition Function.")) |
no outgoing calls