Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(console consoles.Console, storage storages.Storage, opts *Options) error

Types

type CommitPatchParams

type CommitPatchParams struct {
	RepoID   model.UUID `uri:"repoID"`
	CommitID model.UUID `uri:"commitID"`
	Ignore   *bool      `json:"ignore"`
}

type Filters

type Filters struct {
	FilterFile     string `form:"file"`
	FilterProject  string `form:"proj"`
	FilterRepo     string `form:"repo"`
	FilterPerson   string `form:"person"`
	FilterPersonID string `form:"person.id"`
}

type GridParams

type GridParams struct {
	Sort   string `form:"sort"`
	Asc    *bool  `form:"asc"`
	Offset *int   `form:"offset"`
	Limit  *int   `form:"limit"`
}

type ListParams

type ListParams struct {
	GridParams
	Filters
}

type Options

type Options struct {
	Port uint
}

type RepoAndCommit

type RepoAndCommit struct {
	Repo   *model.Repository
	Commit *model.RepositoryCommit
}

type StatsParams

type StatsParams struct {
	Filters
}

Jump to

Keyboard shortcuts

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