Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerWireSet = wire.NewSet( server.NewServerActionAuditLogRepositoryImpl, wire.Bind(new(server.ServerActionAuditLogRepository), new(*server.ServerActionAuditLogRepositoryImpl)), serverEnvConfig.ParseServerEnvConfig, serverDataStore.InitServerDataStore, server.NewServerServiceImpl, wire.Bind(new(server.ServerService), new(*server.ServerServiceImpl)), server.NewServerCacheServiceImpl, wire.Bind(new(server.ServerCacheService), new(*server.ServerCacheServiceImpl)), NewServerRestHandlerImpl, wire.Bind(new(ServerRestHandler), new(*ServerRestHandlerImpl)), NewServerRouterImpl, wire.Bind(new(ServerRouter), new(*ServerRouterImpl)), )
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 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)
Click to show internal directories.
Click to hide internal directories.