explore

package
v1.17.0-dev Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const UserSearchDefaultSortType = "alphabetically"

UserSearchDefaultSortType is the default sort type for user search

Variables

This section is empty.

Functions

func Code

func Code(ctx *context.Context)

Code render explore code page

func Organizations

func Organizations(ctx *context.Context)

Organizations render explore organizations page

func RenderRepoSearch

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

RenderRepoSearch render repositories search page

func RenderUserSearch

func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions, tplName base.TplName)

RenderUserSearch render user search page

func Repos

func Repos(ctx *context.Context)

Repos render explore repositories page

func Users

func Users(ctx *context.Context)

Users render explore users page

Types

type RepoSearchOptions

type RepoSearchOptions struct {
	OwnerID    int64
	Private    bool
	Restricted bool
	PageSize   int
	TplName    base.TplName
}

RepoSearchOptions when calling search repositories

Jump to

Keyboard shortcuts

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