Documentation ¶
Index ¶
- func NewGrpcClient() (c interfaces.GrpcClient, err error)
- type BasePlugin
- type EventService
- type EventServiceInterface
- type Internal
- func (internal *Internal) GetApi() *gin.Engine
- func (internal *Internal) GetApiServer() *http.Server
- func (internal *Internal) GetEventService() EventServiceInterface
- func (internal *Internal) GetGrpcClient() interfaces.GrpcClient
- func (internal *Internal) GetModelService() interfaces.GrpcClientModelService
- func (internal *Internal) StartApi()
- func (internal *Internal) StopApi()
- func (internal *Internal) Wait()
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrpcClient ¶
func NewGrpcClient() (c interfaces.GrpcClient, err error)
Types ¶
type BasePlugin ¶
type BasePlugin struct {
// contains filtered or unexported fields
}
func (*BasePlugin) GetClient ¶
func (p *BasePlugin) GetClient() interfaces.GrpcClient
func (*BasePlugin) Init ¶
func (p *BasePlugin) Init()
type EventService ¶
type EventService struct {
// contains filtered or unexported fields
}
func (*EventService) GetStream ¶
func (svc *EventService) GetStream() (stream grpc.PluginService_SubscribeClient)
func (*EventService) Subscribe ¶
func (svc *EventService) Subscribe() (err error)
type EventServiceInterface ¶
type EventServiceInterface interface { Subscribe() (err error) GetStream() (stream grpc.PluginService_SubscribeClient) }
func NewEventService ¶
func NewEventService(internal *Internal) (svc EventServiceInterface)
type Internal ¶
type Internal struct {
// contains filtered or unexported fields
}
func NewInternal ¶
func NewInternal() *Internal
func (*Internal) GetApiServer ¶
func (*Internal) GetEventService ¶
func (internal *Internal) GetEventService() EventServiceInterface
func (*Internal) GetGrpcClient ¶
func (internal *Internal) GetGrpcClient() interfaces.GrpcClient
func (*Internal) GetModelService ¶
func (internal *Internal) GetModelService() interfaces.GrpcClientModelService
Click to show internal directories.
Click to hide internal directories.