Table is the interface implemented by module that implementation string-to-string translation. Modules implementing this interface should be registered with prefix "table." in name.
| 26 | // Modules implementing this interface should be registered with prefix |
| 27 | // "table." in name. |
| 28 | type Table interface { |
| 29 | Lookup(ctx context.Context, s string) (string, bool, error) |
| 30 | } |
| 31 | |
| 32 | // MultiTable is the interface that module can implement in addition to Table |
| 33 | // if it can provide multiple values as a lookup result. |
no outgoing calls
no test coverage detected