Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAttestationServiceServer(s grpc.ServiceRegistrar, srv AttestationServiceServer)
- type AttestationServiceClient
- type AttestationServiceServer
- type EnsureVinVcRequest
- func (*EnsureVinVcRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureVinVcRequest) GetBefore() *timestamppb.Timestamp
- func (x *EnsureVinVcRequest) GetForce() bool
- func (x *EnsureVinVcRequest) GetTokenId() uint32
- func (*EnsureVinVcRequest) ProtoMessage()
- func (x *EnsureVinVcRequest) ProtoReflect() protoreflect.Message
- func (x *EnsureVinVcRequest) Reset()
- func (x *EnsureVinVcRequest) String() string
- type EnsureVinVcResponse
- func (*EnsureVinVcResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnsureVinVcResponse) GetRawVc() string
- func (*EnsureVinVcResponse) ProtoMessage()
- func (x *EnsureVinVcResponse) ProtoReflect() protoreflect.Message
- func (x *EnsureVinVcResponse) Reset()
- func (x *EnsureVinVcResponse) String() string
- type GetLatestVinVcRequest
- func (*GetLatestVinVcRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestVinVcRequest) GetTokenId() uint32
- func (*GetLatestVinVcRequest) ProtoMessage()
- func (x *GetLatestVinVcRequest) ProtoReflect() protoreflect.Message
- func (x *GetLatestVinVcRequest) Reset()
- func (x *GetLatestVinVcRequest) String() string
- type GetLatestVinVcResponse
- func (*GetLatestVinVcResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestVinVcResponse) GetRawVc() string
- func (*GetLatestVinVcResponse) ProtoMessage()
- func (x *GetLatestVinVcResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestVinVcResponse) Reset()
- func (x *GetLatestVinVcResponse) String() string
- type ManualVinVcCreationRequest
- func (*ManualVinVcCreationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ManualVinVcCreationRequest) GetCountryCode() string
- func (x *ManualVinVcCreationRequest) GetTokenId() uint32
- func (x *ManualVinVcCreationRequest) GetVin() string
- func (*ManualVinVcCreationRequest) ProtoMessage()
- func (x *ManualVinVcCreationRequest) ProtoReflect() protoreflect.Message
- func (x *ManualVinVcCreationRequest) Reset()
- func (x *ManualVinVcCreationRequest) String() string
- type ManualVinVcCreationResponse
- func (*ManualVinVcCreationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ManualVinVcCreationResponse) GetRawVc() string
- func (*ManualVinVcCreationResponse) ProtoMessage()
- func (x *ManualVinVcCreationResponse) ProtoReflect() protoreflect.Message
- func (x *ManualVinVcCreationResponse) Reset()
- func (x *ManualVinVcCreationResponse) String() string
- type TestVinVcCreationRequest
- func (*TestVinVcCreationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestVinVcCreationRequest) GetTokenId() uint32
- func (*TestVinVcCreationRequest) ProtoMessage()
- func (x *TestVinVcCreationRequest) ProtoReflect() protoreflect.Message
- func (x *TestVinVcCreationRequest) Reset()
- func (x *TestVinVcCreationRequest) String() string
- type TestVinVcCreationResponse
- func (*TestVinVcCreationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestVinVcCreationResponse) GetRawVc() string
- func (*TestVinVcCreationResponse) ProtoMessage()
- func (x *TestVinVcCreationResponse) ProtoReflect() protoreflect.Message
- func (x *TestVinVcCreationResponse) Reset()
- func (x *TestVinVcCreationResponse) String() string
- type UnimplementedAttestationServiceServer
- func (UnimplementedAttestationServiceServer) EnsureVinVc(context.Context, *EnsureVinVcRequest) (*EnsureVinVcResponse, error)
- func (UnimplementedAttestationServiceServer) GetVinVcLatest(context.Context, *GetLatestVinVcRequest) (*GetLatestVinVcResponse, error)
- func (UnimplementedAttestationServiceServer) ManualVinVcCreation(context.Context, *ManualVinVcCreationRequest) (*ManualVinVcCreationResponse, error)
- func (UnimplementedAttestationServiceServer) TestVinVcCreation(context.Context, *TestVinVcCreationRequest) (*TestVinVcCreationResponse, error)
- type UnsafeAttestationServiceServer
Constants ¶
const ( AttestationService_EnsureVinVc_FullMethodName = "/grpc.AttestationService/EnsureVinVc" AttestationService_GetVinVcLatest_FullMethodName = "/grpc.AttestationService/GetVinVcLatest" AttestationService_TestVinVcCreation_FullMethodName = "/grpc.AttestationService/TestVinVcCreation" AttestationService_ManualVinVcCreation_FullMethodName = "/grpc.AttestationService/ManualVinVcCreation" )
Variables ¶
var AttestationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.AttestationService", HandlerType: (*AttestationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EnsureVinVc", Handler: _AttestationService_EnsureVinVc_Handler, }, { MethodName: "GetVinVcLatest", Handler: _AttestationService_GetVinVcLatest_Handler, }, { MethodName: "TestVinVcCreation", Handler: _AttestationService_TestVinVcCreation_Handler, }, { MethodName: "ManualVinVcCreation", Handler: _AttestationService_ManualVinVcCreation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpc/atttestation-api.proto", }
AttestationService_ServiceDesc is the grpc.ServiceDesc for AttestationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_grpc_atttestation_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAttestationServiceServer ¶
func RegisterAttestationServiceServer(s grpc.ServiceRegistrar, srv AttestationServiceServer)
Types ¶
type AttestationServiceClient ¶
type AttestationServiceClient interface {
EnsureVinVc(ctx context.Context, in *EnsureVinVcRequest, opts ...grpc.CallOption) (*EnsureVinVcResponse, error)
GetVinVcLatest(ctx context.Context, in *GetLatestVinVcRequest, opts ...grpc.CallOption) (*GetLatestVinVcResponse, error)
TestVinVcCreation(ctx context.Context, in *TestVinVcCreationRequest, opts ...grpc.CallOption) (*TestVinVcCreationResponse, error)
ManualVinVcCreation(ctx context.Context, in *ManualVinVcCreationRequest, opts ...grpc.CallOption) (*ManualVinVcCreationResponse, error)
}
AttestationServiceClient is the client API for AttestationService 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 NewAttestationServiceClient ¶
func NewAttestationServiceClient(cc grpc.ClientConnInterface) AttestationServiceClient
type AttestationServiceServer ¶
type AttestationServiceServer interface {
EnsureVinVc(context.Context, *EnsureVinVcRequest) (*EnsureVinVcResponse, error)
GetVinVcLatest(context.Context, *GetLatestVinVcRequest) (*GetLatestVinVcResponse, error)
TestVinVcCreation(context.Context, *TestVinVcCreationRequest) (*TestVinVcCreationResponse, error)
ManualVinVcCreation(context.Context, *ManualVinVcCreationRequest) (*ManualVinVcCreationResponse, error)
// contains filtered or unexported methods
}
AttestationServiceServer is the server API for AttestationService service. All implementations must embed UnimplementedAttestationServiceServer for forward compatibility.
type EnsureVinVcRequest ¶ added in v0.0.16
type EnsureVinVcRequest struct {
// The token Id of the VC to ensure.
TokenId uint32 `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
// If true, the VC will be created even if it already exists.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
// The recorded at time of the VIN VC must be before this time.
Before *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=before,proto3" json:"before,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureVinVcRequest) Descriptor
deprecated
added in
v0.0.16
func (*EnsureVinVcRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnsureVinVcRequest.ProtoReflect.Descriptor instead.
func (*EnsureVinVcRequest) GetBefore ¶ added in v0.0.21
func (x *EnsureVinVcRequest) GetBefore() *timestamppb.Timestamp
func (*EnsureVinVcRequest) GetForce ¶ added in v0.0.16
func (x *EnsureVinVcRequest) GetForce() bool
func (*EnsureVinVcRequest) GetTokenId ¶ added in v0.0.16
func (x *EnsureVinVcRequest) GetTokenId() uint32
func (*EnsureVinVcRequest) ProtoMessage ¶ added in v0.0.16
func (*EnsureVinVcRequest) ProtoMessage()
func (*EnsureVinVcRequest) ProtoReflect ¶ added in v0.0.16
func (x *EnsureVinVcRequest) ProtoReflect() protoreflect.Message
func (*EnsureVinVcRequest) Reset ¶ added in v0.0.16
func (x *EnsureVinVcRequest) Reset()
func (*EnsureVinVcRequest) String ¶ added in v0.0.16
func (x *EnsureVinVcRequest) String() string
type EnsureVinVcResponse ¶ added in v0.0.16
type EnsureVinVcResponse struct {
RawVc string `protobuf:"bytes,1,opt,name=raw_vc,json=rawVc,proto3" json:"raw_vc,omitempty"`
// contains filtered or unexported fields
}
func (*EnsureVinVcResponse) Descriptor
deprecated
added in
v0.0.16
func (*EnsureVinVcResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnsureVinVcResponse.ProtoReflect.Descriptor instead.
func (*EnsureVinVcResponse) GetRawVc ¶ added in v0.0.20
func (x *EnsureVinVcResponse) GetRawVc() string
func (*EnsureVinVcResponse) ProtoMessage ¶ added in v0.0.16
func (*EnsureVinVcResponse) ProtoMessage()
func (*EnsureVinVcResponse) ProtoReflect ¶ added in v0.0.16
func (x *EnsureVinVcResponse) ProtoReflect() protoreflect.Message
func (*EnsureVinVcResponse) Reset ¶ added in v0.0.16
func (x *EnsureVinVcResponse) Reset()
func (*EnsureVinVcResponse) String ¶ added in v0.0.16
func (x *EnsureVinVcResponse) String() string
type GetLatestVinVcRequest ¶ added in v0.0.16
type GetLatestVinVcRequest struct {
TokenId uint32 `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetLatestVinVcRequest) Descriptor
deprecated
added in
v0.0.16
func (*GetLatestVinVcRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestVinVcRequest.ProtoReflect.Descriptor instead.
func (*GetLatestVinVcRequest) GetTokenId ¶ added in v0.0.16
func (x *GetLatestVinVcRequest) GetTokenId() uint32
func (*GetLatestVinVcRequest) ProtoMessage ¶ added in v0.0.16
func (*GetLatestVinVcRequest) ProtoMessage()
func (*GetLatestVinVcRequest) ProtoReflect ¶ added in v0.0.16
func (x *GetLatestVinVcRequest) ProtoReflect() protoreflect.Message
func (*GetLatestVinVcRequest) Reset ¶ added in v0.0.16
func (x *GetLatestVinVcRequest) Reset()
func (*GetLatestVinVcRequest) String ¶ added in v0.0.16
func (x *GetLatestVinVcRequest) String() string
type GetLatestVinVcResponse ¶ added in v0.0.16
type GetLatestVinVcResponse struct {
RawVc string `protobuf:"bytes,1,opt,name=raw_vc,json=rawVc,proto3" json:"raw_vc,omitempty"`
// contains filtered or unexported fields
}
func (*GetLatestVinVcResponse) Descriptor
deprecated
added in
v0.0.16
func (*GetLatestVinVcResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestVinVcResponse.ProtoReflect.Descriptor instead.
func (*GetLatestVinVcResponse) GetRawVc ¶ added in v0.0.16
func (x *GetLatestVinVcResponse) GetRawVc() string
func (*GetLatestVinVcResponse) ProtoMessage ¶ added in v0.0.16
func (*GetLatestVinVcResponse) ProtoMessage()
func (*GetLatestVinVcResponse) ProtoReflect ¶ added in v0.0.16
func (x *GetLatestVinVcResponse) ProtoReflect() protoreflect.Message
func (*GetLatestVinVcResponse) Reset ¶ added in v0.0.16
func (x *GetLatestVinVcResponse) Reset()
func (*GetLatestVinVcResponse) String ¶ added in v0.0.16
func (x *GetLatestVinVcResponse) String() string
type ManualVinVcCreationRequest ¶ added in v0.0.17
type ManualVinVcCreationRequest struct {
TokenId uint32 `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
Vin string `protobuf:"bytes,2,opt,name=vin,proto3" json:"vin,omitempty"`
CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
// contains filtered or unexported fields
}
func (*ManualVinVcCreationRequest) Descriptor
deprecated
added in
v0.0.17
func (*ManualVinVcCreationRequest) Descriptor() ([]byte, []int)
Deprecated: Use ManualVinVcCreationRequest.ProtoReflect.Descriptor instead.
func (*ManualVinVcCreationRequest) GetCountryCode ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) GetCountryCode() string
func (*ManualVinVcCreationRequest) GetTokenId ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) GetTokenId() uint32
func (*ManualVinVcCreationRequest) GetVin ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) GetVin() string
func (*ManualVinVcCreationRequest) ProtoMessage ¶ added in v0.0.17
func (*ManualVinVcCreationRequest) ProtoMessage()
func (*ManualVinVcCreationRequest) ProtoReflect ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) ProtoReflect() protoreflect.Message
func (*ManualVinVcCreationRequest) Reset ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) Reset()
func (*ManualVinVcCreationRequest) String ¶ added in v0.0.17
func (x *ManualVinVcCreationRequest) String() string
type ManualVinVcCreationResponse ¶ added in v0.0.17
type ManualVinVcCreationResponse struct {
RawVc string `protobuf:"bytes,1,opt,name=raw_vc,json=rawVc,proto3" json:"raw_vc,omitempty"`
// contains filtered or unexported fields
}
func (*ManualVinVcCreationResponse) Descriptor
deprecated
added in
v0.0.17
func (*ManualVinVcCreationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ManualVinVcCreationResponse.ProtoReflect.Descriptor instead.
func (*ManualVinVcCreationResponse) GetRawVc ¶ added in v0.0.17
func (x *ManualVinVcCreationResponse) GetRawVc() string
func (*ManualVinVcCreationResponse) ProtoMessage ¶ added in v0.0.17
func (*ManualVinVcCreationResponse) ProtoMessage()
func (*ManualVinVcCreationResponse) ProtoReflect ¶ added in v0.0.17
func (x *ManualVinVcCreationResponse) ProtoReflect() protoreflect.Message
func (*ManualVinVcCreationResponse) Reset ¶ added in v0.0.17
func (x *ManualVinVcCreationResponse) Reset()
func (*ManualVinVcCreationResponse) String ¶ added in v0.0.17
func (x *ManualVinVcCreationResponse) String() string
type TestVinVcCreationRequest ¶ added in v0.0.16
type TestVinVcCreationRequest struct {
TokenId uint32 `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
// contains filtered or unexported fields
}
func (*TestVinVcCreationRequest) Descriptor
deprecated
added in
v0.0.16
func (*TestVinVcCreationRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestVinVcCreationRequest.ProtoReflect.Descriptor instead.
func (*TestVinVcCreationRequest) GetTokenId ¶ added in v0.0.16
func (x *TestVinVcCreationRequest) GetTokenId() uint32
func (*TestVinVcCreationRequest) ProtoMessage ¶ added in v0.0.16
func (*TestVinVcCreationRequest) ProtoMessage()
func (*TestVinVcCreationRequest) ProtoReflect ¶ added in v0.0.16
func (x *TestVinVcCreationRequest) ProtoReflect() protoreflect.Message
func (*TestVinVcCreationRequest) Reset ¶ added in v0.0.16
func (x *TestVinVcCreationRequest) Reset()
func (*TestVinVcCreationRequest) String ¶ added in v0.0.16
func (x *TestVinVcCreationRequest) String() string
type TestVinVcCreationResponse ¶ added in v0.0.16
type TestVinVcCreationResponse struct {
RawVc string `protobuf:"bytes,1,opt,name=raw_vc,json=rawVc,proto3" json:"raw_vc,omitempty"`
// contains filtered or unexported fields
}
func (*TestVinVcCreationResponse) Descriptor
deprecated
added in
v0.0.16
func (*TestVinVcCreationResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestVinVcCreationResponse.ProtoReflect.Descriptor instead.
func (*TestVinVcCreationResponse) GetRawVc ¶ added in v0.0.17
func (x *TestVinVcCreationResponse) GetRawVc() string
func (*TestVinVcCreationResponse) ProtoMessage ¶ added in v0.0.16
func (*TestVinVcCreationResponse) ProtoMessage()
func (*TestVinVcCreationResponse) ProtoReflect ¶ added in v0.0.16
func (x *TestVinVcCreationResponse) ProtoReflect() protoreflect.Message
func (*TestVinVcCreationResponse) Reset ¶ added in v0.0.16
func (x *TestVinVcCreationResponse) Reset()
func (*TestVinVcCreationResponse) String ¶ added in v0.0.16
func (x *TestVinVcCreationResponse) String() string
type UnimplementedAttestationServiceServer ¶
type UnimplementedAttestationServiceServer struct{}
UnimplementedAttestationServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAttestationServiceServer) EnsureVinVc ¶ added in v0.0.16
func (UnimplementedAttestationServiceServer) EnsureVinVc(context.Context, *EnsureVinVcRequest) (*EnsureVinVcResponse, error)
func (UnimplementedAttestationServiceServer) GetVinVcLatest ¶ added in v0.0.16
func (UnimplementedAttestationServiceServer) GetVinVcLatest(context.Context, *GetLatestVinVcRequest) (*GetLatestVinVcResponse, error)
func (UnimplementedAttestationServiceServer) ManualVinVcCreation ¶ added in v0.0.17
func (UnimplementedAttestationServiceServer) ManualVinVcCreation(context.Context, *ManualVinVcCreationRequest) (*ManualVinVcCreationResponse, error)
func (UnimplementedAttestationServiceServer) TestVinVcCreation ¶ added in v0.0.16
func (UnimplementedAttestationServiceServer) TestVinVcCreation(context.Context, *TestVinVcCreationRequest) (*TestVinVcCreationResponse, error)
type UnsafeAttestationServiceServer ¶
type UnsafeAttestationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAttestationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AttestationServiceServer will result in compilation errors.