Documentation ¶
Index ¶
- func Command() *cli.Command
- func CreateHandler(svc service.Create, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func DeleteHandler(svc service.Delete, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func GetHandler(svc service.Get, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func HealthHandler(mongoClient *mongo.Client, rabbitConn *amqp.Connection) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func PatchHandler(svc service.Patch, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func ReplaceHandler(svc service.Replace, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func ResourceTypeByIdHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func ResourceTypesHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func SchemaByIdHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func SchemasHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func SearchHandler(svc service.Query, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
- func ServiceProviderConfigHandler(config *spec.ServiceProviderConfig) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command() *cli.Command
Command returns a cli.Command that starts an HTTP router to serve the SCIM API.
func CreateHandler ¶
func CreateHandler(svc service.Create, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
CreateHandler returns a route handler function for creating SCIM resources.
func DeleteHandler ¶
func DeleteHandler(svc service.Delete, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
DeleteHandler returns a route handler function for deleting SCIM resource.
func GetHandler ¶
func GetHandler(svc service.Get, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
GetHandler returns a route handler function for getting SCIM resource.
func HealthHandler ¶
func HealthHandler(mongoClient *mongo.Client, rabbitConn *amqp.Connection) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
HealthHandler returns a http handler to report service health status.
func PatchHandler ¶
func PatchHandler(svc service.Patch, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
PatchHandler returns a route handler function for patching SCIM resource.
func ReplaceHandler ¶
func ReplaceHandler(svc service.Replace, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
ReplaceHandler returns a route handler function for replacing SCIM resource.
func ResourceTypeByIdHandler ¶
func ResourceTypeByIdHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
ResourceTypeByIdHandler returns a route handler function get ResourceType by its id.
func ResourceTypesHandler ¶
func ResourceTypesHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
ResourceTypesHandler returns a route handler function for getting all defined ResourceType.
func SchemaByIdHandler ¶
func SchemaByIdHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
SchemaByIdHandler returns a route handler function get Schema by its id.
func SchemasHandler ¶
func SchemasHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
SchemasHandler returns a route handler function for getting all defined Schema.
func SearchHandler ¶
func SearchHandler(svc service.Query, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
SearchHandler returns a route handler function for searching SCIM resources. This handler could be used in HTTP GET and HTTP POST scenarios, as defined in the SCIM specification.
func ServiceProviderConfigHandler ¶
func ServiceProviderConfigHandler(config *spec.ServiceProviderConfig) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)
ServiceProviderConfigHandler returns a http route handler to write service provider config info.
Types ¶
This section is empty.