170 lines
5.4 KiB
Go
170 lines
5.4 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: initialize.proto
|
||
|
|
||
|
/*
|
||
|
Package initialize is a generated protocol buffer package.
|
||
|
|
||
|
It is generated from these files:
|
||
|
initialize.proto
|
||
|
|
||
|
It has these top-level messages:
|
||
|
Empty
|
||
|
AgentInfo
|
||
|
InitResponse
|
||
|
*/
|
||
|
package initialize
|
||
|
|
||
|
import proto "github.com/golang/protobuf/proto"
|
||
|
import fmt "fmt"
|
||
|
import math "math"
|
||
|
|
||
|
import (
|
||
|
context "golang.org/x/net/context"
|
||
|
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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||
|
|
||
|
type Empty struct {
|
||
|
}
|
||
|
|
||
|
func (m *Empty) Reset() { *m = Empty{} }
|
||
|
func (m *Empty) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Empty) ProtoMessage() {}
|
||
|
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||
|
|
||
|
type AgentInfo struct {
|
||
|
AgentId string `protobuf:"bytes,1,opt,name=agentId" json:"agentId,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *AgentInfo) Reset() { *m = AgentInfo{} }
|
||
|
func (m *AgentInfo) String() string { return proto.CompactTextString(m) }
|
||
|
func (*AgentInfo) ProtoMessage() {}
|
||
|
func (*AgentInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||
|
|
||
|
func (m *AgentInfo) GetAgentId() string {
|
||
|
if m != nil {
|
||
|
return m.AgentId
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
type InitResponse struct {
|
||
|
SecretKey string `protobuf:"bytes,1,opt,name=secretKey" json:"secretKey,omitempty"`
|
||
|
}
|
||
|
|
||
|
func (m *InitResponse) Reset() { *m = InitResponse{} }
|
||
|
func (m *InitResponse) String() string { return proto.CompactTextString(m) }
|
||
|
func (*InitResponse) ProtoMessage() {}
|
||
|
func (*InitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||
|
|
||
|
func (m *InitResponse) GetSecretKey() string {
|
||
|
if m != nil {
|
||
|
return m.SecretKey
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*Empty)(nil), "Empty")
|
||
|
proto.RegisterType((*AgentInfo)(nil), "AgentInfo")
|
||
|
proto.RegisterType((*InitResponse)(nil), "InitResponse")
|
||
|
}
|
||
|
|
||
|
// 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
|
||
|
|
||
|
// Client API for Initializer service
|
||
|
|
||
|
type InitializerClient interface {
|
||
|
AgentStarting(ctx context.Context, in *AgentInfo, opts ...grpc.CallOption) (*InitResponse, error)
|
||
|
}
|
||
|
|
||
|
type initializerClient struct {
|
||
|
cc *grpc.ClientConn
|
||
|
}
|
||
|
|
||
|
func NewInitializerClient(cc *grpc.ClientConn) InitializerClient {
|
||
|
return &initializerClient{cc}
|
||
|
}
|
||
|
|
||
|
func (c *initializerClient) AgentStarting(ctx context.Context, in *AgentInfo, opts ...grpc.CallOption) (*InitResponse, error) {
|
||
|
out := new(InitResponse)
|
||
|
err := grpc.Invoke(ctx, "/Initializer/agentStarting", in, out, c.cc, opts...)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return out, nil
|
||
|
}
|
||
|
|
||
|
// Server API for Initializer service
|
||
|
|
||
|
type InitializerServer interface {
|
||
|
AgentStarting(context.Context, *AgentInfo) (*InitResponse, error)
|
||
|
}
|
||
|
|
||
|
func RegisterInitializerServer(s *grpc.Server, srv InitializerServer) {
|
||
|
s.RegisterService(&_Initializer_serviceDesc, srv)
|
||
|
}
|
||
|
|
||
|
func _Initializer_AgentStarting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
in := new(AgentInfo)
|
||
|
if err := dec(in); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
if interceptor == nil {
|
||
|
return srv.(InitializerServer).AgentStarting(ctx, in)
|
||
|
}
|
||
|
info := &grpc.UnaryServerInfo{
|
||
|
Server: srv,
|
||
|
FullMethod: "/Initializer/AgentStarting",
|
||
|
}
|
||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
return srv.(InitializerServer).AgentStarting(ctx, req.(*AgentInfo))
|
||
|
}
|
||
|
return interceptor(ctx, in, info, handler)
|
||
|
}
|
||
|
|
||
|
var _Initializer_serviceDesc = grpc.ServiceDesc{
|
||
|
ServiceName: "Initializer",
|
||
|
HandlerType: (*InitializerServer)(nil),
|
||
|
Methods: []grpc.MethodDesc{
|
||
|
{
|
||
|
MethodName: "agentStarting",
|
||
|
Handler: _Initializer_AgentStarting_Handler,
|
||
|
},
|
||
|
},
|
||
|
Streams: []grpc.StreamDesc{},
|
||
|
Metadata: "initialize.proto",
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("initialize.proto", fileDescriptor0) }
|
||
|
|
||
|
var fileDescriptor0 = []byte{
|
||
|
// 153 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc8, 0xcc, 0xcb, 0x2c,
|
||
|
0xc9, 0x4c, 0xcc, 0xc9, 0xac, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x62, 0xe7, 0x62,
|
||
|
0x75, 0xcd, 0x2d, 0x28, 0xa9, 0x54, 0x52, 0xe5, 0xe2, 0x74, 0x4c, 0x4f, 0xcd, 0x2b, 0xf1, 0xcc,
|
||
|
0x4b, 0xcb, 0x17, 0x92, 0xe0, 0x62, 0x4f, 0x04, 0x73, 0x52, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38,
|
||
|
0x83, 0x60, 0x5c, 0x25, 0x1d, 0x2e, 0x1e, 0xcf, 0xbc, 0xcc, 0x92, 0xa0, 0xd4, 0xe2, 0x82, 0xfc,
|
||
|
0xbc, 0xe2, 0x54, 0x21, 0x19, 0x2e, 0xce, 0xe2, 0xd4, 0xe4, 0xa2, 0xd4, 0x12, 0xef, 0xd4, 0x4a,
|
||
|
0xa8, 0x5a, 0x84, 0x80, 0x91, 0x35, 0x17, 0xb7, 0x27, 0xdc, 0xc6, 0x22, 0x21, 0x1d, 0x2e, 0x5e,
|
||
|
0xb0, 0x39, 0xc1, 0x25, 0x89, 0x45, 0x25, 0x99, 0x79, 0xe9, 0x42, 0x5c, 0x7a, 0x70, 0x3b, 0xa5,
|
||
|
0x78, 0xf5, 0x90, 0x0d, 0x56, 0x62, 0x48, 0x62, 0x03, 0xbb, 0xd0, 0x18, 0x10, 0x00, 0x00, 0xff,
|
||
|
0xff, 0x10, 0x56, 0xdb, 0xad, 0xb5, 0x00, 0x00, 0x00,
|
||
|
}
|