client

package
v0.0.0-...-2588cc6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DispatcherClient

type DispatcherClient struct {
	// contains filtered or unexported fields
}

func NewDispatcherClient

func NewDispatcherClient(addr string) (*DispatcherClient, error)

func (*DispatcherClient) Close

func (c *DispatcherClient) Close()

func (*DispatcherClient) NotifyTenantHasUpdate

func (c *DispatcherClient) NotifyTenantHasUpdate(ctx context.Context, req *pb.HasNewChangeReq) error

func (*DispatcherClient) ScheduleNewTenant

func (c *DispatcherClient) ScheduleNewTenant(ctx context.Context, req *pb.TenantTasksReq) error

type MetaServerClient

type MetaServerClient struct {
	// contains filtered or unexported fields
}

Todo: handle meta-server scale-out and scale-in cases, dynamically add or remove meta-server addr.

func NewMetaServerClient

func NewMetaServerClient(addrs []string) (*MetaServerClient, error)

func (*MetaServerClient) Close

func (c *MetaServerClient) Close()

func (*MetaServerClient) FetchSchemaRegistryAddr

func (c *MetaServerClient) FetchSchemaRegistryAddr(ctx context.Context, req *pb.FetchSchemaRegistryAddrReq) (string, error)

func (*MetaServerClient) FetchSorterAddr

func (c *MetaServerClient) FetchSorterAddr(ctx context.Context, req *pb.FetchRangeSorterAddrReq) (string, error)

type SchemaRegistryClient

type SchemaRegistryClient struct {
	// contains filtered or unexported fields
}

func NewSchemaRegistryClient

func NewSchemaRegistryClient(addr string) (*SchemaRegistryClient, error)

func (*SchemaRegistryClient) Close

func (c *SchemaRegistryClient) Close()

func (*SchemaRegistryClient) RefreshAddr

func (c *SchemaRegistryClient) RefreshAddr(newAddr string) error

func (*SchemaRegistryClient) SendDDLChange

func (c *SchemaRegistryClient) SendDDLChange(ctx context.Context, req *pb.RegisterDDLReq) (*pb.RegisterDDLResp, error)

func (*SchemaRegistryClient) SendSchemaSnap

type SorterClient

type SorterClient struct {
	// contains filtered or unexported fields
}

Current implementation is one tenant one sorter simple model. Todo: 1) support multiple sorters for one tenant. 2) update the sorter address when the tenant scheduled to another sorter.

func NewSorterClient

func NewSorterClient(addr string) (*SorterClient, error)

func (*SorterClient) Close

func (s *SorterClient) Close()

func (*SorterClient) RefreshAddr

func (s *SorterClient) RefreshAddr(newAddr string) error

func (*SorterClient) SendDataChanges

func (s *SorterClient) SendDataChanges(ctx context.Context, req *pb.RangeChangesReq) (*pb.RangeChangesResp, error)

Jump to

Keyboard shortcuts

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