information_v1

package
v0.0.0-...-29d49c9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_information_v1_information_proto protoreflect.FileDescriptor
View Source
var InformationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "information.InformationService",
	HandlerType: (*InformationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVehicleInfo",
			Handler:    _InformationService_GetVehicleInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "information/v1/information.proto",
}

InformationService_ServiceDesc is the grpc.ServiceDesc for InformationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInformationServiceServer

func RegisterInformationServiceServer(s grpc.ServiceRegistrar, srv InformationServiceServer)

Types

type InformationServiceClient

type InformationServiceClient interface {
	GetVehicleInfo(ctx context.Context, in *VehicleInfoRequest, opts ...grpc.CallOption) (*VehicleInfoResponse, error)
}

InformationServiceClient is the client API for InformationService 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.

type InformationServiceServer

type InformationServiceServer interface {
	GetVehicleInfo(context.Context, *VehicleInfoRequest) (*VehicleInfoResponse, error)
	// contains filtered or unexported methods
}

InformationServiceServer is the server API for InformationService service. All implementations must embed UnimplementedInformationServiceServer for forward compatibility

type UnimplementedInformationServiceServer

type UnimplementedInformationServiceServer struct {
}

UnimplementedInformationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedInformationServiceServer) GetVehicleInfo

type UnsafeInformationServiceServer

type UnsafeInformationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInformationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InformationServiceServer will result in compilation errors.

type VehicleInfoRequest

type VehicleInfoRequest struct {
	Username  string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Pin       string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	JwtToken  string `protobuf:"bytes,3,opt,name=jwt_token,json=jwtToken,proto3" json:"jwt_token,omitempty"`
	JwtExpiry int64  `protobuf:"varint,4,opt,name=jwt_expiry,json=jwtExpiry,proto3" json:"jwt_expiry,omitempty"`
	// contains filtered or unexported fields
}

func (*VehicleInfoRequest) Descriptor deprecated

func (*VehicleInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use VehicleInfoRequest.ProtoReflect.Descriptor instead.

func (*VehicleInfoRequest) GetJwtExpiry

func (x *VehicleInfoRequest) GetJwtExpiry() int64

func (*VehicleInfoRequest) GetJwtToken

func (x *VehicleInfoRequest) GetJwtToken() string

func (*VehicleInfoRequest) GetPin

func (x *VehicleInfoRequest) GetPin() string

func (*VehicleInfoRequest) GetUsername

func (x *VehicleInfoRequest) GetUsername() string

func (*VehicleInfoRequest) ProtoMessage

func (*VehicleInfoRequest) ProtoMessage()

func (*VehicleInfoRequest) ProtoReflect

func (x *VehicleInfoRequest) ProtoReflect() protoreflect.Message

func (*VehicleInfoRequest) Reset

func (x *VehicleInfoRequest) Reset()

func (*VehicleInfoRequest) String

func (x *VehicleInfoRequest) String() string

type VehicleInfoResponse

type VehicleInfoResponse struct {
	RegistrationId string `protobuf:"bytes,1,opt,name=registration_id,json=registrationId,proto3" json:"registration_id,omitempty"`
	Vin            string `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,omitempty"`
	Generation     string `protobuf:"bytes,3,opt,name=generation,proto3" json:"generation,omitempty"`
	Mileage        string `protobuf:"bytes,4,opt,name=mileage,proto3" json:"mileage,omitempty"`
	// contains filtered or unexported fields
}

func (*VehicleInfoResponse) Descriptor deprecated

func (*VehicleInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use VehicleInfoResponse.ProtoReflect.Descriptor instead.

func (*VehicleInfoResponse) GetGeneration

func (x *VehicleInfoResponse) GetGeneration() string

func (*VehicleInfoResponse) GetMileage

func (x *VehicleInfoResponse) GetMileage() string

func (*VehicleInfoResponse) GetRegistrationId

func (x *VehicleInfoResponse) GetRegistrationId() string

func (*VehicleInfoResponse) GetVin

func (x *VehicleInfoResponse) GetVin() string

func (*VehicleInfoResponse) ProtoMessage

func (*VehicleInfoResponse) ProtoMessage()

func (*VehicleInfoResponse) ProtoReflect

func (x *VehicleInfoResponse) ProtoReflect() protoreflect.Message

func (*VehicleInfoResponse) Reset

func (x *VehicleInfoResponse) Reset()

func (*VehicleInfoResponse) String

func (x *VehicleInfoResponse) String() string

Jump to

Keyboard shortcuts

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