File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
onex-nightwatch/app/options
onex-usercenter/app/options Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func (o *Options) Validate() error {
122
122
return utilerrors .NewAggregate (errs )
123
123
}
124
124
125
- // ApplyTo fills up onex-nightwatch config with options.
125
+ // ApplyTo fills up onex-gateway config with options.
126
126
func (o * Options ) ApplyTo (c * gateway.Config ) error {
127
127
c .GRPCOptions = o .GRPCOptions
128
128
c .HTTPOptions = o .HTTPOptions
@@ -136,7 +136,7 @@ func (o *Options) ApplyTo(c *gateway.Config) error {
136
136
return nil
137
137
}
138
138
139
- // Config return a onex-nightwatch config object.
139
+ // Config return an onex-gateway config object.
140
140
func (o * Options ) Config () (* gateway.Config , error ) {
141
141
kubeconfig , err := clientcmd .BuildConfigFromFlags ("" , o .Kubeconfig )
142
142
if err != nil {
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ func (o *Options) ApplyTo(c *nightwatch.Config) error {
101
101
return nil
102
102
}
103
103
104
- // Config return a onex-nightwatch config object.
104
+ // Config return an onex-nightwatch config object.
105
105
func (o * Options ) Config () (* nightwatch.Config , error ) {
106
106
kubeconfig , err := clientcmd .BuildConfigFromFlags ("" , o .Kubeconfig )
107
107
if err != nil {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func (o *Options) ApplyTo(c *pump.Config) error {
89
89
return nil
90
90
}
91
91
92
- // Config return a onex-nightwatch config object.
92
+ // Config return an onex-pump config object.
93
93
func (o * Options ) Config () (* pump.Config , error ) {
94
94
c := & pump.Config {}
95
95
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func (o *Options) Validate() error {
114
114
return utilerrors .NewAggregate (errs )
115
115
}
116
116
117
- // ApplyTo fills up onex-nightwatch config with options.
117
+ // ApplyTo fills up onex-toyblc config with options.
118
118
func (o * Options ) ApplyTo (c * toyblc.Config ) error {
119
119
c .Miner = o .Miner
120
120
c .MinMineInterval = o .MinMineInterval
@@ -128,7 +128,7 @@ func (o *Options) ApplyTo(c *toyblc.Config) error {
128
128
return nil
129
129
}
130
130
131
- // Config return a onex-nightwatch config object.
131
+ // Config return an onex-toyblc config object.
132
132
func (o * Options ) Config () (* toyblc.Config , error ) {
133
133
c := & toyblc.Config {}
134
134
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ func (o *Options) Validate() error {
134
134
return utilerrors .NewAggregate (errs )
135
135
}
136
136
137
- // ApplyTo fills up onex-nightwatch config with options.
137
+ // ApplyTo fills up onex-usercenter config with options.
138
138
func (o * Options ) ApplyTo (c * usercenter.Config ) error {
139
139
c .GRPCOptions = o .GRPCOptions
140
140
c .HTTPOptions = o .HTTPOptions
@@ -149,7 +149,7 @@ func (o *Options) ApplyTo(c *usercenter.Config) error {
149
149
return nil
150
150
}
151
151
152
- // Config return a onex-nightwatch config object.
152
+ // Config return an onex-usercenter config object.
153
153
func (o * Options ) Config () (* usercenter.Config , error ) {
154
154
c := & usercenter.Config {}
155
155
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ func WithDescription(desc string) Option {
83
83
}
84
84
}
85
85
86
- // WithHealthCheck is used to set the health check function for the application.
86
+ // WithHealthCheckFunc is used to set the health check function for the application.
87
87
// The app framework will use the function to start a health check server.
88
88
func WithHealthCheckFunc (fn HealthCheckFunc ) Option {
89
89
return func (a * App ) {
You can’t perform that action at this time.
0 commit comments