(fs *pflag.FlagSet)
| 42 | } |
| 43 | } |
| 44 | func (s *DispatcherV2Options) AddFlags(fs *pflag.FlagSet) { |
| 45 | fs.StringVar(&s.RuntimeServerAddress, "dispatcher-address", |
| 46 | s.RuntimeServerAddress, "runtime server address (log and invoke)") |
| 47 | fs.StringVar(&s.RunnerServerAddress, "runner-dispatcher-address", |
| 48 | s.RunnerServerAddress, "runner server address") |
| 49 | fs.StringVar(&s.UserLogFileDir, "userlog-filepath", |
| 50 | s.UserLogFileDir, "user log storage path") |
| 51 | fs.StringVar(&s.UserLogType, "userlog-type", |
| 52 | s.UserLogType, "user log type (eg. plain,json)") |
| 53 | } |
| 54 | |
| 55 | type RuntimeConfigOptions struct { |
| 56 | // Time to wait for runtime to connect (Cold Start) |
no outgoing calls