endpoints

package
v0.0.0-...-9da7005 Latest Latest
Warning

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

Go to latest
Published: May 3, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGetEndpoint

func MakeGetEndpoint(s service.AppService) gin.HandlerFunc

Types

type AppEndpoint

type AppEndpoint struct {
	GetEndpoint gin.HandlerFunc
}

func New

type AuthEndpoint

type AuthEndpoint struct {
}

func (*AuthEndpoint) GetCurrentUser

func (a *AuthEndpoint) GetCurrentUser(c *gin.Context)

func (*AuthEndpoint) Logout

func (a *AuthEndpoint) Logout(c *gin.Context)

type GetRequest

type GetRequest struct {
	Id string `form:"id" json:"id" binding:"required"`
}

type GetResponse

type GetResponse struct {
	Data models.App `json:"data"`
	Err  error      `json:"err"`
}

type HealthEndpoint

type HealthEndpoint struct{}

func (*HealthEndpoint) Status

func (h *HealthEndpoint) Status(c *gin.Context)

Jump to

Keyboard shortcuts

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