config

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Rules          []RuleConfig `json:"rules"`
	Address        string       `json:"address"`
	AvailableRules []string
	Log            struct {
		Level string `json:"level"`
	} `json:"log"`
}

func Init

func Init() *Config

type GitConfig

type GitConfig struct {
	Upstream     string `json:"upstream"`
	Path         string `json:"path"`
	Depth        int    `json:"depth"`
	SingleBranch bool   `json:"single-branch"`
	Branch       string `json:"branch"`
}

type RuleConfig

type RuleConfig struct {
	Name   string    `json:"name"`
	Type   string    `json:"type"`
	Update bool      `json:"update"`
	Git    GitConfig `json:"git"`
	Path   string    `json:"path"`
}

Jump to

Keyboard shortcuts

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