routers

package
v0.0.0-...-c60c6d1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRequest = errors.New("bad request")
View Source
var ErrForbidden = errors.New("access forbidden")
View Source
var ErrInternalServer = errors.New("internal server error")

Functions

This section is empty.

Types

type BountyRouter

type BountyRouter struct {
	R      *echo.Echo              `inject:""`
	BC     *controllers.BountyCtrl `inject:""`
	Dev    bool                    `inject:"dev"`
	Config *config.Configuration   `inject:""`
}

func (*BountyRouter) Init

func (br *BountyRouter) Init()

type IndexRouter

type IndexRouter struct {
	R   *echo.Echo `inject:""`
	Dev bool       `inject:"dev"`
}

func (*IndexRouter) Init

func (indexRouter *IndexRouter) Init()

type RepoRouter

type RepoRouter struct {
	R      *echo.Echo              `inject:""`
	RC     *controllers.RepoCtrl   `inject:""`
	BC     *controllers.BountyCtrl `inject:""`
	Dev    bool                    `inject:"dev"`
	Config *config.Configuration   `inject:""`
}

func (*RepoRouter) Init

func (rr *RepoRouter) Init()

type Router

type Router interface {
	Init()
}

type SimpleCountMsg

type SimpleCountMsg struct {
	Count int `json:"count"`
}

type SimpleMsg

type SimpleMsg struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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