Documentation ¶
Index ¶
- func NewGrpcService(mediator mediator.Mediator) p_grpc.DeviceDefinitionServiceServer
- func RegisterDeviceDefinitionsRoutes(app fiber.Router, m mediator.Mediator)
- func RegisterIntegrationRoutes(app fiber.Router, m mediator.Mediator)
- func Run(ctx context.Context, logger zerolog.Logger, settings *config.Settings)
- func StartGrpcServer(logger zerolog.Logger, s *config.Settings, m mediator.Mediator)
- type GrpcService
- func (s *GrpcService) CreateDeviceDefinition(ctx context.Context, in *p_grpc.CreateDeviceDefinitionRequest) (*p_grpc.CreateDeviceDefinitionResponse, error)
- func (s *GrpcService) CreateDeviceIntegration(ctx context.Context, in *p_grpc.CreateDeviceIntegrationRequest) (*p_grpc.CreateDeviceIntegrationResponse, error)
- func (s *GrpcService) GetDeviceDefinitionAll(ctx context.Context, in *p_grpc.EmptyRequest) (*p_grpc.GetDeviceDefinitionAllResponse, error)
- func (s *GrpcService) GetDeviceDefinitionByID(ctx context.Context, in *p_grpc.GetDeviceDefinitionRequest) (*p_grpc.GetDeviceDefinitionResponse, error)
- func (s *GrpcService) GetDeviceDefinitionByMMY(ctx context.Context, in *p_grpc.GetDeviceDefinitionByMMYRequest) (*p_grpc.GetDeviceDefinitionItemResponse, error)
- func (s *GrpcService) GetDeviceDefinitionIntegration(ctx context.Context, in *p_grpc.GetDeviceDefinitionIntegrationRequest) (*p_grpc.GetDeviceDefinitionIntegrationResponse, error)
- func (s *GrpcService) GetFilteredDeviceDefinitions(ctx context.Context, in *p_grpc.FilterDeviceDefinitionRequest) (*p_grpc.GetFilteredDeviceDefinitionsResponse, error)
- func (s *GrpcService) GetIntegrations(ctx context.Context, in *p_grpc.EmptyRequest) (*p_grpc.GetIntegrationResponse, error)
- func (s *GrpcService) SetDeviceDefinitionImage(ctx context.Context, in *p_grpc.UpdateDeviceDefinitionImageRequest) (*p_grpc.UpdateDeviceDefinitionResponse, error)
- func (s *GrpcService) UpdateDeviceDefinition(ctx context.Context, in *p_grpc.UpdateDeviceDefinitionRequest) (*p_grpc.UpdateDeviceDefinitionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGrpcService ¶ added in v0.1.2
func NewGrpcService(mediator mediator.Mediator) p_grpc.DeviceDefinitionServiceServer
Types ¶
type GrpcService ¶ added in v0.1.2
type GrpcService struct { p_grpc.UnimplementedDeviceDefinitionServiceServer Mediator mediator.Mediator }
func (*GrpcService) CreateDeviceDefinition ¶ added in v0.1.4
func (s *GrpcService) CreateDeviceDefinition(ctx context.Context, in *p_grpc.CreateDeviceDefinitionRequest) (*p_grpc.CreateDeviceDefinitionResponse, error)
func (*GrpcService) CreateDeviceIntegration ¶ added in v0.1.4
func (s *GrpcService) CreateDeviceIntegration(ctx context.Context, in *p_grpc.CreateDeviceIntegrationRequest) (*p_grpc.CreateDeviceIntegrationResponse, error)
func (*GrpcService) GetDeviceDefinitionAll ¶ added in v0.1.7
func (s *GrpcService) GetDeviceDefinitionAll(ctx context.Context, in *p_grpc.EmptyRequest) (*p_grpc.GetDeviceDefinitionAllResponse, error)
func (*GrpcService) GetDeviceDefinitionByID ¶ added in v0.1.2
func (s *GrpcService) GetDeviceDefinitionByID(ctx context.Context, in *p_grpc.GetDeviceDefinitionRequest) (*p_grpc.GetDeviceDefinitionResponse, error)
func (*GrpcService) GetDeviceDefinitionByMMY ¶ added in v0.1.4
func (s *GrpcService) GetDeviceDefinitionByMMY(ctx context.Context, in *p_grpc.GetDeviceDefinitionByMMYRequest) (*p_grpc.GetDeviceDefinitionItemResponse, error)
func (*GrpcService) GetDeviceDefinitionIntegration ¶ added in v0.1.4
func (s *GrpcService) GetDeviceDefinitionIntegration(ctx context.Context, in *p_grpc.GetDeviceDefinitionIntegrationRequest) (*p_grpc.GetDeviceDefinitionIntegrationResponse, error)
func (*GrpcService) GetFilteredDeviceDefinitions ¶ added in v0.1.9
func (s *GrpcService) GetFilteredDeviceDefinitions(ctx context.Context, in *p_grpc.FilterDeviceDefinitionRequest) (*p_grpc.GetFilteredDeviceDefinitionsResponse, error)
func (*GrpcService) GetIntegrations ¶ added in v0.1.4
func (s *GrpcService) GetIntegrations(ctx context.Context, in *p_grpc.EmptyRequest) (*p_grpc.GetIntegrationResponse, error)
func (*GrpcService) SetDeviceDefinitionImage ¶ added in v0.1.6
func (s *GrpcService) SetDeviceDefinitionImage(ctx context.Context, in *p_grpc.UpdateDeviceDefinitionImageRequest) (*p_grpc.UpdateDeviceDefinitionResponse, error)
func (*GrpcService) UpdateDeviceDefinition ¶ added in v0.1.4
func (s *GrpcService) UpdateDeviceDefinition(ctx context.Context, in *p_grpc.UpdateDeviceDefinitionRequest) (*p_grpc.UpdateDeviceDefinitionResponse, error)
Click to show internal directories.
Click to hide internal directories.