proto

package
v0.0.0-...-3baac6f Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRLStorer_UploadCRL_FullMethodName = "/storer.CRLStorer/UploadCRL"
)

Variables

View Source
var CRLStorer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "storer.CRLStorer",
	HandlerType: (*CRLStorerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "UploadCRL",
			Handler:       _CRLStorer_UploadCRL_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "storer.proto",
}

CRLStorer_ServiceDesc is the grpc.ServiceDesc for CRLStorer 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_storer_proto protoreflect.FileDescriptor

Functions

func RegisterCRLStorerServer

func RegisterCRLStorerServer(s grpc.ServiceRegistrar, srv CRLStorerServer)

Types

type CRLMetadata

type CRLMetadata struct {
	IssuerNameID int64 `protobuf:"varint,1,opt,name=issuerNameID,proto3" json:"issuerNameID,omitempty"`
	Number       int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	ShardIdx     int64 `protobuf:"varint,3,opt,name=shardIdx,proto3" json:"shardIdx,omitempty"`
	// contains filtered or unexported fields
}

func (*CRLMetadata) Descriptor deprecated

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

Deprecated: Use CRLMetadata.ProtoReflect.Descriptor instead.

func (*CRLMetadata) GetIssuerNameID

func (x *CRLMetadata) GetIssuerNameID() int64

func (*CRLMetadata) GetNumber

func (x *CRLMetadata) GetNumber() int64

func (*CRLMetadata) GetShardIdx

func (x *CRLMetadata) GetShardIdx() int64

func (*CRLMetadata) ProtoMessage

func (*CRLMetadata) ProtoMessage()

func (*CRLMetadata) ProtoReflect

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

func (*CRLMetadata) Reset

func (x *CRLMetadata) Reset()

func (*CRLMetadata) String

func (x *CRLMetadata) String() string

type CRLStorerClient

type CRLStorerClient interface {
	UploadCRL(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[UploadCRLRequest, emptypb.Empty], error)
}

CRLStorerClient is the client API for CRLStorer 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 NewCRLStorerClient

func NewCRLStorerClient(cc grpc.ClientConnInterface) CRLStorerClient

type CRLStorerServer

type CRLStorerServer interface {
	UploadCRL(grpc.ClientStreamingServer[UploadCRLRequest, emptypb.Empty]) error
	// contains filtered or unexported methods
}

CRLStorerServer is the server API for CRLStorer service. All implementations must embed UnimplementedCRLStorerServer for forward compatibility

type CRLStorer_UploadCRLClient

type CRLStorer_UploadCRLClient = grpc.ClientStreamingClient[UploadCRLRequest, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CRLStorer_UploadCRLServer

type CRLStorer_UploadCRLServer = grpc.ClientStreamingServer[UploadCRLRequest, emptypb.Empty]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedCRLStorerServer

type UnimplementedCRLStorerServer struct {
}

UnimplementedCRLStorerServer must be embedded to have forward compatible implementations.

func (UnimplementedCRLStorerServer) UploadCRL

type UnsafeCRLStorerServer

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

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

type UploadCRLRequest

type UploadCRLRequest struct {

	// Types that are assignable to Payload:
	//
	//	*UploadCRLRequest_Metadata
	//	*UploadCRLRequest_CrlChunk
	Payload isUploadCRLRequest_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*UploadCRLRequest) Descriptor deprecated

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

Deprecated: Use UploadCRLRequest.ProtoReflect.Descriptor instead.

func (*UploadCRLRequest) GetCrlChunk

func (x *UploadCRLRequest) GetCrlChunk() []byte

func (*UploadCRLRequest) GetMetadata

func (x *UploadCRLRequest) GetMetadata() *CRLMetadata

func (*UploadCRLRequest) GetPayload

func (m *UploadCRLRequest) GetPayload() isUploadCRLRequest_Payload

func (*UploadCRLRequest) ProtoMessage

func (*UploadCRLRequest) ProtoMessage()

func (*UploadCRLRequest) ProtoReflect

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

func (*UploadCRLRequest) Reset

func (x *UploadCRLRequest) Reset()

func (*UploadCRLRequest) String

func (x *UploadCRLRequest) String() string

type UploadCRLRequest_CrlChunk

type UploadCRLRequest_CrlChunk struct {
	CrlChunk []byte `protobuf:"bytes,2,opt,name=crlChunk,proto3,oneof"`
}

type UploadCRLRequest_Metadata

type UploadCRLRequest_Metadata struct {
	Metadata *CRLMetadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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