package
0.0.0-20210420104442-0fe9a67082aa
Repository: https://github.com/pavelmemory/faceit-users.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
InjectLogger returns a middleware function that injects a logger into request's context.
LogRequest returns a middleware function that logs each incoming request.
NewMockUserService creates a new mock instance.
NewRouter returns initialized HTTP router.
No description provided by the author
NewUsersHandler returns HTTP handler initialized with provided service abstraction.
RequestContentType returns a middleware function that verifies request has `content-type` header and its media type is equal to passed in value.
ResponseContentType returns a middleware function that sets passed in value as a `content-type` header to the HTTP response in case is not yet set.
No description provided by the author
No description provided by the author
No description provided by the author
WriteError sends an error response back to the client.
# Variables
AcceptsJSON verifies request has a 'content-type' header with 'application/json' mime type.
ProducesJSON sets response header 'content-type' to with 'application/json' mime type.
# Structs
No description provided by the author
ErrorResponse aggregates error information into the struct and know how to send it back to the client.
No description provided by the author
InfoHandler handles requests about service status.
No description provided by the author
MockUserService is a mock of UserService interface.
MockUserServiceMockRecorder is the mock recorder for MockUserService.
No description provided by the author
No description provided by the author
UserHandler handles request for the user entity(-ies).
# Interfaces
UserService provides set of operations available to operate on the user entity.