rpc

package
v1.0.6-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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