Documentation ¶
Index ¶
- func RegisterIPProviderServiceServer(s *grpc.Server, srv IPProviderServiceServer)
- type AssignIPReply
- func (*AssignIPReply) Descriptor() ([]byte, []int)
- func (m *AssignIPReply) GetMsg() string
- func (m *AssignIPReply) GetSuccess() bool
- func (*AssignIPReply) ProtoMessage()
- func (m *AssignIPReply) Reset()
- func (m *AssignIPReply) String() string
- func (m *AssignIPReply) XXX_DiscardUnknown()
- func (m *AssignIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AssignIPReply) XXX_Merge(src proto.Message)
- func (m *AssignIPReply) XXX_Size() int
- func (m *AssignIPReply) XXX_Unmarshal(b []byte) error
- type AssignIPRequest
- func (*AssignIPRequest) Descriptor() ([]byte, []int)
- func (m *AssignIPRequest) GetIPAddress() string
- func (m *AssignIPRequest) GetNodeName() string
- func (*AssignIPRequest) ProtoMessage()
- func (m *AssignIPRequest) Reset()
- func (m *AssignIPRequest) String() string
- func (m *AssignIPRequest) XXX_DiscardUnknown()
- func (m *AssignIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AssignIPRequest) XXX_Merge(src proto.Message)
- func (m *AssignIPRequest) XXX_Size() int
- func (m *AssignIPRequest) XXX_Unmarshal(b []byte) error
- type IPProviderServiceClient
- type IPProviderServiceServer
- type UnAssignIPReply
- func (*UnAssignIPReply) Descriptor() ([]byte, []int)
- func (m *UnAssignIPReply) GetMsg() string
- func (m *UnAssignIPReply) GetSuccess() bool
- func (*UnAssignIPReply) ProtoMessage()
- func (m *UnAssignIPReply) Reset()
- func (m *UnAssignIPReply) String() string
- func (m *UnAssignIPReply) XXX_DiscardUnknown()
- func (m *UnAssignIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnAssignIPReply) XXX_Merge(src proto.Message)
- func (m *UnAssignIPReply) XXX_Size() int
- func (m *UnAssignIPReply) XXX_Unmarshal(b []byte) error
- type UnAssignIPRequest
- func (*UnAssignIPRequest) Descriptor() ([]byte, []int)
- func (m *UnAssignIPRequest) GetIPAddress() string
- func (m *UnAssignIPRequest) GetNodeName() string
- func (*UnAssignIPRequest) ProtoMessage()
- func (m *UnAssignIPRequest) Reset()
- func (m *UnAssignIPRequest) String() string
- func (m *UnAssignIPRequest) XXX_DiscardUnknown()
- func (m *UnAssignIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UnAssignIPRequest) XXX_Merge(src proto.Message)
- func (m *UnAssignIPRequest) XXX_Size() int
- func (m *UnAssignIPRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterIPProviderServiceServer ¶
func RegisterIPProviderServiceServer(s *grpc.Server, srv IPProviderServiceServer)
Types ¶
type AssignIPReply ¶
type AssignIPReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AssignIPReply) Descriptor ¶
func (*AssignIPReply) Descriptor() ([]byte, []int)
func (*AssignIPReply) GetMsg ¶
func (m *AssignIPReply) GetMsg() string
func (*AssignIPReply) GetSuccess ¶
func (m *AssignIPReply) GetSuccess() bool
func (*AssignIPReply) ProtoMessage ¶
func (*AssignIPReply) ProtoMessage()
func (*AssignIPReply) Reset ¶
func (m *AssignIPReply) Reset()
func (*AssignIPReply) String ¶
func (m *AssignIPReply) String() string
func (*AssignIPReply) XXX_DiscardUnknown ¶
func (m *AssignIPReply) XXX_DiscardUnknown()
func (*AssignIPReply) XXX_Marshal ¶
func (m *AssignIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssignIPReply) XXX_Merge ¶
func (dst *AssignIPReply) XXX_Merge(src proto.Message)
func (*AssignIPReply) XXX_Size ¶
func (m *AssignIPReply) XXX_Size() int
func (*AssignIPReply) XXX_Unmarshal ¶
func (m *AssignIPReply) XXX_Unmarshal(b []byte) error
type AssignIPRequest ¶
type AssignIPRequest struct { NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` IPAddress string `protobuf:"bytes,2,opt,name=IP_address,json=IPAddress,proto3" json:"IP_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AssignIPRequest) Descriptor ¶
func (*AssignIPRequest) Descriptor() ([]byte, []int)
func (*AssignIPRequest) GetIPAddress ¶
func (m *AssignIPRequest) GetIPAddress() string
func (*AssignIPRequest) GetNodeName ¶
func (m *AssignIPRequest) GetNodeName() string
func (*AssignIPRequest) ProtoMessage ¶
func (*AssignIPRequest) ProtoMessage()
func (*AssignIPRequest) Reset ¶
func (m *AssignIPRequest) Reset()
func (*AssignIPRequest) String ¶
func (m *AssignIPRequest) String() string
func (*AssignIPRequest) XXX_DiscardUnknown ¶
func (m *AssignIPRequest) XXX_DiscardUnknown()
func (*AssignIPRequest) XXX_Marshal ¶
func (m *AssignIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssignIPRequest) XXX_Merge ¶
func (dst *AssignIPRequest) XXX_Merge(src proto.Message)
func (*AssignIPRequest) XXX_Size ¶
func (m *AssignIPRequest) XXX_Size() int
func (*AssignIPRequest) XXX_Unmarshal ¶
func (m *AssignIPRequest) XXX_Unmarshal(b []byte) error
type IPProviderServiceClient ¶
type IPProviderServiceClient interface { AssignIP(ctx context.Context, in *AssignIPRequest, opts ...grpc.CallOption) (*AssignIPReply, error) UnAssignIP(ctx context.Context, in *UnAssignIPRequest, opts ...grpc.CallOption) (*UnAssignIPReply, error) }
IPProviderServiceClient is the client API for IPProviderService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIPProviderServiceClient ¶
func NewIPProviderServiceClient(cc *grpc.ClientConn) IPProviderServiceClient
type IPProviderServiceServer ¶
type IPProviderServiceServer interface { AssignIP(context.Context, *AssignIPRequest) (*AssignIPReply, error) UnAssignIP(context.Context, *UnAssignIPRequest) (*UnAssignIPReply, error) }
IPProviderServiceServer is the server API for IPProviderService service.
type UnAssignIPReply ¶
type UnAssignIPReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnAssignIPReply) Descriptor ¶
func (*UnAssignIPReply) Descriptor() ([]byte, []int)
func (*UnAssignIPReply) GetMsg ¶
func (m *UnAssignIPReply) GetMsg() string
func (*UnAssignIPReply) GetSuccess ¶
func (m *UnAssignIPReply) GetSuccess() bool
func (*UnAssignIPReply) ProtoMessage ¶
func (*UnAssignIPReply) ProtoMessage()
func (*UnAssignIPReply) Reset ¶
func (m *UnAssignIPReply) Reset()
func (*UnAssignIPReply) String ¶
func (m *UnAssignIPReply) String() string
func (*UnAssignIPReply) XXX_DiscardUnknown ¶
func (m *UnAssignIPReply) XXX_DiscardUnknown()
func (*UnAssignIPReply) XXX_Marshal ¶
func (m *UnAssignIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnAssignIPReply) XXX_Merge ¶
func (dst *UnAssignIPReply) XXX_Merge(src proto.Message)
func (*UnAssignIPReply) XXX_Size ¶
func (m *UnAssignIPReply) XXX_Size() int
func (*UnAssignIPReply) XXX_Unmarshal ¶
func (m *UnAssignIPReply) XXX_Unmarshal(b []byte) error
type UnAssignIPRequest ¶
type UnAssignIPRequest struct { NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` IPAddress string `protobuf:"bytes,2,opt,name=IP_address,json=IPAddress,proto3" json:"IP_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UnAssignIPRequest) Descriptor ¶
func (*UnAssignIPRequest) Descriptor() ([]byte, []int)
func (*UnAssignIPRequest) GetIPAddress ¶
func (m *UnAssignIPRequest) GetIPAddress() string
func (*UnAssignIPRequest) GetNodeName ¶
func (m *UnAssignIPRequest) GetNodeName() string
func (*UnAssignIPRequest) ProtoMessage ¶
func (*UnAssignIPRequest) ProtoMessage()
func (*UnAssignIPRequest) Reset ¶
func (m *UnAssignIPRequest) Reset()
func (*UnAssignIPRequest) String ¶
func (m *UnAssignIPRequest) String() string
func (*UnAssignIPRequest) XXX_DiscardUnknown ¶
func (m *UnAssignIPRequest) XXX_DiscardUnknown()
func (*UnAssignIPRequest) XXX_Marshal ¶
func (m *UnAssignIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnAssignIPRequest) XXX_Merge ¶
func (dst *UnAssignIPRequest) XXX_Merge(src proto.Message)
func (*UnAssignIPRequest) XXX_Size ¶
func (m *UnAssignIPRequest) XXX_Size() int
func (*UnAssignIPRequest) XXX_Unmarshal ¶
func (m *UnAssignIPRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.