Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
Validate *validator.Validate
}
func NewController ¶
func NewController(validate *validator.Validate) *Controller
func (*Controller) AddBinary ¶
func (ctr *Controller) AddBinary(c echo.Context) error
AddBinary godoc @ID add-binary @Accept json @Produce json @Param AddBinaryRequest body model.AddBinaryRequest true "Add Binary" @Success 200 {object} model.SuccessResult @Failure 400 {object} model.BadRequestResult @Router /add_binary [post]
func (*Controller) ContainsDuplicate ¶
func (ctr *Controller) ContainsDuplicate(c echo.Context) error
ContainsDuplicate godoc @ID contains-duplicate @Accept json @Produce json @Param ContainsDuplicateRequest body model.ContainsDuplicateRequest true "Contains Duplicate" @Success 200 {object} model.SuccessResult @Failure 400 {object} model.BadRequestResult @Router /contains_duplicate [post]
func (*Controller) IsPalindrome ¶
func (ctr *Controller) IsPalindrome(c echo.Context) error
IsPalindrome godoc @ID is-palindrome @Accept json @Produce json @Param IsPalindromeRequest body model.IsPalindromeRequest true "Is Palindrome" @Success 200 {object} model.SuccessResult @Failure 400 {object} model.BadRequestResult @Router /is_palindrome [post]
func (*Controller) IsPowerOfTwo ¶
func (ctr *Controller) IsPowerOfTwo(c echo.Context) error
IsPowerOfTwo godoc @ID is-power-of-two @Accept json @Produce json @Param IsPowerOfTwoRequest body model.IsPowerOfTwoRequest true "Is Power of Two" @Success 200 {object} model.SuccessResult @Failure 400 {object} model.BadRequestResult @Router /is_power_of_two [post]
func (*Controller) RomanToInt ¶
func (ctr *Controller) RomanToInt(c echo.Context) error
RomanToInt godoc @ID roman-to-int @Accept json @Produce json @Param RomanToIntRequest body model.RomanToIntRequest true "Roman to Int" @Success 200 {object} model.SuccessResult @Failure 400 {object} model.BadRequestResult @Router /roman_to_int [post]