Documentation
¶
Overview ¶
Package routes defines the routes for the echo server.
Package routes defines the routes for the echo server.
Package routes defines the routes for the echo server.
Package routes defines the routes for the echo server.
Package routes defines the routes for the echo server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRoutes ¶ added in v0.0.4
func LoadRoutes(r *RouteService) error
LoadRoutes loads the routes for the echo server
Types ¶
type RouteService ¶ added in v0.0.4
type RouteService struct {
// contains filtered or unexported fields
}
RouteService is a struct that holds the echo instance, the echo group, the service, the database pool, and the redis client
func NewRouteService ¶ added in v0.0.4
func NewRouteService(e *echo.Echo, service models.Querier, pool *pgxpool.Pool, rdb *redis.Client) *RouteService
NewRouteService creates a new RoutesService
func (*RouteService) AdminRoleRoutes ¶ added in v0.0.6
func (r *RouteService) AdminRoleRoutes()
func (*RouteService) AuthnRoutes ¶ added in v0.0.4
func (r *RouteService) AuthnRoutes()
AuthnRoutes defines the routes for the authentication endpoints
func (*RouteService) HealthCheckRoutes ¶ added in v0.0.4
func (r *RouteService) HealthCheckRoutes()
HealthCheckRoutes Adds health check endpoint to determine if the service is up (useful for load balancers or k8s)
func (*RouteService) MeRoutes ¶ added in v0.0.4
func (r *RouteService) MeRoutes()
MeRoutes defines the routes for the me endpoints
func (*RouteService) UserRoutes ¶ added in v0.0.4
func (r *RouteService) UserRoutes()
UserRoutes defines the routes for the user endpoints