pkg

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	DomainID      int64  `json:"domain_id" schema:"domain_id"`
	Path          string `json:"path" schema:"path"`
	VCS           string `json:"vcs" schema:"vcs"`
	Root          string `json:"root" schema:"root"`
	Docs          string `json:"docs" schema:"docs"`
	Private       bool   `json:"-" schema:"-"`
	PrivateSwitch string `json:"private" schema:"private"`
	Description   string `json:"description" schema:"description"`
	Homepage      string `json:"homepage" schema:"homepage"`
	License       string `json:"license" schema:"license"`
	// contains filtered or unexported fields
}

func (*Form) Create

func (f *Form) Create(ctx context.Context) (pkg *models.Package, err error)

func (*Form) PrivateValue

func (f *Form) PrivateValue() bool

func (*Form) Update

func (f *Form) Update(ctx context.Context) (err error)

func (*Form) Validate

func (f *Form) Validate() error

Validate validates package.

type Handler

type Handler struct {
	core.Handler
}

func (*Handler) Register

func (h *Handler) Register(router clevergo.Router)

type QueryParams

type QueryParams struct {
	DomainID int64  `schema:"domain_id"`
	Path     string `schema:"path"`
	VCS      string `schema:"vcs"`
}

Jump to

Keyboard shortcuts

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