package
0.0.0-20160914140844-13f918f98fbc
Repository: https://github.com/hailooss/go-hailo-lib.git
Documentation: pkg.go.dev
# Functions
ExtractCityFromID is backwards compatible version of ExtractHobFromID.
ExtractHobFromID takes an ID of the form LON1234 and returns LON.
HobRoleAuthoriser requires a service or user calling an endpoint to have ANY of the roles passed, which will be scoped to a particular HOB (as determined by hobDiscriminator).
SignInHobRoleAuthoriser requires a real person signed in calling an endpoint to have ANY of the passed roles, which will be scoped to a particular HOB (as determined by hobDiscriminator).
# Type aliases
HobDiscriminator defines a function that can determine a HOB for a given server request.