server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ServerRestHandler

type ServerRestHandler interface {
	GetServerInfo(w http.ResponseWriter, r *http.Request)
	HandleServerAction(w http.ResponseWriter, r *http.Request)
}

type ServerRestHandlerImpl

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

func NewServerRestHandlerImpl

func NewServerRestHandlerImpl(logger *zap.SugaredLogger,
	serverService server.ServerService,
	userService user.UserService,
	enforcer casbin.Enforcer,
	validator *validator.Validate,
) *ServerRestHandlerImpl

func (ServerRestHandlerImpl) GetServerInfo

func (impl ServerRestHandlerImpl) GetServerInfo(w http.ResponseWriter, r *http.Request)

func (ServerRestHandlerImpl) HandleServerAction

func (impl ServerRestHandlerImpl) HandleServerAction(w http.ResponseWriter, r *http.Request)

type ServerRouter

type ServerRouter interface {
	Init(configRouter *mux.Router)
}

type ServerRouterImpl

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

func NewServerRouterImpl

func NewServerRouterImpl(serverRestHandler ServerRestHandler) *ServerRouterImpl

func (ServerRouterImpl) Init

func (impl ServerRouterImpl) Init(configRouter *mux.Router)

Jump to

Keyboard shortcuts

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