eason

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EasonNamingService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.naming_server.eason.EasonNamingService",
	HandlerType: (*EasonNamingServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterServer",
			Handler:    _EasonNamingService_RegisterServer_Handler,
		},
		{
			MethodName: "UnRegisterServer",
			Handler:    _EasonNamingService_UnRegisterServer_Handler,
		},
		{
			MethodName: "DiscoverServer",
			Handler:    _EasonNamingService_DiscoverServer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/eason/eason.proto",
}

EasonNamingService_ServiceDesc is the grpc.ServiceDesc for EasonNamingService 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_api_eason_eason_proto protoreflect.FileDescriptor

Functions

func RegisterEasonNamingServiceServer

func RegisterEasonNamingServiceServer(s grpc.ServiceRegistrar, srv EasonNamingServiceServer)

Types

type DiscoverServerReq

type DiscoverServerReq struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	SvrName   string `protobuf:"bytes,2,opt,name=svr_name,json=svrName,proto3" json:"svr_name,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscoverServerReq) Descriptor deprecated

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

Deprecated: Use DiscoverServerReq.ProtoReflect.Descriptor instead.

func (*DiscoverServerReq) GetNamespace

func (x *DiscoverServerReq) GetNamespace() string

func (*DiscoverServerReq) GetSvrName

func (x *DiscoverServerReq) GetSvrName() string

func (*DiscoverServerReq) ProtoMessage

func (*DiscoverServerReq) ProtoMessage()

func (*DiscoverServerReq) ProtoReflect

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

func (*DiscoverServerReq) Reset

func (x *DiscoverServerReq) Reset()

func (*DiscoverServerReq) String

func (x *DiscoverServerReq) String() string

type DiscoverServerResp

type DiscoverServerResp struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Ip   string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscoverServerResp) Descriptor deprecated

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

Deprecated: Use DiscoverServerResp.ProtoReflect.Descriptor instead.

func (*DiscoverServerResp) GetCode

func (x *DiscoverServerResp) GetCode() uint32

func (*DiscoverServerResp) GetIp

func (x *DiscoverServerResp) GetIp() string

func (*DiscoverServerResp) GetMsg

func (x *DiscoverServerResp) GetMsg() string

func (*DiscoverServerResp) GetPort

func (x *DiscoverServerResp) GetPort() uint32

func (*DiscoverServerResp) ProtoMessage

func (*DiscoverServerResp) ProtoMessage()

func (*DiscoverServerResp) ProtoReflect

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

func (*DiscoverServerResp) Reset

func (x *DiscoverServerResp) Reset()

func (*DiscoverServerResp) String

func (x *DiscoverServerResp) String() string

type EasonNamingServiceClient

type EasonNamingServiceClient interface {
	RegisterServer(ctx context.Context, in *RegisterServerReq, opts ...grpc.CallOption) (*RegisterServerResp, error)
	UnRegisterServer(ctx context.Context, in *UnRegisterServerReq, opts ...grpc.CallOption) (*UnRegisterServerResp, error)
	DiscoverServer(ctx context.Context, in *DiscoverServerReq, opts ...grpc.CallOption) (*DiscoverServerResp, error)
}

EasonNamingServiceClient is the client API for EasonNamingService 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.

type EasonNamingServiceServer

type EasonNamingServiceServer interface {
	RegisterServer(context.Context, *RegisterServerReq) (*RegisterServerResp, error)
	UnRegisterServer(context.Context, *UnRegisterServerReq) (*UnRegisterServerResp, error)
	DiscoverServer(context.Context, *DiscoverServerReq) (*DiscoverServerResp, error)
	// contains filtered or unexported methods
}

EasonNamingServiceServer is the server API for EasonNamingService service. All implementations must embed UnimplementedEasonNamingServiceServer for forward compatibility

type RegisterServerReq

type RegisterServerReq struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	SvrName   string `protobuf:"bytes,2,opt,name=svr_name,json=svrName,proto3" json:"svr_name,omitempty"`
	Addr      string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterServerReq) Descriptor deprecated

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

Deprecated: Use RegisterServerReq.ProtoReflect.Descriptor instead.

func (*RegisterServerReq) GetAddr

func (x *RegisterServerReq) GetAddr() string

func (*RegisterServerReq) GetNamespace

func (x *RegisterServerReq) GetNamespace() string

func (*RegisterServerReq) GetSvrName

func (x *RegisterServerReq) GetSvrName() string

func (*RegisterServerReq) ProtoMessage

func (*RegisterServerReq) ProtoMessage()

func (*RegisterServerReq) ProtoReflect

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

func (*RegisterServerReq) Reset

func (x *RegisterServerReq) Reset()

func (*RegisterServerReq) String

func (x *RegisterServerReq) String() string

type RegisterServerResp

type RegisterServerResp struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterServerResp) Descriptor deprecated

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

Deprecated: Use RegisterServerResp.ProtoReflect.Descriptor instead.

func (*RegisterServerResp) GetCode

func (x *RegisterServerResp) GetCode() uint32

func (*RegisterServerResp) GetMsg

func (x *RegisterServerResp) GetMsg() string

func (*RegisterServerResp) ProtoMessage

func (*RegisterServerResp) ProtoMessage()

func (*RegisterServerResp) ProtoReflect

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

func (*RegisterServerResp) Reset

func (x *RegisterServerResp) Reset()

func (*RegisterServerResp) String

func (x *RegisterServerResp) String() string

type UnRegisterServerReq

type UnRegisterServerReq struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	SvrName   string `protobuf:"bytes,2,opt,name=svr_name,json=svrName,proto3" json:"svr_name,omitempty"`
	Addr      string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*UnRegisterServerReq) Descriptor deprecated

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

Deprecated: Use UnRegisterServerReq.ProtoReflect.Descriptor instead.

func (*UnRegisterServerReq) GetAddr

func (x *UnRegisterServerReq) GetAddr() string

func (*UnRegisterServerReq) GetNamespace

func (x *UnRegisterServerReq) GetNamespace() string

func (*UnRegisterServerReq) GetSvrName

func (x *UnRegisterServerReq) GetSvrName() string

func (*UnRegisterServerReq) ProtoMessage

func (*UnRegisterServerReq) ProtoMessage()

func (*UnRegisterServerReq) ProtoReflect

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

func (*UnRegisterServerReq) Reset

func (x *UnRegisterServerReq) Reset()

func (*UnRegisterServerReq) String

func (x *UnRegisterServerReq) String() string

type UnRegisterServerResp

type UnRegisterServerResp struct {
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*UnRegisterServerResp) Descriptor deprecated

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

Deprecated: Use UnRegisterServerResp.ProtoReflect.Descriptor instead.

func (*UnRegisterServerResp) GetCode

func (x *UnRegisterServerResp) GetCode() uint32

func (*UnRegisterServerResp) GetMsg

func (x *UnRegisterServerResp) GetMsg() string

func (*UnRegisterServerResp) ProtoMessage

func (*UnRegisterServerResp) ProtoMessage()

func (*UnRegisterServerResp) ProtoReflect

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

func (*UnRegisterServerResp) Reset

func (x *UnRegisterServerResp) Reset()

func (*UnRegisterServerResp) String

func (x *UnRegisterServerResp) String() string

type UnimplementedEasonNamingServiceServer

type UnimplementedEasonNamingServiceServer struct {
}

UnimplementedEasonNamingServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEasonNamingServiceServer) DiscoverServer

func (UnimplementedEasonNamingServiceServer) RegisterServer

func (UnimplementedEasonNamingServiceServer) UnRegisterServer

type UnsafeEasonNamingServiceServer

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

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

Jump to

Keyboard shortcuts

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