proto

package
v0.0.0-...-53f3cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MPL-2.0 Imports: 8 Imported by: 92

Documentation

Index

Constants

View Source
const (
	Publisher_SubmitToSingleCTWithResult_FullMethodName = "/Publisher/SubmitToSingleCTWithResult"
)

Variables

View Source
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.

View Source
var File_publisher_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetDer

func (x *Request) GetDer() []byte

func (*Request) GetKind

func (x *Request) GetKind() SubmissionType

func (*Request) GetLogPublicKey

func (x *Request) GetLogPublicKey() string

func (*Request) GetLogURL

func (x *Request) GetLogURL() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetSct

func (x *Result) GetSct() []byte

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

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) Enum

func (x SubmissionType) Enum() *SubmissionType

func (SubmissionType) EnumDescriptor deprecated

func (SubmissionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubmissionType.Descriptor instead.

func (SubmissionType) Number

func (SubmissionType) String

func (x SubmissionType) String() string

func (SubmissionType) Type

type UnimplementedPublisherServer

type UnimplementedPublisherServer struct {
}

UnimplementedPublisherServer must be embedded to have forward compatible implementations.

func (UnimplementedPublisherServer) SubmitToSingleCTWithResult

func (UnimplementedPublisherServer) SubmitToSingleCTWithResult(context.Context, *Request) (*Result, error)

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.

Jump to

Keyboard shortcuts

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