server

package
v0.0.0-...-057e48f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupRouter

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

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

NewServer is a function used to initialize a new Server struct

func (*Server) Start

func (s *Server) Start()

Start starts the initialized Server

Jump to

Keyboard shortcuts

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