MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / AddFlags

Method AddFlags

pkg/controller/rtctrl/options.go:44–53  ·  view source on GitHub ↗
(fs *pflag.FlagSet)

Source from the content-addressed store, hash-verified

42 }
43}
44func (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
55type RuntimeConfigOptions struct {
56 // Time to wait for runtime to connect (Cold Start)

Callers 1

Calls

no outgoing calls

Tested by 1