2024-07-15 12:04:03 +00:00
|
|
|
package grpc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"git.solsynth.dev/hydrogen/dealer/pkg/hyper"
|
|
|
|
"git.solsynth.dev/hydrogen/dealer/pkg/proto"
|
2024-07-15 14:20:37 +00:00
|
|
|
"google.golang.org/grpc"
|
2024-07-15 12:04:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func (v *Server) RecordEvent(ctx context.Context, request *proto.RecordEventRequest) (*proto.RecordEventResponse, error) {
|
2024-07-15 14:20:37 +00:00
|
|
|
return forwardInvokeRequest(
|
|
|
|
hyper.ServiceTypeAuthProvider,
|
|
|
|
func(ctx context.Context, conn *grpc.ClientConn) (*proto.RecordEventResponse, error) {
|
|
|
|
out, err := proto.NewEventRecorderClient(conn).RecordEvent(ctx, request)
|
|
|
|
return out, err
|
|
|
|
},
|
|
|
|
)
|
2024-07-15 12:04:03 +00:00
|
|
|
}
|