| 305 | } |
| 306 | |
| 307 | type api struct { |
| 308 | adapter Adapter |
| 309 | config Config |
| 310 | formats map[string]Format |
| 311 | formatKeys []string |
| 312 | transformers []Transformer |
| 313 | middlewares Middlewares |
| 314 | } |
| 315 | |
| 316 | var _ API = (*api)(nil) // The api struct must implement our API interface |
| 317 | var _ configProvider[Config] = (*api)(nil) // The api struct must implement the configProvider[Config] interface in order to provide a way to access its configuration |
nothing calls this directly
no outgoing calls
no test coverage detected