disk

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(rootDomain string, updater domainsUpdater, interval time.Duration)

Watch polls the filesystem and kicks off a new domain directory scan when needed.

Types

type Group

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

Group represents a GitLab group with project configs and subgroups

func (*Group) Resolve

func (g *Group) Resolve(r *http.Request) (*serving.LookupPath, string, error)

Resolve tries to find project and its config recursively for a given request to a group domain

type Map

type Map map[string]*domain.Domain

Map maps domain names to Domain instances.

func (Map) ReadGroups

func (dm Map) ReadGroups(rootDomain string, fis godirwalk.Dirents)

ReadGroups walks the pages directory and populates dm with all the domains it finds.

Jump to

Keyboard shortcuts

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