Redmage/server/grpc/handlers/device.go

26 lines
679 B
Go
Raw Normal View History

2024-08-04 20:18:54 +07:00
package handlers
import (
"context"
"connectrpc.com/connect"
"github.com/tigorlazuardi/redmage/api"
device "github.com/tigorlazuardi/redmage/gen/proto/device/v1"
deviceConnect "github.com/tigorlazuardi/redmage/gen/proto/device/v1/v1connect"
)
var _ deviceConnect.DeviceServiceHandler = (*Device)(nil)
type Device struct {
deviceConnect.UnimplementedDeviceServiceHandler
API *api.API
}
func (de *Device) CreateDevice(ctx context.Context, req *connect.Request[device.CreateDeviceRequest]) (*connect.Response[device.CreateDeviceResponse], error) {
ctx, span := tracer.Start(ctx, "Device.CreateDevice")
defer span.End()
panic("not implemented") // TODO: Implement
}