controller

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachTagsRequest

type AttachTagsRequest struct {
	Id   int    `json:"id" binding:"required"`
	Name string `json:"name" binding:"required"`
}

type CreateTagRequest

type CreateTagRequest struct {
	Name string `json:"name" binding:"required"`
}

type DeveloperController added in v0.5.0

type DeveloperController struct {
	// contains filtered or unexported fields
}

func NewDeveloperController added in v0.5.0

func NewDeveloperController(dr *model.DeveloperRepo) *DeveloperController

func (*DeveloperController) Get added in v0.5.0

func (dc *DeveloperController) Get(c *gin.Context)

func (*DeveloperController) GetTrendingDevelopers added in v0.5.0

func (dc *DeveloperController) GetTrendingDevelopers(c *gin.Context)

type LoginRequest

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

type RepositoryController

type RepositoryController struct {
	// contains filtered or unexported fields
}

func NewRepositoryController

func NewRepositoryController(grr *model.GhRepositoryRepo) *RepositoryController

func (*RepositoryController) Get

func (rc *RepositoryController) Get(c *gin.Context)

func (*RepositoryController) GetTrendingRepositories

func (rc *RepositoryController) GetTrendingRepositories(c *gin.Context)

func (*RepositoryController) List

func (rc *RepositoryController) List(c *gin.Context)

func (*RepositoryController) SaveTags

func (rc *RepositoryController) SaveTags(c *gin.Context)

type SearchController

type SearchController struct {
	// contains filtered or unexported fields
}

func NewSearchController

func NewSearchController() *SearchController

func (*SearchController) Search

func (search *SearchController) Search(c *gin.Context)

type SecurityController

type SecurityController struct {
	// contains filtered or unexported fields
}

func NewSecurityController

func NewSecurityController(ur *model.UserRepo) *SecurityController

func (*SecurityController) Login

func (sc *SecurityController) Login(c *gin.Context)

type StatsController

type StatsController struct {
	// contains filtered or unexported fields
}

func NewStatsController

func NewStatsController(sr *model.StatsRepo) *StatsController

func (*StatsController) GetTrendingTopicsStats

func (sc *StatsController) GetTrendingTopicsStats(c *gin.Context)

type TagController

type TagController struct {
	// contains filtered or unexported fields
}

func NewTagController

func NewTagController(tr *model.TagRepo) *TagController

func (*TagController) List

func (tc *TagController) List(c *gin.Context)

func (*TagController) Save

func (tc *TagController) Save(c *gin.Context)

Jump to

Keyboard shortcuts

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