auth

package
v0.0.0-...-b51db10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoutes

func ApplyRoutes(r *gin.RouterGroup)

ApplyRoutes adds auth to gin engine

Types

type Follow

type Follow = models.Follow

Follow model alias

type FollowedTopic

type FollowedTopic = models.FollowedTopic

FollowedTopic alias

type JSON

type JSON = common.JSON

JSON type alias

type Post

type Post = models.Post

Post model alias

type Topic

type Topic = models.Topic

Topic model alias

type UpdateRequestBody

type UpdateRequestBody struct {
	Username string `json:"username" binding:"required"`
}

UpdateRequestBody is the request definiton used for the updateUser controller

type User

type User = models.User

User model alias

type UserAction

type UserAction struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

UserAction is a struct which is used in multiple controllers

Jump to

Keyboard shortcuts

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