Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRaceStateServiceServer(s grpc.ServiceRegistrar, srv RaceStateServiceServer)
- type RaceStateServiceClient
- type RaceStateServiceServer
- type UnimplementedRaceStateServiceServer
- func (UnimplementedRaceStateServiceServer) PublishDriverData(context.Context, *v1.PublishDriverDataRequest) (*v1.PublishDriverDataResponse, error)
- func (UnimplementedRaceStateServiceServer) PublishSpeedmap(context.Context, *v1.PublishSpeedmapRequest) (*v1.PublishSpeedmapResponse, error)
- func (UnimplementedRaceStateServiceServer) PublishState(context.Context, *v1.PublishStateRequest) (*v1.PublishStateResponse, error)
- type UnsafeRaceStateServiceServer
Constants ¶
const ( RaceStateService_PublishState_FullMethodName = "/testrepo.racestate.v1.RaceStateService/PublishState" RaceStateService_PublishSpeedmap_FullMethodName = "/testrepo.racestate.v1.RaceStateService/PublishSpeedmap" RaceStateService_PublishDriverData_FullMethodName = "/testrepo.racestate.v1.RaceStateService/PublishDriverData" )
Variables ¶
var RaceStateService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "testrepo.racestate.v1.RaceStateService", HandlerType: (*RaceStateServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PublishState", Handler: _RaceStateService_PublishState_Handler, }, { MethodName: "PublishSpeedmap", Handler: _RaceStateService_PublishSpeedmap_Handler, }, { MethodName: "PublishDriverData", Handler: _RaceStateService_PublishDriverData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "testrepo/racestate/v1/racestate_service.proto", }
RaceStateService_ServiceDesc is the grpc.ServiceDesc for RaceStateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRaceStateServiceServer ¶
func RegisterRaceStateServiceServer(s grpc.ServiceRegistrar, srv RaceStateServiceServer)
Types ¶
type RaceStateServiceClient ¶
type RaceStateServiceClient interface { PublishState(ctx context.Context, in *v1.PublishStateRequest, opts ...grpc.CallOption) (*v1.PublishStateResponse, error) PublishSpeedmap(ctx context.Context, in *v1.PublishSpeedmapRequest, opts ...grpc.CallOption) (*v1.PublishSpeedmapResponse, error) PublishDriverData(ctx context.Context, in *v1.PublishDriverDataRequest, opts ...grpc.CallOption) (*v1.PublishDriverDataResponse, error) }
RaceStateServiceClient is the client API for RaceStateService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRaceStateServiceClient ¶
func NewRaceStateServiceClient(cc grpc.ClientConnInterface) RaceStateServiceClient
type RaceStateServiceServer ¶
type RaceStateServiceServer interface { PublishState(context.Context, *v1.PublishStateRequest) (*v1.PublishStateResponse, error) PublishSpeedmap(context.Context, *v1.PublishSpeedmapRequest) (*v1.PublishSpeedmapResponse, error) PublishDriverData(context.Context, *v1.PublishDriverDataRequest) (*v1.PublishDriverDataResponse, error) }
RaceStateServiceServer is the server API for RaceStateService service. All implementations should embed UnimplementedRaceStateServiceServer for forward compatibility
type UnimplementedRaceStateServiceServer ¶
type UnimplementedRaceStateServiceServer struct { }
UnimplementedRaceStateServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRaceStateServiceServer) PublishDriverData ¶
func (UnimplementedRaceStateServiceServer) PublishDriverData(context.Context, *v1.PublishDriverDataRequest) (*v1.PublishDriverDataResponse, error)
func (UnimplementedRaceStateServiceServer) PublishSpeedmap ¶
func (UnimplementedRaceStateServiceServer) PublishSpeedmap(context.Context, *v1.PublishSpeedmapRequest) (*v1.PublishSpeedmapResponse, error)
func (UnimplementedRaceStateServiceServer) PublishState ¶
func (UnimplementedRaceStateServiceServer) PublishState(context.Context, *v1.PublishStateRequest) (*v1.PublishStateResponse, error)
type UnsafeRaceStateServiceServer ¶
type UnsafeRaceStateServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRaceStateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RaceStateServiceServer will result in compilation errors.