mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
6c580e6bf2
* full docs update * update README * gofmt and goimports
198 lines
7.3 KiB
Go
Executable File
Generated
198 lines
7.3 KiB
Go
Executable File
Generated
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/cluster/services.proto
|
|
|
|
package prysm_internal_cluster
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type PrivateKeyRequest struct {
|
|
PodName string `protobuf:"bytes,1,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PrivateKeyRequest) Reset() { *m = PrivateKeyRequest{} }
|
|
func (m *PrivateKeyRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PrivateKeyRequest) ProtoMessage() {}
|
|
func (*PrivateKeyRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f118b0fcaa41cfbe, []int{0}
|
|
}
|
|
|
|
func (m *PrivateKeyRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PrivateKeyRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *PrivateKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PrivateKeyRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PrivateKeyRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PrivateKeyRequest.Merge(m, src)
|
|
}
|
|
func (m *PrivateKeyRequest) XXX_Size() int {
|
|
return xxx_messageInfo_PrivateKeyRequest.Size(m)
|
|
}
|
|
func (m *PrivateKeyRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PrivateKeyRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PrivateKeyRequest proto.InternalMessageInfo
|
|
|
|
func (m *PrivateKeyRequest) GetPodName() string {
|
|
if m != nil {
|
|
return m.PodName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PrivateKeyResponse struct {
|
|
PrivateKey []byte `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PrivateKeyResponse) Reset() { *m = PrivateKeyResponse{} }
|
|
func (m *PrivateKeyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PrivateKeyResponse) ProtoMessage() {}
|
|
func (*PrivateKeyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f118b0fcaa41cfbe, []int{1}
|
|
}
|
|
|
|
func (m *PrivateKeyResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PrivateKeyResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PrivateKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PrivateKeyResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PrivateKeyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PrivateKeyResponse.Merge(m, src)
|
|
}
|
|
func (m *PrivateKeyResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PrivateKeyResponse.Size(m)
|
|
}
|
|
func (m *PrivateKeyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PrivateKeyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PrivateKeyResponse proto.InternalMessageInfo
|
|
|
|
func (m *PrivateKeyResponse) GetPrivateKey() []byte {
|
|
if m != nil {
|
|
return m.PrivateKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*PrivateKeyRequest)(nil), "prysm.internal.cluster.PrivateKeyRequest")
|
|
proto.RegisterType((*PrivateKeyResponse)(nil), "prysm.internal.cluster.PrivateKeyResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proto/cluster/services.proto", fileDescriptor_f118b0fcaa41cfbe) }
|
|
|
|
var fileDescriptor_f118b0fcaa41cfbe = []byte{
|
|
// 182 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x29, 0x28, 0xca, 0x2f,
|
|
0xc9, 0xd7, 0x4f, 0xce, 0x29, 0x2d, 0x2e, 0x49, 0x2d, 0xd2, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c,
|
|
0x4e, 0x2d, 0xd6, 0x03, 0x0b, 0x0b, 0x89, 0x15, 0x14, 0x55, 0x16, 0xe7, 0xea, 0x65, 0xe6, 0x95,
|
|
0xa4, 0x16, 0xe5, 0x25, 0xe6, 0xe8, 0x41, 0x95, 0x29, 0xe9, 0x71, 0x09, 0x06, 0x14, 0x65, 0x96,
|
|
0x25, 0x96, 0xa4, 0x7a, 0xa7, 0x56, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x49, 0x72,
|
|
0x71, 0x14, 0xe4, 0xa7, 0xc4, 0xe7, 0x25, 0xe6, 0xa6, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x06,
|
|
0xb1, 0x17, 0xe4, 0xa7, 0xf8, 0x25, 0xe6, 0xa6, 0x2a, 0x99, 0x72, 0x09, 0x21, 0xab, 0x2f, 0x2e,
|
|
0xc8, 0xcf, 0x2b, 0x4e, 0x15, 0x92, 0xe7, 0xe2, 0x2e, 0x80, 0x88, 0xc6, 0x67, 0xa7, 0x56, 0x82,
|
|
0xf5, 0xf0, 0x04, 0x71, 0x15, 0xc0, 0x15, 0x1a, 0x95, 0x22, 0x5b, 0x13, 0x0c, 0x71, 0x9a, 0x50,
|
|
0x02, 0x17, 0x3b, 0xcc, 0x46, 0x4d, 0x3d, 0xec, 0xee, 0xd3, 0xc3, 0x70, 0x9c, 0x94, 0x16, 0x31,
|
|
0x4a, 0x21, 0xee, 0x4a, 0x62, 0x03, 0x7b, 0xde, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xb3, 0x09,
|
|
0xb6, 0x16, 0x1c, 0x01, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// PrivateKeyServiceClient is the client API for PrivateKeyService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type PrivateKeyServiceClient interface {
|
|
Request(ctx context.Context, in *PrivateKeyRequest, opts ...grpc.CallOption) (*PrivateKeyResponse, error)
|
|
}
|
|
|
|
type privateKeyServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewPrivateKeyServiceClient(cc *grpc.ClientConn) PrivateKeyServiceClient {
|
|
return &privateKeyServiceClient{cc}
|
|
}
|
|
|
|
func (c *privateKeyServiceClient) Request(ctx context.Context, in *PrivateKeyRequest, opts ...grpc.CallOption) (*PrivateKeyResponse, error) {
|
|
out := new(PrivateKeyResponse)
|
|
err := c.cc.Invoke(ctx, "/prysm.internal.cluster.PrivateKeyService/Request", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// PrivateKeyServiceServer is the server API for PrivateKeyService service.
|
|
type PrivateKeyServiceServer interface {
|
|
Request(context.Context, *PrivateKeyRequest) (*PrivateKeyResponse, error)
|
|
}
|
|
|
|
func RegisterPrivateKeyServiceServer(s *grpc.Server, srv PrivateKeyServiceServer) {
|
|
s.RegisterService(&_PrivateKeyService_serviceDesc, srv)
|
|
}
|
|
|
|
func _PrivateKeyService_Request_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PrivateKeyRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(PrivateKeyServiceServer).Request(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/prysm.internal.cluster.PrivateKeyService/Request",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(PrivateKeyServiceServer).Request(ctx, req.(*PrivateKeyRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _PrivateKeyService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "prysm.internal.cluster.PrivateKeyService",
|
|
HandlerType: (*PrivateKeyServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Request",
|
|
Handler: _PrivateKeyService_Request_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proto/cluster/services.proto",
|
|
}
|