grpc

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttestationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.AttestationService",
	HandlerType: (*AttestationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "BatchCreateVINVC",
			Handler:    _AttestationService_BatchCreateVINVC_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)

View Source
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 {
	BatchCreateVINVC(ctx context.Context, in *BatchCreateVINVCRequest, opts ...grpc.CallOption) (*BatchCreateVINVCResponse, 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.

type AttestationServiceServer

type AttestationServiceServer interface {
	BatchCreateVINVC(context.Context, *BatchCreateVINVCRequest) (*BatchCreateVINVCResponse, error)
	// contains filtered or unexported methods
}

AttestationServiceServer is the server API for AttestationService service. All implementations must embed UnimplementedAttestationServiceServer for forward compatibility

type BatchCreateVINVCRequest

type BatchCreateVINVCRequest struct {
	TokenIds []uint32 `protobuf:"varint,1,rep,packed,name=tokenIds,proto3" json:"tokenIds,omitempty"`
	Force    bool     `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateVINVCRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateVINVCRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateVINVCRequest) GetForce

func (x *BatchCreateVINVCRequest) GetForce() bool

func (*BatchCreateVINVCRequest) GetTokenIds

func (x *BatchCreateVINVCRequest) GetTokenIds() []uint32

func (*BatchCreateVINVCRequest) ProtoMessage

func (*BatchCreateVINVCRequest) ProtoMessage()

func (*BatchCreateVINVCRequest) ProtoReflect

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

func (*BatchCreateVINVCRequest) Reset

func (x *BatchCreateVINVCRequest) Reset()

func (*BatchCreateVINVCRequest) String

func (x *BatchCreateVINVCRequest) String() string

type BatchCreateVINVCResponse

type BatchCreateVINVCResponse struct {
	Results []*VINVCResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateVINVCResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateVINVCResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateVINVCResponse) GetResults

func (x *BatchCreateVINVCResponse) GetResults() []*VINVCResult

func (*BatchCreateVINVCResponse) ProtoMessage

func (*BatchCreateVINVCResponse) ProtoMessage()

func (*BatchCreateVINVCResponse) ProtoReflect

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

func (*BatchCreateVINVCResponse) Reset

func (x *BatchCreateVINVCResponse) Reset()

func (*BatchCreateVINVCResponse) String

func (x *BatchCreateVINVCResponse) String() string

type UnimplementedAttestationServiceServer

type UnimplementedAttestationServiceServer struct {
}

UnimplementedAttestationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAttestationServiceServer) BatchCreateVINVC

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.

type VINVCResult

type VINVCResult struct {
	TokenId uint32  `protobuf:"varint,1,opt,name=tokenId,proto3" json:"tokenId,omitempty"`
	RawVC   string  `protobuf:"bytes,2,opt,name=rawVC,proto3" json:"rawVC,omitempty"`
	Error   *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*VINVCResult) Descriptor deprecated

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

Deprecated: Use VINVCResult.ProtoReflect.Descriptor instead.

func (*VINVCResult) GetError

func (x *VINVCResult) GetError() string

func (*VINVCResult) GetRawVC

func (x *VINVCResult) GetRawVC() string

func (*VINVCResult) GetTokenId

func (x *VINVCResult) GetTokenId() uint32

func (*VINVCResult) ProtoMessage

func (*VINVCResult) ProtoMessage()

func (*VINVCResult) ProtoReflect

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

func (*VINVCResult) Reset

func (x *VINVCResult) Reset()

func (*VINVCResult) String

func (x *VINVCResult) String() string

Jump to

Keyboard shortcuts

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