server

package
v0.0.0-...-6375eca Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProviders

func RegisterProviders(container *dig.Container) error

Types

type Config

type Config struct {
	Mode    string `mapstructure:"mode"`
	Port    string `mapstructure:"port"`
	UseCORS bool   `mapstructure:"useCORS"`
}

type Server

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

func NewServer

func NewServer(options ServerParams) *Server

func (*Server) Start

func (s *Server) Start() error

type ServerParams

type ServerParams struct {
	dig.In
	Config                *Config
	AuthController        *controllers.AuthController
	UserController        *controllers.UserController
	JWTAuthMiddleware     middleware.JWTAuthMiddleware
	OperationController   *controllers.OperationController
	CalculationController *controllers.CalculationController
	RecordController      *controllers.RecordController
}

Jump to

Keyboard shortcuts

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