api

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler added in v0.2.4

func ErrorHandler(c *fiber.Ctx, err error, logger zerolog.Logger) error

Code below copied from device-data-api/main.go

func NewGrpcService

func NewGrpcService(logger *zerolog.Logger, dbs func() *db.ReaderWriter) p_grpc.VehicleSignalDecodingServiceServer

func Run

func Run(ctx context.Context, logger zerolog.Logger, settings *config.Settings)

func StartGrpcServer

func StartGrpcServer(logger zerolog.Logger, dbs func() *db.ReaderWriter, s *config.Settings)

Types

type CodeResp added in v0.2.4

type CodeResp struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type GrpcService

type GrpcService struct {
	p_grpc.VehicleSignalDecodingServiceServer

	DBS func() *db.ReaderWriter
	// contains filtered or unexported fields
}

func (*GrpcService) CreateDBCCode

func (*GrpcService) CreateTestSignal

func (*GrpcService) GetDBCCodes

func (*GrpcService) GetDBCCodesByID added in v0.1.1

func (*GrpcService) GetTestSignalByID added in v0.1.1

func (*GrpcService) GetTestSignals

func (*GrpcService) GetTestSignalsByDBCCodeID added in v0.1.1

func (s *GrpcService) GetTestSignalsByDBCCodeID(ctx context.Context, in *p_grpc.GetByIdRequest) (*p_grpc.GetTestSignalListResponse, error)

func (*GrpcService) GetTestSignalsByDeviceDefinitionID added in v0.1.1

func (s *GrpcService) GetTestSignalsByDeviceDefinitionID(ctx context.Context, in *p_grpc.GetByIdRequest) (*p_grpc.GetTestSignalListResponse, error)

func (*GrpcService) GetTestSignalsByUserDeviceID added in v0.1.1

func (s *GrpcService) GetTestSignalsByUserDeviceID(ctx context.Context, in *p_grpc.GetByIdRequest) (*p_grpc.GetTestSignalListResponse, error)

func (*GrpcService) UpdateDBCCode

func (*GrpcService) UpdateTestSignal

type VechicleSignalDecodingData

type VechicleSignalDecodingData struct {
	Signals []map[string]commands.RunTestSignalItemCommandRequest `json:"signals"`
}

type WorkerListenerService

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

func (*WorkerListenerService) ProcessWorker

func (i *WorkerListenerService) ProcessWorker(messages <-chan *message.Message)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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