Documentation
¶
Index ¶
- Constants
- Variables
- func DecomposeDpkgDebInfo(parsed map[string]string) (name, summary, description, section, version, homepage string)
- func EscapeQuotes(input string) (output string)
- func MakeLongDescriptionParagraphs(input string) (output string)
- func MakePackageFields(parsed map[string]string, order []string) (output string)
- func ParseDpkgDebInfoOutput(output string) (parsed map[string]string, lines []string, order []string)
- type CFeature
- func (f *CFeature) Build(_ feature.Buildable) (err error)
- func (f *CFeature) FindPage(r *http.Request, tag language.Tag, url string) (p feature.Page)
- func (f *CFeature) FindRedirection(path string) (p feature.Page)
- func (f *CFeature) FindTranslationUrls(url string) (pages map[language.Tag]string)
- func (f *CFeature) FindTranslations(path string) (found []feature.Page)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) LookupPrefixed(path string) (pages []feature.Page)
- func (f *CFeature) Make() Feature
- func (f *CFeature) MountPath(mount, path string) MakeFeature
- func (f *CFeature) ServePath(path string, _ feature.System, w http.ResponseWriter, r *http.Request) (err error)
- func (f *CFeature) SetCacheControl(values string) MakeFeature
- func (f *CFeature) Setup(enjin feature.Internals)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) Use(s feature.System) feature.MiddlewareFn
- func (f *CFeature) UserActions() (actions feature.Actions)
- type Feature
- type MakeFeature
Constants ¶
View Source
const ( Tag feature.Tag = "local-deb-info" Bucket string = "local-deb-info" )
Variables ¶
View Source
var ( RxDpkgDebInfoLine = regexp.MustCompile(`^\s*([-_a-zA-Z0-9]+?):\s*(.+?)\s*$`) RxDpkgDebInfoDesc = regexp.MustCompile(`(?ms)^\s*Description:\s*(.+?)$(.+?)\z`) )
View Source
var (
DefaultCacheControl = "max-age=604800, must-revalidate"
)
Functions ¶
func DecomposeDpkgDebInfo ¶
func EscapeQuotes ¶
func MakePackageFields ¶
Types ¶
type CFeature ¶
type CFeature struct { feature.CFeature uses_actions.CUsesActions // contains filtered or unexported fields }
func (*CFeature) FindTranslationUrls ¶
func (*CFeature) FindTranslations ¶
func (*CFeature) LookupPrefixed ¶
func (*CFeature) MountPath ¶
func (f *CFeature) MountPath(mount, path string) MakeFeature
func (*CFeature) SetCacheControl ¶
func (f *CFeature) SetCacheControl(values string) MakeFeature
func (*CFeature) UserActions ¶
type Feature ¶
type Feature interface { feature.Feature feature.PageProvider feature.UseMiddleware feature.UserActionsProvider }
type MakeFeature ¶
type MakeFeature interface { MountPath(mount, path string) MakeFeature SetCacheControl(values string) MakeFeature Make() Feature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.