config

package
v0.0.0-...-acc4708 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	// Bind address+port
	Addr string
	Port uint
	// Server configuration
	Title        string
	Description  string
	PathPrefix   string
	StaticPrefix string
	StaticDir    string
	TemplateDir  string
}

func (*Global) BindInfo

func (g *Global) BindInfo() string

Return address and port as an ADDR:PORT pair

type Parser

type Parser interface {
	Global() *Global
	Repos() []models.Repo
}

func NewBogusParser

func NewBogusParser(data []byte) (Parser, error)

Parse config from a byte slice, without attempting to open repositories paths. Used in unit tests.

func NewParser

func NewParser(path string) (Parser, error)

Jump to

Keyboard shortcuts

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