-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Now server does not store rates for equivalent currencies on bulk s…
…ymbols requests. fix #1
- Loading branch information
1 parent
d96aa3b
commit 3454cd5
Showing
11 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package customerror | ||
|
||
// BadRequestError represents bad RatesRequest error | ||
type BadRequestError struct { | ||
message string | ||
} | ||
|
||
// Error returns error message | ||
func (m *BadRequestError) Error() string { | ||
return m.message | ||
} | ||
|
||
// NewBadRequestError error constructor | ||
func NewBadRequestError(message string) *BadRequestError { | ||
return &BadRequestError{ | ||
message: message, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package customerror | ||
|
||
// DatabaseError represents database error | ||
type DatabaseError struct { | ||
message string | ||
} | ||
|
||
// Error returns error message | ||
func (m *DatabaseError) Error() string { | ||
return m.message | ||
} | ||
|
||
// NewDatabaseError error constructor | ||
func NewDatabaseError(message string) *DatabaseError { | ||
return &DatabaseError{ | ||
message: message, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package customerror | ||
|
||
// NotFoundError is rates not found error | ||
type NotFoundError struct { | ||
message string | ||
} | ||
|
||
// Error returns error message | ||
func (m *NotFoundError) Error() string { | ||
return m.message | ||
} | ||
|
||
// NewNotFoundError error constructor | ||
func NewNotFoundError(message string) *NotFoundError { | ||
return &NotFoundError{ | ||
message: message, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package util | ||
|
||
// All project constants | ||
const ( | ||
DateFormatEu string = "2006-01-02" | ||
DateFormatRu = "02-01-2006" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters