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) 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
- 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 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
- type UnimplementedAttestationServiceServer
- func (UnimplementedAttestationServiceServer) EnsureVinVc(context.Context, *EnsureVinVcRequest) (*EnsureVinVcResponse, error)
- func (UnimplementedAttestationServiceServer) GetVinVcLatest(context.Context, *GetLatestVinVcRequest) (*GetLatestVinVcResponse, 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" )
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, }, }, 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)
}
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)
// 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 {
TokenId uint32 `protobuf:"varint,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,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) 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 {
// 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) 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 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 {
// 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) 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) 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.