Documentation
¶
Index ¶
- func FriendlyTimestamp() string
- type BunGroupFunc
- type Group
- func (g *Group) Append(handlerType string, path string, handlerFunction bunrouter.HandlerFunc)
- func (g *Group) DELETE(path string, handlerFunction bunrouter.HandlerFunc)
- func (g *Group) GET(path string, handlerFunction bunrouter.HandlerFunc)
- func (g *Group) POST(path string, handlerFunction bunrouter.HandlerFunc)
- type GroupType
- type HATEOAS
- type PathSet
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FriendlyTimestamp ¶
func FriendlyTimestamp() string
Types ¶
type BunGroupFunc ¶
type BunGroupFunc func(group *Group)
type Group ¶
func (*Group) Append ¶
func (g *Group) Append(handlerType string, path string, handlerFunction bunrouter.HandlerFunc)
Append adds a new route to the group. Handler is usually GET or POST.
func (*Group) DELETE ¶
func (g *Group) DELETE(path string, handlerFunction bunrouter.HandlerFunc)
DELETE adds a new DELETE route to the group
type HATEOAS ¶
type HATEOAS struct {
Groups []*Group
}
func NewHATEOAS ¶
func NewHATEOAS() *HATEOAS
func (*HATEOAS) Handler ¶
func (h *HATEOAS) Handler() bunrouter.HandlerFunc
Click to show internal directories.
Click to hide internal directories.