Documentation ¶
Index ¶
- func NewGroupRouter(router *mux.Router, a *services.TokenService, g services.GroupService, ...) *mux.Router
- func NewTaskRouter(router *mux.Router, a *services.TokenService, t services.TaskService) *mux.Router
- func NewUserRouter(router *mux.Router, a *services.TokenService, u services.UserService, ...) *mux.Router
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGroupRouter ¶
func NewGroupRouter(router *mux.Router, a *services.TokenService, g services.GroupService, u services.UserService, t services.TaskService, f services.FileService) *mux.Router
NewGroupRouter is a function that initializes a new groupRouter struct
func NewTaskRouter ¶
func NewTaskRouter(router *mux.Router, a *services.TokenService, t services.TaskService) *mux.Router
NewTaskRouter is a function that initializes a new groupRouter struct
func NewUserRouter ¶
func NewUserRouter(router *mux.Router, a *services.TokenService, u services.UserService, g services.GroupService, t services.TaskService, f services.FileService) *mux.Router
NewUserRouter is a function that initializes a new userRouter struct
Types ¶
type Server ¶
type Server struct { Router *mux.Router TokenService *services.TokenService UserService services.UserService GroupService services.GroupService TaskService services.TaskService FileService services.FileService }
Server is a struct that stores the API Apps high level attributes such as the router, config, and services
func NewServer ¶
func NewServer(u services.UserService, g services.GroupService, tt services.TaskService, f services.FileService, t *services.TokenService) *Server
NewServer is a function used to initialize a new Server struct
Click to show internal directories.
Click to hide internal directories.