convert

package
v0.0.0-...-9799186 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PackageIndexCommit = Option("PackageIndexCommit")

Functions

func ToCommit

func ToCommit(ctx *Context, m *models.Commit) (r *structs.Commit, err error)

func ToPackageIndex

func ToPackageIndex(ctx *Context, m *models.PackageIndex) (r *structs.PackageIndex, err error)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func (*Context) Has

func (c *Context) Has(o Option) bool

func (*Context) With

func (c *Context) With(o Option) *Context

type Option

type Option string

Jump to

Keyboard shortcuts

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