route

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ExploreOrganizations

func ExploreOrganizations(c *context.Context)

func ExploreRepos

func ExploreRepos(c *context.Context)

func ExploreUsers

func ExploreUsers(c *context.Context)

func GlobalInit

func GlobalInit(customConf string) error

GlobalInit is for global configuration reload-able.

func Home

func Home(c *context.Context)

func Install

func Install(c *context.Context)

func InstallInit

func InstallInit(c *context.Context)

func InstallPost

func InstallPost(c *context.Context, f form.Install)

func NotFound

func NotFound(c *macaron.Context, l i18n.Locale)

func RenderUserSearch

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

Types

type UserSearchOptions

type UserSearchOptions struct {
	Type     db.UserType
	Counter  func(ctx gocontext.Context) int64
	Ranger   func(ctx gocontext.Context, page, pageSize int) ([]*db.User, error)
	PageSize int
	OrderBy  string
	TplName  string
}

Directories

Path Synopsis
api
v1

Jump to

Keyboard shortcuts

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