| 1 | package services |
| 2 | |
| 3 | import ( |
| 4 | "github.com/nicholas-fedor/shoutrrr/pkg/router" |
| 5 | ) |
| 6 | |
| 7 | // SupportedSchemas returns the sorted list of service schemas supported by this build. |
| 8 | // |
| 9 | // Returns: |
| 10 | // - []string: the supported service schemas. |
| 11 | func SupportedSchemas() []string { |
| 12 | return router.SupportedSchemas() |
| 13 | } |
| 14 | |
| 15 | // SupportsSchema reports whether schema is supported by this build. |
| 16 | // |
| 17 | // Parameters: |
| 18 | // - schema: the service schema to check. |
| 19 | // |
| 20 | // Returns: |
| 21 | // - bool: true if the schema is supported. |
| 22 | func SupportsSchema(schema string) bool { |
| 23 | return router.SupportsSchema(schema) |
| 24 | } |