Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccessToken added in v0.5.8

func CreateAccessToken(ctx *middleware.Context, form CreateAccessTokenForm)

POST /users/:username/tokens

func CreateRepoHook added in v0.5.8

func CreateRepoHook(ctx *middleware.Context, form CreateRepoHookForm)

POST /repos/:username/:reponame/hooks https://developer.github.com/v3/repos/hooks/#create-a-hook

func EditRepoHook added in v0.5.8

func EditRepoHook(ctx *middleware.Context, form EditRepoHookForm)

PATCH /repos/:username/:reponame/hooks/:id https://developer.github.com/v3/repos/hooks/#edit-a-hook

func GetRepoRawFile added in v0.5.8

func GetRepoRawFile(ctx *middleware.Context)

func GetUserInfo added in v0.5.8

func GetUserInfo(ctx *middleware.Context)

GET /users/:username

func ListAccessTokens added in v0.5.8

func ListAccessTokens(ctx *middleware.Context)

GET /users/:username/tokens

func ListMyRepos added in v0.5.8

func ListMyRepos(ctx *middleware.Context)

GET /user/repos https://developer.github.com/v3/repos/#list-your-repositories

func ListRepoHooks added in v0.5.8

func ListRepoHooks(ctx *middleware.Context)

GET /repos/:username/:reponame/hooks https://developer.github.com/v3/repos/hooks/#list-hooks

func Markdown

func Markdown(ctx *middleware.Context, form apiv1.MarkdownForm)

Render an arbitrary Markdown document.

func MarkdownRaw added in v0.4.0

func MarkdownRaw(ctx *middleware.Context)

Render a Markdown document in raw mode.

func Migrate added in v0.5.0

func Migrate(ctx *middleware.Context, form auth.MigrateRepoForm)

func SearchRepos added in v0.5.0

func SearchRepos(ctx *middleware.Context)

func SearchUsers added in v0.5.0

func SearchUsers(ctx *middleware.Context)

Types

type CreateAccessTokenForm added in v0.5.8

type CreateAccessTokenForm struct {
	Name string `json:"name" binding:"Required"`
}

type CreateRepoHookForm added in v0.5.8

type CreateRepoHookForm struct {
	Type   string            `json:"type" binding:"Required"`
	Config map[string]string `json:"config" binding:"Required"`
	Active bool              `json:"active"`
}

type EditRepoHookForm added in v0.5.8

type EditRepoHookForm struct {
	Config map[string]string `json:"config"`
	Active *bool             `json:"active"`
}

Jump to

Keyboard shortcuts

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