Documentation ¶
Index ¶
- func LogServerMiddleware(logger *zap.Logger) middleware
- func MetricsServerMiddleware(next http.Handler) http.Handler
- func NewErrStatus(code int, msg string) error
- func ReturnFailureResponse(w http.ResponseWriter, err error)
- func ReturnSuccessResponse(w http.ResponseWriter, resp interface{})
- type Option
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogServerMiddleware ¶
func NewErrStatus ¶
func ReturnFailureResponse ¶
func ReturnFailureResponse(w http.ResponseWriter, err error)
func ReturnSuccessResponse ¶
func ReturnSuccessResponse(w http.ResponseWriter, resp interface{})
Types ¶
type Option ¶
type Option func(*Server)
func WithLogger ¶
func WithMetrics ¶
func WithMetrics(registerer metrics.Registerer) Option
func WithService ¶
Click to show internal directories.
Click to hide internal directories.