Debian Codegraph @

pkg/router/schema_registry.go

raw symbols SCIP
1 package routerscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/
2
3 import "sortscip-go gomod github.com/golang/go/src . sort/"
4
5 // SupportedSchemas returns the sorted list of service schemas supported by this build.
6 //
7 // Returns:
8 // - []string: the supported service schemas.
9 func SupportedSchemasscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/SupportedSchemas().() []string {
10 schemas := make([]string, 0, len(serviceMapscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/serviceMap.))
11 for scheme := range serviceMapscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/serviceMap. {
12 schemas = append(schemas, scheme)
13 }
14
15 sortscip-go gomod github.com/golang/go/src . sort/.Stringsscip-go gomod github.com/golang/go/src . sort/Strings().(schemas)
16
17 return schemas
18 }
19
20 // SupportsSchema reports whether schema is supported by this build.
21 //
22 // Parameters:
23 // - schema: the service schema to check.
24 //
25 // Returns:
26 // - bool: true if the schema is supported.
27 func SupportsSchemascip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/SupportsSchema().(schema string) bool {
28 _, ok := serviceMapscip-go gomod github.com/nicholas-fedor/shoutrrr . `github.com/nicholas-fedor/shoutrrr/pkg/router`/serviceMap.[schema]
29
30 return ok
31 }