Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CommonHeaders(ctx context.Context) http.Header
- func (c *Client) CreateSchemas(ctx context.Context, domain, project, serviceID string, schemas []*pb.Schema) *scerr.Error
- func (c *Client) CreateService(ctx context.Context, domain, project string, service *pb.MicroService) (string, *scerr.Error)
- func (c *Client) DeleteSchema(ctx context.Context, domain, project, serviceID string, schemaID string) *scerr.Error
- func (c *Client) DeleteService(ctx context.Context, domain, project, serviceID string) *scerr.Error
- func (c *Client) DiscoveryInstances(ctx context.Context, ...) ([]*registry.MicroServiceInstance, *scerr.Error)
- func (c *Client) GetClusters(ctx context.Context) (types.Clusters, *scerr.Error)
- func (c *Client) GetInstanceByInstanceID(ctx context.Context, ...) (*registry.MicroServiceInstance, *scerr.Error)
- func (c *Client) GetInstancesByServiceID(ctx context.Context, domain, project, providerID, consumerID string) ([]*registry.MicroServiceInstance, *scerr.Error)
- func (c *Client) GetScCache(ctx context.Context) (*model.Cache, *scerr.Error)
- func (c *Client) GetScVersion(ctx context.Context) (*version.Set, *scerr.Error)
- func (c *Client) GetSchemaBySchemaID(ctx context.Context, domain, project, serviceID, schemaID string) (*pb.Schema, *scerr.Error)
- func (c *Client) GetSchemasByServiceID(ctx context.Context, domain, project, serviceID string) ([]*pb.Schema, *scerr.Error)
- func (c *Client) HealthCheck(ctx context.Context) *scerr.Error
- func (c *Client) Heartbeat(ctx context.Context, domain, project, serviceID, instanceID string) *scerr.Error
- func (c *Client) HeartbeatSet(ctx context.Context, domain, project string, ...) ([]*registry.InstanceHbRst, *scerr.Error)
- func (c *Client) RegisterInstance(ctx context.Context, domain, project, serviceID string, ...) (string, *scerr.Error)
- func (c *Client) ServiceExistence(ctx context.Context, domain, project string, ...) (string, *scerr.Error)
- func (c *Client) UnregisterInstance(ctx context.Context, domain, project, serviceID, instanceID string) *scerr.Error
- func (c *Client) UpdateSchema(ctx context.Context, domain, project, serviceID string, schemaID string, ...) *scerr.Error
- func (c *Client) Watch(ctx context.Context, domain, project, selfServiceID string, ...) *scerr.Error
- type Config
- type LBClient
Constants ¶
View Source
const (
QueryGlobal = "global"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewSCClient ¶
func (*Client) CreateSchemas ¶
func (*Client) CreateService ¶
func (*Client) DeleteSchema ¶
func (*Client) DeleteService ¶
func (*Client) DiscoveryInstances ¶
func (*Client) GetClusters ¶
func (*Client) GetInstanceByInstanceID ¶
func (*Client) GetInstancesByServiceID ¶
func (*Client) GetScCache ¶
func (*Client) GetScVersion ¶
func (*Client) GetSchemaBySchemaID ¶
func (*Client) GetSchemasByServiceID ¶
func (*Client) HeartbeatSet ¶
func (c *Client) HeartbeatSet(ctx context.Context, domain, project string, instances ...*registry.HeartbeatSetElement) ([]*registry.InstanceHbRst, *scerr.Error)
func (*Client) RegisterInstance ¶
func (*Client) ServiceExistence ¶
func (*Client) UnregisterInstance ¶
func (*Client) UpdateSchema ¶
type Config ¶
type Config struct { rest.URLClientOption Name string Endpoints []string // TODO Expandable header not only token header Token string CertKeyPWDPath string }
func (*Config) Merge ¶
func (cfg *Config) Merge() rest.URLClientOption
type LBClient ¶
type LBClient struct { *rest.URLClient Retries int LB lb.LoadBalancer }
func NewLBClient ¶
func NewLBClient(endpoints []string, options rest.URLClientOption) (*LBClient, error)
func (*LBClient) RestDoWithContext ¶
Click to show internal directories.
Click to hide internal directories.