binding

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EipAgent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protoc.EipAgent",
	HandlerType: (*EipAgentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EipOperate",
			Handler:    _EipAgent_EipOperate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/protoc/binding/eip_bind.proto",
}

EipAgent_ServiceDesc is the grpc.ServiceDesc for EipAgent service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_protoc_binding_eip_bind_proto protoreflect.FileDescriptor

Functions

func RegisterEipAgentServer

func RegisterEipAgentServer(s grpc.ServiceRegistrar, srv EipAgentServer)

Types

type EipAgentClient

type EipAgentClient interface {
	EipOperate(ctx context.Context, in *EipOpReq, opts ...grpc.CallOption) (*EipOpRsp, error)
}

EipAgentClient is the client API for EipAgent 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 NewEipAgentClient

func NewEipAgentClient(cc grpc.ClientConnInterface) EipAgentClient

type EipAgentServer

type EipAgentServer interface {
	EipOperate(context.Context, *EipOpReq) (*EipOpRsp, error)
	// contains filtered or unexported methods
}

EipAgentServer is the server API for EipAgent service. All implementations must embed UnimplementedEipAgentServer for forward compatibility

type EipOpReq

type EipOpReq struct {
	Action  string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	EipAddr string `protobuf:"bytes,2,opt,name=eipAddr,proto3" json:"eipAddr,omitempty"`
	VmiAddr string `protobuf:"bytes,3,opt,name=vmiAddr,proto3" json:"vmiAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*EipOpReq) Descriptor deprecated

func (*EipOpReq) Descriptor() ([]byte, []int)

Deprecated: Use EipOpReq.ProtoReflect.Descriptor instead.

func (*EipOpReq) GetAction

func (x *EipOpReq) GetAction() string

func (*EipOpReq) GetEipAddr

func (x *EipOpReq) GetEipAddr() string

func (*EipOpReq) GetVmiAddr

func (x *EipOpReq) GetVmiAddr() string

func (*EipOpReq) ProtoMessage

func (*EipOpReq) ProtoMessage()

func (*EipOpReq) ProtoReflect

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

func (*EipOpReq) Reset

func (x *EipOpReq) Reset()

func (*EipOpReq) String

func (x *EipOpReq) String() string

type EipOpRsp

type EipOpRsp struct {
	Result   string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	ErrPhase int32  `protobuf:"varint,2,opt,name=errPhase,proto3" json:"errPhase,omitempty"`
	// contains filtered or unexported fields
}

func (*EipOpRsp) Descriptor deprecated

func (*EipOpRsp) Descriptor() ([]byte, []int)

Deprecated: Use EipOpRsp.ProtoReflect.Descriptor instead.

func (*EipOpRsp) GetErrPhase

func (x *EipOpRsp) GetErrPhase() int32

func (*EipOpRsp) GetResult

func (x *EipOpRsp) GetResult() string

func (*EipOpRsp) ProtoMessage

func (*EipOpRsp) ProtoMessage()

func (*EipOpRsp) ProtoReflect

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

func (*EipOpRsp) Reset

func (x *EipOpRsp) Reset()

func (*EipOpRsp) String

func (x *EipOpRsp) String() string

type UnimplementedEipAgentServer

type UnimplementedEipAgentServer struct {
}

UnimplementedEipAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedEipAgentServer) EipOperate

type UnsafeEipAgentServer

type UnsafeEipAgentServer interface {
	// contains filtered or unexported methods
}

UnsafeEipAgentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EipAgentServer will result in compilation errors.

Jump to

Keyboard shortcuts

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