v1

package
v0.0.0-...-1ae3dfb Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthLogin

func AuthLogin(w http.ResponseWriter, r *http.Request)

AuthLogin login by oauth to Arcserve domain

[:]/auth/login

func AuthLogout

func AuthLogout(w http.ResponseWriter, r *http.Request)

AuthLogout user logout

[:]/auth/logout

func Authorize

func Authorize(w http.ResponseWriter, r *http.Request)

Authorize handle response from the microsoft online authorize

[:]/auth/authorize

func CreateBranch

func CreateBranch(w http.ResponseWriter, r *http.Request)

CreateBranch response to create branch api

 [:]/api/branhes/create [POST]

 @:BODY		{branch infomation}

	@ return {
		RestResponse
	}

func DeleteBranch

func DeleteBranch(w http.ResponseWriter, r *http.Request)

DeleteBranch response to modify branch api

[:]/api/branches/{name} [DELETE]

@:name		{branch name}

@ return {
	RestResponse
}

func DownloadSymbol

func DownloadSymbol(w http.ResponseWriter, r *http.Request)

DownloadSymbol response download symbol file api

[:]/api/symbol/{branch}/{hash}/{name} [GET]

@:branch	{branch name}
@:hash		{file hash}
@:name		{file name}

@ return file

func FetchTodayMsg

func FetchTodayMsg(w http.ResponseWriter, r *http.Request)

FetchTodayMsg get today symbols update information

[:]/api/messages [GET]

@ return {
	RestResponse
}

func GetUserPhoto

func GetUserPhoto(w http.ResponseWriter, r *http.Request)

GetUserPhoto get user profile photo

[:]/user/photo

func GetUserProfile

func GetUserProfile(w http.ResponseWriter, r *http.Request)

GetUserProfile get user information

[:]/user/profile

func ModifyBranch

func ModifyBranch(w http.ResponseWriter, r *http.Request)

ModifyBranch response to modify branch api

	[:]/api/branches/modify [POST]

 @:BODY		{branch infomation}

	@ return {
		RestResponse
	}

func RestBranchList

func RestBranchList(w http.ResponseWriter, r *http.Request)

RestBranchList response to restful API

[:]/api/branches  [GET]

@ return {
	Total: 		int
	Branchs: 	[]*symbol.Branch
}

func RestBuildList

func RestBuildList(w http.ResponseWriter, r *http.Request)

RestBuildList response to restful API

[:]/api/branches/{name}  [GET]

@:name {branch name}

@return {
	Total: 		int
	Builds: 	[]*symbol.Build
}

func RestSymbolList

func RestSymbolList(w http.ResponseWriter, r *http.Request)

RestSymbolList response to restful API

[:]/api/branches/:name/:bid  [GET]

@:name {branch name}
@:bid  {build id}

@ return {
	Total: 		int
	Builds: 	[]*symbol.Build
}

func ValidateBranch

func ValidateBranch(w http.ResponseWriter, r *http.Request)

ValidateBranch response to check branch api

	[:]/api/branch/check [POST]

 @:BODY	{branch infomation}

	@ return {
		RestResponse
	}

Types

This section is empty.

Jump to

Keyboard shortcuts

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