Documentation ¶
Index ¶
- Constants
- func CreateBundle(c *gin.Context)
- func CreateUser(c *gin.Context)
- func CreateUsersWithListInput(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func GetBundleStatus(c *gin.Context)
- func GetUserByName(c *gin.Context)
- func Index(c *gin.Context)
- func LoginUser(c *gin.Context)
- func LogoutUser(c *gin.Context)
- func NewRouter(middleware ...gin.HandlerFunc) *gin.Engine
- func UpdateUser(c *gin.Context)
- type ApiResponse
- type Bundle
- type Route
- type Routes
- type Tag
- type User
Constants ¶
View Source
const ( UUID = "uuid" BUNDLEPARAM = "bundleId" )
View Source
const ( INDEXCONTENT = `` /* 750-byte string literal not displayed */ NOTFOUND = `` /* 502-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func CreateUsersWithListInput ¶
CreateUsersWithListInput - Creates list of users with given input array
func LogoutUser ¶
LogoutUser - Logs out current logged in user session
Types ¶
type ApiResponse ¶
type Route ¶
type Route struct { // Name is the name of this Route. Name string // Method is the string for the HTTP method. ex) GET, POST etc.. Method string // Pattern is the pattern of the URI. Pattern string // HandlerFunc is the handler function of this route. HandlerFunc gin.HandlerFunc }
Route is the information for every URI.
type User ¶
type User struct { Id int64 `json:"id,omitempty"` Username string `json:"username,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` // User Status UserStatus int32 `json:"userStatus,omitempty"` }
Click to show internal directories.
Click to hide internal directories.