http

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewAPIServerHandler

func NewAPIServerHandler(
	accountLogic logic.Account,
	problemLogic logic.Problem,
	testCaseLogic logic.TestCase,
	submissionLogic logic.Submission,
	settingLogic logic.Setting,
	logicConfig configs.Logic,
	logger *zap.Logger,
	appArguments utils.Arguments,
) rpcserver.APIServer

Types

type SPAHandler

type SPAHandler http.Handler

func NewSPAHandler

func NewSPAHandler() SPAHandler

type Server

type Server interface {
	Start() error
}

func NewServer

func NewServer(
	apiServerHandler rpcserver.APIServer,
	middlewareList []pjrpc.Middleware,
	httpMiddlewareList []func(http.Handler) http.Handler,
	spaHandler SPAHandler,
	logger *zap.Logger,
	httpConfig configs.HTTP,
	appArguments utils.Arguments,
) Server

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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