newModelOptions resolves the supplied options over the defaults.
(opts ...ModelOption)
| 194 | |
| 195 | // newModelOptions resolves the supplied options over the defaults. |
| 196 | func newModelOptions(opts ...ModelOption) *modelOptions { |
| 197 | resolved := &modelOptions{ |
| 198 | strategy: defaultSizing, |
| 199 | version: defaultModelVersion, |
| 200 | } |
| 201 | for _, opt := range opts { |
| 202 | opt(resolved) |
| 203 | } |
| 204 | return resolved |
| 205 | } |
| 206 | |
| 207 | // Model registers one or more OverloadModels for both cost estimation and runtime cost tracking. |
| 208 | // |
no outgoing calls