Documentation ¶
Index ¶
- func MyCustomLogger() gin.HandlerFunc
- func RunAPI(address string) error
- func RunAPIWithHandler(address string, h HandlerInterface) error
- func RunMockAPI(address string) error
- type Handler
- func (h *Handler) AddUser(c *gin.Context)
- func (h *Handler) Charge(c *gin.Context)
- func (h *Handler) GetMainPage(c *gin.Context)
- func (h *Handler) GetOrders(c *gin.Context)
- func (h *Handler) GetProducts(c *gin.Context)
- func (h *Handler) GetPromos(c *gin.Context)
- func (h *Handler) SignIn(c *gin.Context)
- func (h *Handler) SignOut(c *gin.Context)
- type HandlerInterface
- type MockHandler
- func (mh *MockHandler) AddUser(c *gin.Context)
- func (mh *MockHandler) Charge(c *gin.Context)
- func (mh *MockHandler) GetMainPage(c *gin.Context)
- func (mh *MockHandler) GetOrders(c *gin.Context)
- func (mh *MockHandler) GetProducts(c *gin.Context)
- func (mh *MockHandler) GetPromos(c *gin.Context)
- func (mh *MockHandler) SignIn(c *gin.Context)
- func (mh *MockHandler) SignOut(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MyCustomLogger ¶
func MyCustomLogger() gin.HandlerFunc
func RunAPIWithHandler ¶
func RunAPIWithHandler(address string, h HandlerInterface) error
func RunMockAPI ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetMainPage ¶
func (*Handler) GetProducts ¶
type HandlerInterface ¶
type HandlerInterface interface { GetProducts(c *gin.Context) GetPromos(c *gin.Context) AddUser(c *gin.Context) SignIn(c *gin.Context) SignOut(c *gin.Context) GetOrders(c *gin.Context) Charge(c *gin.Context) }
func NewHandler ¶
func NewHandler() (HandlerInterface, error)
type MockHandler ¶
type MockHandler struct { }
func NewMockHandler ¶
func NewMockHandler() *MockHandler
func (*MockHandler) AddUser ¶
func (mh *MockHandler) AddUser(c *gin.Context)
func (*MockHandler) Charge ¶
func (mh *MockHandler) Charge(c *gin.Context)
func (*MockHandler) GetMainPage ¶
func (mh *MockHandler) GetMainPage(c *gin.Context)
func (*MockHandler) GetOrders ¶
func (mh *MockHandler) GetOrders(c *gin.Context)
func (*MockHandler) GetProducts ¶
func (mh *MockHandler) GetProducts(c *gin.Context)
func (*MockHandler) GetPromos ¶
func (mh *MockHandler) GetPromos(c *gin.Context)
func (*MockHandler) SignIn ¶
func (mh *MockHandler) SignIn(c *gin.Context)
func (*MockHandler) SignOut ¶
func (mh *MockHandler) SignOut(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.