routers

package
v0.9.97 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: MIT Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	HOME                  base.TplName = "home"
	EXPLORE_REPOS         base.TplName = "explore/repos"
	EXPLORE_USERS         base.TplName = "explore/users"
	EXPLORE_ORGANIZATIONS base.TplName = "explore/organizations"
)
View Source
const (
	INSTALL base.TplName = "install"
)

Variables

This section is empty.

Functions

func ExploreOrganizations

func ExploreOrganizations(ctx *context.Context)

func ExploreRepos

func ExploreRepos(ctx *context.Context)

func ExploreUsers

func ExploreUsers(ctx *context.Context)

func GlobalInit

func GlobalInit()

GlobalInit is for global configuration reload-able.

func Home

func Home(ctx *context.Context)

func Install

func Install(ctx *context.Context)

func InstallInit

func InstallInit(ctx *context.Context)

func InstallPost

func InstallPost(ctx *context.Context, form auth.InstallForm)

func NewServices

func NewServices()

func NotFound

func NotFound(ctx *context.Context)

func RenderRepoSearch

func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions)

func RenderUserSearch

func RenderUserSearch(ctx *context.Context, opts *UserSearchOptions)

Types

type RepoSearchOptions

type RepoSearchOptions struct {
	Counter  func(bool) int64
	Ranger   func(int, int) ([]*models.Repository, error)
	Private  bool
	PageSize int
	OrderBy  string
	TplName  base.TplName
}

type UserSearchOptions

type UserSearchOptions struct {
	Type     models.UserType
	Counter  func() int64
	Ranger   func(int, int) ([]*models.User, error)
	PageSize int
	OrderBy  string
	TplName  base.TplName
}

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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