routes

package
v0.0.0-...-98da87f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin interface {
	Mount() *http.ServeMux
	GetBasePath() string
}

Admin is the admin interface.

type AuthHandler

type AuthHandler interface {
	GetLogin(c *gin.Context)
	PostLogin(c *gin.Context)
	GetLogout(c *gin.Context)
}

AuthHandler is the handler interface.

type Config

type Config struct {
	CacheTimeout time.Duration
}

Config is the database configuration struct.

func NewConfig

func NewConfig() *Config

NewConfig returns the configuration object.

type ListHandler

type ListHandler interface {
	GetList(c *gin.Context)
}

ListHandler is the handler interface.

type PostHandler

type PostHandler interface {
	Post(c *gin.Context)
}

PostHandler is the handler interface.

type Router

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

Router is the router.

func NewRouter

func NewRouter(
	admin Admin,
	auth AuthHandler,
	tariffs ListHandler,
	tags ListHandler,
	reviews ListHandler,
	collections ListHandler,
	images ListHandler,
	calendar ListHandler,
	book PostHandler,
) *Router

NewRouter returns a new router object.

func (*Router) BindRoutes

func (r *Router) BindRoutes(e *gin.Engine)

BindRoutes binds the routes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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