ctl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCtl        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCtl          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCtl = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CmdMethod_name = map[int32]string{
	0: "Ping",
	1: "Flush",
	2: "Task",
	3: "Checkpoint",
	4: "UseSnapshot",
	5: "GetSnapshot",
	6: "ForceGC",
	7: "Inspect",
}
View Source
var CmdMethod_value = map[string]int32{
	"Ping":        0,
	"Flush":       1,
	"Task":        2,
	"Checkpoint":  3,
	"UseSnapshot": 4,
	"GetSnapshot": 5,
	"ForceGC":     6,
	"Inspect":     7,
}

Functions

This section is empty.

Types

type CmdMethod

type CmdMethod int32

CmdMethod debug command method

const (
	// Ping ping the service.
	CmdMethod_Ping CmdMethod = 0
	// Flush is to force flush the table data.
	// parameter should be "DbName.TableName"
	CmdMethod_Flush CmdMethod = 1
	// Task disable or enable task framework
	CmdMethod_Task CmdMethod = 2
	// Checkpoint is to force incremental checkpoint.
	CmdMethod_Checkpoint CmdMethod = 3
	// UseSnapshot use a spec snapshot timestamp, and all txn will use this ts as snapshot timestamp
	CmdMethod_UseSnapshot CmdMethod = 4
	// GetSnapshot get current snapshot timestamp
	CmdMethod_GetSnapshot CmdMethod = 5
	// ForceGC forcing a GC to free memory
	CmdMethod_ForceGC CmdMethod = 6
	// Inspect DN info
	CmdMethod_Inspect CmdMethod = 7
)

func (CmdMethod) EnumDescriptor

func (CmdMethod) EnumDescriptor() ([]byte, []int)

func (CmdMethod) String

func (x CmdMethod) String() string

type CtlResult

type CtlResult struct {
	Method string      `json:"method"`
	Data   interface{} `json:"result"`
}

CtlResult ctl result

type DNPingRequest

type DNPingRequest struct {
	Parameter            string   `protobuf:"bytes,1,opt,name=parameter,proto3" json:"parameter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DNPingRequest ping request

func (*DNPingRequest) Descriptor

func (*DNPingRequest) Descriptor() ([]byte, []int)

func (*DNPingRequest) GetParameter

func (m *DNPingRequest) GetParameter() string

func (*DNPingRequest) Marshal

func (m *DNPingRequest) Marshal() (dAtA []byte, err error)

func (*DNPingRequest) MarshalTo

func (m *DNPingRequest) MarshalTo(dAtA []byte) (int, error)

func (*DNPingRequest) MarshalToSizedBuffer

func (m *DNPingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNPingRequest) ProtoMessage

func (*DNPingRequest) ProtoMessage()

func (*DNPingRequest) Reset

func (m *DNPingRequest) Reset()

func (*DNPingRequest) Size

func (m *DNPingRequest) Size() (n int)

func (*DNPingRequest) String

func (m *DNPingRequest) String() string

func (*DNPingRequest) Unmarshal

func (m *DNPingRequest) Unmarshal(dAtA []byte) error

func (*DNPingRequest) XXX_DiscardUnknown

func (m *DNPingRequest) XXX_DiscardUnknown()

func (*DNPingRequest) XXX_Marshal

func (m *DNPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNPingRequest) XXX_Merge

func (m *DNPingRequest) XXX_Merge(src proto.Message)

func (*DNPingRequest) XXX_Size

func (m *DNPingRequest) XXX_Size() int

func (*DNPingRequest) XXX_Unmarshal

func (m *DNPingRequest) XXX_Unmarshal(b []byte) error

type DNPingResponse

type DNPingResponse struct {
	StoreID              string   `protobuf:"bytes,1,opt,name=storeID,proto3" json:"storeID,omitempty"`
	ServiceAddress       string   `protobuf:"bytes,2,opt,name=serviceAddress,proto3" json:"serviceAddress,omitempty"`
	ShardID              uint64   `protobuf:"varint,3,opt,name=shardID,proto3" json:"shardID,omitempty"`
	ReplicaID            uint64   `protobuf:"varint,4,opt,name=replicaID,proto3" json:"replicaID,omitempty"`
	LogShardID           uint64   `protobuf:"varint,5,opt,name=logShardID,proto3" json:"logShardID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DNPingResponse ping response

func (*DNPingResponse) Descriptor

func (*DNPingResponse) Descriptor() ([]byte, []int)

func (*DNPingResponse) GetLogShardID

func (m *DNPingResponse) GetLogShardID() uint64

func (*DNPingResponse) GetReplicaID

func (m *DNPingResponse) GetReplicaID() uint64

func (*DNPingResponse) GetServiceAddress

func (m *DNPingResponse) GetServiceAddress() string

func (*DNPingResponse) GetShardID

func (m *DNPingResponse) GetShardID() uint64

func (*DNPingResponse) GetStoreID

func (m *DNPingResponse) GetStoreID() string

func (*DNPingResponse) Marshal

func (m *DNPingResponse) Marshal() (dAtA []byte, err error)

func (*DNPingResponse) MarshalTo

func (m *DNPingResponse) MarshalTo(dAtA []byte) (int, error)

func (*DNPingResponse) MarshalToSizedBuffer

func (m *DNPingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNPingResponse) ProtoMessage

func (*DNPingResponse) ProtoMessage()

func (*DNPingResponse) Reset

func (m *DNPingResponse) Reset()

func (*DNPingResponse) Size

func (m *DNPingResponse) Size() (n int)

func (*DNPingResponse) String

func (m *DNPingResponse) String() string

func (*DNPingResponse) Unmarshal

func (m *DNPingResponse) Unmarshal(dAtA []byte) error

func (*DNPingResponse) XXX_DiscardUnknown

func (m *DNPingResponse) XXX_DiscardUnknown()

func (*DNPingResponse) XXX_Marshal

func (m *DNPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNPingResponse) XXX_Merge

func (m *DNPingResponse) XXX_Merge(src proto.Message)

func (*DNPingResponse) XXX_Size

func (m *DNPingResponse) XXX_Size() int

func (*DNPingResponse) XXX_Unmarshal

func (m *DNPingResponse) XXX_Unmarshal(b []byte) error

type DNStringResponse

type DNStringResponse struct {
	ReturnStr            string   `protobuf:"bytes,1,opt,name=returnStr,proto3" json:"returnStr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DNStringResponse string type response

func (*DNStringResponse) Descriptor

func (*DNStringResponse) Descriptor() ([]byte, []int)

func (*DNStringResponse) GetReturnStr

func (m *DNStringResponse) GetReturnStr() string

func (*DNStringResponse) Marshal

func (m *DNStringResponse) Marshal() (dAtA []byte, err error)

func (*DNStringResponse) MarshalTo

func (m *DNStringResponse) MarshalTo(dAtA []byte) (int, error)

func (*DNStringResponse) MarshalToSizedBuffer

func (m *DNStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNStringResponse) ProtoMessage

func (*DNStringResponse) ProtoMessage()

func (*DNStringResponse) Reset

func (m *DNStringResponse) Reset()

func (*DNStringResponse) Size

func (m *DNStringResponse) Size() (n int)

func (*DNStringResponse) String

func (m *DNStringResponse) String() string

func (*DNStringResponse) Unmarshal

func (m *DNStringResponse) Unmarshal(dAtA []byte) error

func (*DNStringResponse) XXX_DiscardUnknown

func (m *DNStringResponse) XXX_DiscardUnknown()

func (*DNStringResponse) XXX_Marshal

func (m *DNStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNStringResponse) XXX_Merge

func (m *DNStringResponse) XXX_Merge(src proto.Message)

func (*DNStringResponse) XXX_Size

func (m *DNStringResponse) XXX_Size() int

func (*DNStringResponse) XXX_Unmarshal

func (m *DNStringResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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