pages

package
v0.0.0-...-b8854ba Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: AGPL-3.0 Imports: 18 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 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.

Types

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 PrivacyInfo

type PrivacyInfo struct {
	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
	Watchers      string
	Language      []string
	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 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
}

Jump to

Keyboard shortcuts

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