Documentation ¶
Index ¶
- func ParseGrpcOperator(ctx context.Context) string
- type DiscoverServer
- func (g *DiscoverServer) BatchDelHeartbeat(ctx context.Context, req *apiservice.DelHeartbeatsRequest) (*apiservice.DelHeartbeatsResponse, error)
- func (g *DiscoverServer) BatchGetHeartbeat(ctx context.Context, req *apiservice.GetHeartbeatsRequest) (*apiservice.GetHeartbeatsResponse, error)
- func (g *DiscoverServer) BatchHeartbeat(svr apiservice.PolarisGRPC_BatchHeartbeatServer) error
- func (g *DiscoverServer) DeregisterInstance(ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
- func (g *DiscoverServer) Discover(server apiservice.PolarisGRPC_DiscoverServer) error
- func (g *DiscoverServer) Heartbeat(ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
- func (g *DiscoverServer) RegisterInstance(ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
- func (g *DiscoverServer) ReportClient(ctx context.Context, in *apiservice.Client) (*apiservice.Response, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiscoverServer ¶
type DiscoverServer struct {
// contains filtered or unexported fields
}
func NewDiscoverServer ¶
func NewDiscoverServer(options ...Option) *DiscoverServer
func (*DiscoverServer) BatchDelHeartbeat ¶ added in v1.17.0
func (g *DiscoverServer) BatchDelHeartbeat(ctx context.Context, req *apiservice.DelHeartbeatsRequest) (*apiservice.DelHeartbeatsResponse, error)
BatchDelHeartbeat 批量删除心跳记录
func (*DiscoverServer) BatchGetHeartbeat ¶ added in v1.17.0
func (g *DiscoverServer) BatchGetHeartbeat(ctx context.Context, req *apiservice.GetHeartbeatsRequest) (*apiservice.GetHeartbeatsResponse, error)
BatchGetHeartbeat 批量获取心跳记录
func (*DiscoverServer) BatchHeartbeat ¶ added in v1.17.0
func (g *DiscoverServer) BatchHeartbeat(svr apiservice.PolarisGRPC_BatchHeartbeatServer) error
BatchHeartbeat 批量上报心跳
func (*DiscoverServer) DeregisterInstance ¶
func (g *DiscoverServer) DeregisterInstance( ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
DeregisterInstance 反注册服务实例
func (*DiscoverServer) Discover ¶
func (g *DiscoverServer) Discover(server apiservice.PolarisGRPC_DiscoverServer) error
Discover 统一发现接口
func (*DiscoverServer) Heartbeat ¶
func (g *DiscoverServer) Heartbeat(ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
Heartbeat 上报心跳
func (*DiscoverServer) RegisterInstance ¶
func (g *DiscoverServer) RegisterInstance(ctx context.Context, in *apiservice.Instance) (*apiservice.Response, error)
RegisterInstance 注册服务实例
func (*DiscoverServer) ReportClient ¶
func (g *DiscoverServer) ReportClient(ctx context.Context, in *apiservice.Client) (*apiservice.Response, error)
ReportClient 客户端上报
type Option ¶
type Option func(s *DiscoverServer)
func WithAllowAccess ¶
func WithHealthCheckerServer ¶
func WithHealthCheckerServer(svr *healthcheck.Server) Option
func WithNamingServer ¶
func WithNamingServer(svr service.DiscoverServer) Option
Click to show internal directories.
Click to hide internal directories.