Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
- type PublisherClient
- type PublisherServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetDer() []byte
- func (x *Request) GetKind() SubmissionType
- func (x *Request) GetLogPublicKey() string
- func (x *Request) GetLogURL() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Result
- type SubmissionType
- func (SubmissionType) Descriptor() protoreflect.EnumDescriptor
- func (x SubmissionType) Enum() *SubmissionType
- func (SubmissionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubmissionType) Number() protoreflect.EnumNumber
- func (x SubmissionType) String() string
- func (SubmissionType) Type() protoreflect.EnumType
- type UnimplementedPublisherServer
- type UnsafePublisherServer
Constants ¶
const (
Publisher_SubmitToSingleCTWithResult_FullMethodName = "/Publisher/SubmitToSingleCTWithResult"
)
Variables ¶
var ( SubmissionType_name = map[int32]string{ 0: "unknown", 1: "sct", 2: "info", 3: "final", } SubmissionType_value = map[string]int32{ "unknown": 0, "sct": 1, "info": 2, "final": 3, } )
Enum value maps for SubmissionType.
var File_publisher_proto protoreflect.FileDescriptor
var Publisher_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Publisher", HandlerType: (*PublisherServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SubmitToSingleCTWithResult", Handler: _Publisher_SubmitToSingleCTWithResult_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "publisher.proto", }
Publisher_ServiceDesc is the grpc.ServiceDesc for Publisher service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPublisherServer ¶
func RegisterPublisherServer(s grpc.ServiceRegistrar, srv PublisherServer)
Types ¶
type PublisherClient ¶
type PublisherClient interface {
SubmitToSingleCTWithResult(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error)
}
PublisherClient is the client API for Publisher 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 NewPublisherClient ¶
func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient
type PublisherServer ¶
type PublisherServer interface { SubmitToSingleCTWithResult(context.Context, *Request) (*Result, error) // contains filtered or unexported methods }
PublisherServer is the server API for Publisher service. All implementations must embed UnimplementedPublisherServer for forward compatibility
type Request ¶
type Request struct { Der []byte `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"` LogURL string `protobuf:"bytes,2,opt,name=LogURL,proto3" json:"LogURL,omitempty"` LogPublicKey string `protobuf:"bytes,3,opt,name=LogPublicKey,proto3" json:"LogPublicKey,omitempty"` Kind SubmissionType `protobuf:"varint,5,opt,name=kind,proto3,enum=SubmissionType" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetKind ¶
func (x *Request) GetKind() SubmissionType
func (*Request) GetLogPublicKey ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Sct []byte `protobuf:"bytes,1,opt,name=sct,proto3" json:"sct,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type SubmissionType ¶
type SubmissionType int32
const ( SubmissionType_unknown SubmissionType = 0 SubmissionType_sct SubmissionType = 1 // Submitting a precert with the intent of getting SCTs SubmissionType_info SubmissionType = 2 // Submitting a precert on a best-effort basis SubmissionType_final SubmissionType = 3 // Submitting a final cert on a best-effort basis )
func (SubmissionType) Descriptor ¶
func (SubmissionType) Descriptor() protoreflect.EnumDescriptor
func (SubmissionType) Enum ¶
func (x SubmissionType) Enum() *SubmissionType
func (SubmissionType) EnumDescriptor
deprecated
func (SubmissionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubmissionType.Descriptor instead.
func (SubmissionType) Number ¶
func (x SubmissionType) Number() protoreflect.EnumNumber
func (SubmissionType) String ¶
func (x SubmissionType) String() string
func (SubmissionType) Type ¶
func (SubmissionType) Type() protoreflect.EnumType
type UnimplementedPublisherServer ¶
type UnimplementedPublisherServer struct { }
UnimplementedPublisherServer must be embedded to have forward compatible implementations.
func (UnimplementedPublisherServer) SubmitToSingleCTWithResult ¶
type UnsafePublisherServer ¶
type UnsafePublisherServer interface {
// contains filtered or unexported methods
}
UnsafePublisherServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublisherServer will result in compilation errors.