Documentation ¶
Index ¶
- func CleanUpMockDatabase(db *database.Database, collName string)
- func ErrorHandler() gin.HandlerFunc
- func GenerateID() int
- func Graceful(server *http.Server, timeout time.Duration)
- func NewServiceError(message string, code int, data *interface{}) error
- func SetUpMockDatabase(t *testing.T) *database.Database
- type ServiceError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpMockDatabase ¶
func ErrorHandler ¶
func ErrorHandler() gin.HandlerFunc
func GenerateID ¶
func GenerateID() int
func NewServiceError ¶
Types ¶
type ServiceError ¶
func (*ServiceError) Error ¶
func (e *ServiceError) Error() string
func (*ServiceError) GetCode ¶
func (e *ServiceError) GetCode() int
Click to show internal directories.
Click to hide internal directories.