controller

package
v0.0.0-...-74fb32c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL