Documentation ¶
Index ¶
- Variables
- func NewGRPCServer(c *conf.Server, d *data.Data, apiWhite *conf.ApiWhite, logger log.Logger) *grpc.Server
- func NewHTTPServer(c *conf.Server, jwtConf *conf.JWT, d *data.Data, apiWhite *conf.ApiWhite, ...) *http.Server
- type AgentInfo
- type AlarmEvent
- type GrpcServer
- type HttpServer
- type Server
- type WebsocketServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetServer = wire.NewSet( NewGRPCServer, NewHTTPServer, RegisterHttpServer, RegisterGrpcServer, NewServer, NewAlarmEvent, NewWebsocketServer, )
ProviderSetServer is server providers.
Functions ¶
Types ¶
type AlarmEvent ¶
type AlarmEvent struct {
// contains filtered or unexported fields
}
func NewAlarmEvent ¶
func NewAlarmEvent( d *data.Data, c *conf.Interflow, changeGroupChannel <-chan uint32, removeGroupChannel <-chan bo.RemoveStrategyGroupBO, hookService *alarmservice.HookService, groupService *promservice.GroupService, logger log.Logger, ) (*AlarmEvent, error)
type GrpcServer ¶
func RegisterGrpcServer ¶
func RegisterGrpcServer( srv *grpc.Server, pingService *service.PingService, dictService *systemservice.Service, strategyService *promservice.StrategyService, strategyGroupService *promservice.GroupService, hookService *alarmservice.HookService, historyService *alarmservice.HistoryService, userService *systemservice.UserService, roleService *systemservice.RoleService, endpointService *promservice.EndpointService, apiService *systemservice.ApiService, chatGroupService *promservice.ChatGroupService, notifyService *promservice.NotifyService, realtimeService *alarmservice.RealtimeService, chartService *dashboardservice.ChartService, dashboardService *dashboardservice.DashboardService, syslogService *systemservice.SyslogService, ) *GrpcServer
RegisterGrpcServer register a gRPC server.
type HttpServer ¶
func RegisterHttpServer ¶
func RegisterHttpServer( srv *http.Server, pingService *service.PingService, dictService *systemservice.Service, strategyService *promservice.StrategyService, strategyGroupService *promservice.GroupService, hookService *alarmservice.HookService, historyService *alarmservice.HistoryService, authService *authservice.AuthService, userService *systemservice.UserService, roleService *systemservice.RoleService, endpointService *promservice.EndpointService, apiService *systemservice.ApiService, chatGroupService *promservice.ChatGroupService, notifyService *promservice.NotifyService, realtimeService *alarmservice.RealtimeService, interflowService *interflowservice.HookInterflowService, chartService *dashboardservice.ChartService, dashboardService *dashboardservice.DashboardService, syslogService *systemservice.SyslogService, templateService *promservice.TemplateService, ) *HttpServer
RegisterHttpServer new a HTTP server register.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(hSrv *HttpServer, gSrv *GrpcServer, alarmEvent *AlarmEvent, ws *WebsocketServer) *Server
type WebsocketServer ¶
type WebsocketServer struct { *servers.WebsocketServer // contains filtered or unexported fields }
func NewWebsocketServer ¶
func NewWebsocketServer(c *conf.Server, l log.Logger) *WebsocketServer
Click to show internal directories.
Click to hide internal directories.