Documentation ¶
Index ¶
- Constants
- type ClientSet
- type LockServiceClient
- func (l *LockServiceClient) CanRestartCN(ctx context.Context, uuid string) (bool, error)
- func (l *LockServiceClient) Close() error
- func (l *LockServiceClient) RemainTxnCount(ctx context.Context, uuid string) (int, error)
- func (l *LockServiceClient) SetRestartCN(ctx context.Context, uuid string) (bool, error)
- type MORPCClientManager
- type StoreCache
Constants ¶
View Source
const ( DefaultRPCTimeout = 10 * time.Second RefreshInterval = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSet ¶
type ClientSet struct { Client logservice.ProxyHAKeeperClient StoreCache *StoreCache LockServiceClient *LockServiceClient }
type LockServiceClient ¶
type LockServiceClient struct {
// contains filtered or unexported fields
}
func NewLockServiceClient ¶
func NewLockServiceClient(tnAddr string, logger *zap.Logger) (*LockServiceClient, error)
func (*LockServiceClient) CanRestartCN ¶
func (*LockServiceClient) Close ¶
func (l *LockServiceClient) Close() error
func (*LockServiceClient) RemainTxnCount ¶
func (*LockServiceClient) SetRestartCN ¶
type MORPCClientManager ¶
func NewManager ¶
func NewManager(kubeCli client.Client, logger *zap.Logger) *MORPCClientManager
func (*MORPCClientManager) Close ¶
func (m *MORPCClientManager) Close()
type StoreCache ¶
type StoreCache struct {
// contains filtered or unexported fields
}
func NewCNCache ¶
func NewCNCache( client logservice.ProxyHAKeeperClient, refreshInterval time.Duration, logger logr.Logger) *StoreCache
func (*StoreCache) Close ¶
func (c *StoreCache) Close()
Click to show internal directories.
Click to hide internal directories.