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.PolarisHeartbeatGRPC_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) GetServiceContract(ctx context.Context, req *apiservice.ServiceContract) (*apiservice.Response, 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)
- func (g *DiscoverServer) ReportServiceContract(ctx context.Context, in *apiservice.ServiceContract) (*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.PolarisHeartbeatGRPC_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) GetServiceContract ¶ added in v1.18.0
func (g *DiscoverServer) GetServiceContract(ctx context.Context, req *apiservice.ServiceContract) (*apiservice.Response, error)
查询服务契约
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 客户端上报
func (*DiscoverServer) ReportServiceContract ¶ added in v1.18.0
func (g *DiscoverServer) ReportServiceContract(ctx context.Context, in *apiservice.ServiceContract) (*apiservice.Response, error)
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.