pages

package
v0.0.0-...-564d688 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirView

func DirView(c *fiber.Ctx) error

func FileView

func FileView(c *fiber.Ctx) error

FileView is the file view page

func HandleAbout

func HandleAbout(c *fiber.Ctx) error

func HandleCommit

func HandleCommit(c *fiber.Ctx) error

func HandleExplore

func HandleExplore(c *fiber.Ctx) error

func HandleGist

func HandleGist(c *fiber.Ctx) error

func HandleIndex

func HandleIndex(c *fiber.Ctx) error

func HandleRepo

func HandleRepo(c *fiber.Ctx) error

func HandleUser

func HandleUser(c *fiber.Ctx) error

HandleUser handles the user page.

func WikiView

func WikiView(c *fiber.Ctx) error

Types

type Commit

type Commit struct {
	CommitName          string
	CommitDesc          string
	CommitHashShortened string
	CommitDate          string
	Commiter            []string
	CommitToBranch      string
	PreviousCommit      string
	Additions           int64
	Deletions           int64
	ChangedFiles        int64
	FullName            string
}

type Dir

type Dir struct {
	Readme   string
	Fullname string
	DirName  string
	Branch   string
}

type DirFiles

type DirFiles struct {
	Name     string
	Path     string
	Type     string
	Branch   string
	Fullname string
	DirName  string
}

type Gist

type Gist struct {
	Fullname    string
	Refname     string
	Description string
	Revision    string
	Parent      string
	Stars       string
	Forks       string
}

type GistFiles

type GistFiles struct {
	Name string
	File template.HTML
	Css  template.CSS
}

type Items

type Items struct {
	Fullname    string
	Description string
	HtmlUrl     string
	Stars       int64
	Forks       int64
	Watchers    int64
	Language    string
	License     string
}

type Languages

type Languages struct {
	Name    string
	Percent string
	Color   string
}

type PrivacyInfo

type PrivacyInfo struct {
	ProxyEnabled  string
	IPAddr        string
	ReqURL        string
	UserAgent     string
	Diagnostics   string
	Country       string
	Provider      string
	Cloudflare    string
	PrivacyPolicy string
	Version       string
	GoVersion     string
	FiberVersion  string
}

type Repo

type Repo struct {
	Fullname      string
	Description   string
	Parent        string
	Stars         string
	Forks         string
	CommitsBehind string
	CommitsAhead  string
	Watchers      string
	Language      []Languages
	License       string
	DefaultBranch string
	Readme        string
	Link          string
	Tags          []string
	Branch        []string
}

type RepoFiles

type RepoFiles struct {
	Name          string
	Path          string
	Type          string
	Fullname      string
	DefaultBranch string
}

type RepoList

type RepoList struct {
	Name   string
	Type   string
	Link   string
	Desc   string
	Lang   string
	Stars  string
	Forks  string
	ForkOf string
}
type Sidebar struct {
	Name string
	Link string
}

type User

type User struct {
	Login         string
	Name          string
	Bio           string
	Status        string
	StatusEmoji   string
	AvatarUrl     string
	Location      string
	Email         string
	Timezone      string
	Following     string
	Followers     string
	Link          string
	Social        []string
	Organizations []string
	OrgMembers    []string
	Company       string
	Type          string
	Contributions string
	Readme        string
	ReadmeUrl     string
	MainRepos     []RepoList
	PinOrPopular  string
}

type Wiki

type Wiki struct {
	RepoUser    string
	RepoName    string
	Title       string
	LastEdit    string
	LastEditor  string
	RevisionNum string
	PageNum     string
	PageContent string
	Sidebar     []Sidebar
}

Jump to

Keyboard shortcuts

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