herodote

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAuthentificationFailed occurs when secret is invalid
	ErrAuthentificationFailed = errors.New("invalid secret provided")
)

Functions

This section is empty.

Types

type App

type App interface {
	Handler() http.Handler
	Start()
}

App of package

func New

func New(config Config, database *sql.DB) (App, error)

New creates new App from Config

type Commit

type Commit struct {
	Hash       string `json:"hash"`
	Type       string `json:"type"`
	Component  string `json:"component"`
	Revert     bool   `json:"revert"`
	Breaking   bool   `json:"breaking"`
	Content    string `json:"content"`
	Date       uint64 `json:"date"`
	Remote     string `json:"remote"`
	Repository string `json:"repository"`
}

Commit describes a commit on a repository

func (Commit) Check

func (c Commit) Check() error

Check verifies that Commit is valid

func (Commit) Sanitize

func (c Commit) Sanitize() Commit

Sanitize cleans value of a commit

type Config

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

Config of package

func Flags

func Flags(fs *flag.FlagSet, prefix string) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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