Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
CreateTable(ctx context.Context, tableName string, partitionCount int) error
DropTable(ctx context.Context, tableName string) error
ListTables(ctx context.Context) ([]*TableInfo, error)
}
Client provides the administration API to a specific cluster. Remember only the superusers configured to the cluster have the admin priviledges.
type RemoteCmdClient ¶
type RemoteCmdClient struct {
// contains filtered or unexported fields
}
RemoteCmdClient is a client to call remote command to a PegasusServer.
func NewRemoteCmdClient ¶
func NewRemoteCmdClient(addr string, nodeType session.NodeType) *RemoteCmdClient
NewRemoteCmdClient returns an instance of RemoteCmdClient.
type RemoteCommand ¶
RemoteCommand can be called concurrently by multiple sessions.
func (*RemoteCommand) Call ¶
func (c *RemoteCommand) Call(ctx context.Context, session session.NodeSession) (cmdResult string, err error)
Call a remote command to an existing session.
Click to show internal directories.
Click to hide internal directories.