controller

package
v0.0.0-...-7c9e097 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthRedisClient *redis.Client

AuthRedisClient is redis client storing invalid auth information

View Source
var DomainNameRedisClient *redis.Client

DomainNameRedisClient is redis client storing used domain name

View Source
var MysqlEngine *xorm.Engine

MysqlEngine is mysql engine

Functions

func CreateProjectHandler

func CreateProjectHandler(w http.ResponseWriter, r *http.Request) error

CreateProjectHandler create project TODO: Check if the same name exists

func ListProjectsHandler

func ListProjectsHandler(w http.ResponseWriter, r *http.Request) error

ListProjectsHandler list projects

Types

type ListProjectsResponse

type ListProjectsResponse struct {
	Name string `json:"name"`
}

ListProjectsResponse is response for list projects

type ProjectController

type ProjectController struct {
	projectModel.Project
	userModel.User
	Name        string `json:"name"`
	Description string `json:"description"`
	Path        string `json:"path"`
	GitPath     string `json:"git_path"`
	IsClone     bool   `json:"isClone"`
}

ProjectController is controller for user

Jump to

Keyboard shortcuts

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