Documentation ¶
Index ¶
- Variables
- type AppInfo
- func (p *AppInfo) GetAppID() int32
- func (p *AppInfo) GetAppName() string
- func (p *AppInfo) GetAppType() string
- func (p *AppInfo) GetCreateSecond() int64
- func (p *AppInfo) GetDropSecond() int64
- func (p *AppInfo) GetDuplicating() bool
- func (p *AppInfo) GetEnvs() map[string]string
- func (p *AppInfo) GetExpireSecond() int64
- func (p *AppInfo) GetInitPartitionCount() int32
- func (p *AppInfo) GetIsBulkLoading() bool
- func (p *AppInfo) GetIsStateful() bool
- func (p *AppInfo) GetMaxReplicaCount() int32
- func (p *AppInfo) GetPartitionCount() int32
- func (p *AppInfo) GetStatus() AppStatus
- func (p *AppInfo) IsSetDuplicating() bool
- func (p *AppInfo) IsSetIsBulkLoading() bool
- func (p *AppInfo) Read(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField1(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField10(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField11(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField12(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField13(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField14(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField2(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField3(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField4(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField5(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField6(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField7(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField8(iprot thrift.TProtocol) error
- func (p *AppInfo) ReadField9(iprot thrift.TProtocol) error
- func (p *AppInfo) String() string
- func (p *AppInfo) Write(oprot thrift.TProtocol) error
- type AppStatus
- type PartitionConfiguration
- func (p *PartitionConfiguration) GetBallot() int64
- func (p *PartitionConfiguration) GetHpLastDrops() []*base.HostPort
- func (p *PartitionConfiguration) GetHpPrimary() *base.HostPort
- func (p *PartitionConfiguration) GetHpSecondaries() []*base.HostPort
- func (p *PartitionConfiguration) GetLastCommittedDecree() int64
- func (p *PartitionConfiguration) GetLastDrops() []*base.RPCAddress
- func (p *PartitionConfiguration) GetMaxReplicaCount() int32
- func (p *PartitionConfiguration) GetPartitionFlags() int32
- func (p *PartitionConfiguration) GetPid() *base.Gpid
- func (p *PartitionConfiguration) GetPrimary() *base.RPCAddress
- func (p *PartitionConfiguration) GetSecondaries() []*base.RPCAddress
- func (p *PartitionConfiguration) IsSetHpLastDrops() bool
- func (p *PartitionConfiguration) IsSetHpPrimary() bool
- func (p *PartitionConfiguration) IsSetHpSecondaries() bool
- func (p *PartitionConfiguration) IsSetPid() bool
- func (p *PartitionConfiguration) IsSetPrimary() bool
- func (p *PartitionConfiguration) Read(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField1(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField10(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField11(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField2(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField3(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField4(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField5(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField6(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField7(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField8(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) ReadField9(iprot thrift.TProtocol) error
- func (p *PartitionConfiguration) String() string
- func (p *PartitionConfiguration) Write(oprot thrift.TProtocol) error
- type QueryCfgRequest
- func (p *QueryCfgRequest) GetAppName() string
- func (p *QueryCfgRequest) GetPartitionIndices() []int32
- func (p *QueryCfgRequest) Read(iprot thrift.TProtocol) error
- func (p *QueryCfgRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *QueryCfgRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *QueryCfgRequest) String() string
- func (p *QueryCfgRequest) Write(oprot thrift.TProtocol) error
- type QueryCfgResponse
- func (p *QueryCfgResponse) GetAppID() int32
- func (p *QueryCfgResponse) GetErr() *base.ErrorCode
- func (p *QueryCfgResponse) GetIsStateful() bool
- func (p *QueryCfgResponse) GetPartitionCount() int32
- func (p *QueryCfgResponse) GetPartitions() []*PartitionConfiguration
- func (p *QueryCfgResponse) IsSetErr() bool
- func (p *QueryCfgResponse) Read(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) ReadField5(iprot thrift.TProtocol) error
- func (p *QueryCfgResponse) String() string
- func (p *QueryCfgResponse) Write(oprot thrift.TProtocol) error
- type RequestMeta
- func (p *RequestMeta) GetAppID() int32
- func (p *RequestMeta) GetClientTimeout() int32
- func (p *RequestMeta) GetIsBackupRequest() bool
- func (p *RequestMeta) GetPartitionHash() int64
- func (p *RequestMeta) GetPartitionIndex() int32
- func (p *RequestMeta) Read(iprot thrift.TProtocol) error
- func (p *RequestMeta) ReadField1(iprot thrift.TProtocol) error
- func (p *RequestMeta) ReadField2(iprot thrift.TProtocol) error
- func (p *RequestMeta) ReadField3(iprot thrift.TProtocol) error
- func (p *RequestMeta) ReadField4(iprot thrift.TProtocol) error
- func (p *RequestMeta) ReadField5(iprot thrift.TProtocol) error
- func (p *RequestMeta) String() string
- func (p *RequestMeta) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AppInfo_Duplicating_DEFAULT bool = false
View Source
var AppInfo_IsBulkLoading_DEFAULT bool = false
View Source
var GoUnusedProtection__ int
View Source
var PartitionConfiguration_HpLastDrops_DEFAULT []*base.HostPort
View Source
var PartitionConfiguration_HpPrimary_DEFAULT *base.HostPort
View Source
var PartitionConfiguration_HpSecondaries_DEFAULT []*base.HostPort
View Source
var PartitionConfiguration_Pid_DEFAULT *base.Gpid
View Source
var PartitionConfiguration_Primary_DEFAULT *base.RPCAddress
View Source
var QueryCfgResponse_Err_DEFAULT *base.ErrorCode
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct { Status AppStatus `thrift:"status,1" db:"status" json:"status"` AppType string `thrift:"app_type,2" db:"app_type" json:"app_type"` AppName string `thrift:"app_name,3" db:"app_name" json:"app_name"` AppID int32 `thrift:"app_id,4" db:"app_id" json:"app_id"` PartitionCount int32 `thrift:"partition_count,5" db:"partition_count" json:"partition_count"` Envs map[string]string `thrift:"envs,6" db:"envs" json:"envs"` IsStateful bool `thrift:"is_stateful,7" db:"is_stateful" json:"is_stateful"` MaxReplicaCount int32 `thrift:"max_replica_count,8" db:"max_replica_count" json:"max_replica_count"` ExpireSecond int64 `thrift:"expire_second,9" db:"expire_second" json:"expire_second"` CreateSecond int64 `thrift:"create_second,10" db:"create_second" json:"create_second"` DropSecond int64 `thrift:"drop_second,11" db:"drop_second" json:"drop_second"` Duplicating bool `thrift:"duplicating,12" db:"duplicating" json:"duplicating"` InitPartitionCount int32 `thrift:"init_partition_count,13" db:"init_partition_count" json:"init_partition_count"` IsBulkLoading bool `thrift:"is_bulk_loading,14" db:"is_bulk_loading" json:"is_bulk_loading"` }
Attributes:
- Status
- AppType
- AppName
- AppID
- PartitionCount
- Envs
- IsStateful
- MaxReplicaCount
- ExpireSecond
- CreateSecond
- DropSecond
- Duplicating
- InitPartitionCount
- IsBulkLoading
func NewAppInfo ¶
func NewAppInfo() *AppInfo
func (*AppInfo) GetAppName ¶
func (*AppInfo) GetAppType ¶
func (*AppInfo) GetCreateSecond ¶
func (*AppInfo) GetDropSecond ¶
func (*AppInfo) GetDuplicating ¶
func (*AppInfo) GetExpireSecond ¶
func (*AppInfo) GetInitPartitionCount ¶
func (*AppInfo) GetIsBulkLoading ¶
func (*AppInfo) GetIsStateful ¶
func (*AppInfo) GetMaxReplicaCount ¶
func (*AppInfo) GetPartitionCount ¶
func (*AppInfo) IsSetDuplicating ¶
func (*AppInfo) IsSetIsBulkLoading ¶
type AppStatus ¶
type AppStatus int64
const ( AppStatus_AS_INVALID AppStatus = 0 AppStatus_AS_AVAILABLE AppStatus = 1 AppStatus_AS_CREATING AppStatus = 2 AppStatus_AS_CREATE_FAILED AppStatus = 3 AppStatus_AS_DROPPING AppStatus = 4 AppStatus_AS_DROP_FAILED AppStatus = 5 AppStatus_AS_DROPPED AppStatus = 6 AppStatus_AS_RECALLING AppStatus = 7 )
func AppStatusFromString ¶
func AppStatusPtr ¶
func (AppStatus) MarshalText ¶
func (*AppStatus) UnmarshalText ¶
type PartitionConfiguration ¶
type PartitionConfiguration struct { Pid *base.Gpid `thrift:"pid,1" db:"pid" json:"pid"` Ballot int64 `thrift:"ballot,2" db:"ballot" json:"ballot"` MaxReplicaCount int32 `thrift:"max_replica_count,3" db:"max_replica_count" json:"max_replica_count"` Primary *base.RPCAddress `thrift:"primary,4" db:"primary" json:"primary"` Secondaries []*base.RPCAddress `thrift:"secondaries,5" db:"secondaries" json:"secondaries"` LastDrops []*base.RPCAddress `thrift:"last_drops,6" db:"last_drops" json:"last_drops"` LastCommittedDecree int64 `thrift:"last_committed_decree,7" db:"last_committed_decree" json:"last_committed_decree"` PartitionFlags int32 `thrift:"partition_flags,8" db:"partition_flags" json:"partition_flags"` HpPrimary *base.HostPort `thrift:"hp_primary,9" db:"hp_primary" json:"hp_primary,omitempty"` HpSecondaries []*base.HostPort `thrift:"hp_secondaries,10" db:"hp_secondaries" json:"hp_secondaries,omitempty"` HpLastDrops []*base.HostPort `thrift:"hp_last_drops,11" db:"hp_last_drops" json:"hp_last_drops,omitempty"` }
Attributes:
- Pid
- Ballot
- MaxReplicaCount
- Primary
- Secondaries
- LastDrops
- LastCommittedDecree
- PartitionFlags
- HpPrimary
- HpSecondaries
- HpLastDrops
func NewPartitionConfiguration ¶
func NewPartitionConfiguration() *PartitionConfiguration
func (*PartitionConfiguration) GetBallot ¶
func (p *PartitionConfiguration) GetBallot() int64
func (*PartitionConfiguration) GetHpLastDrops ¶
func (p *PartitionConfiguration) GetHpLastDrops() []*base.HostPort
func (*PartitionConfiguration) GetHpPrimary ¶
func (p *PartitionConfiguration) GetHpPrimary() *base.HostPort
func (*PartitionConfiguration) GetHpSecondaries ¶
func (p *PartitionConfiguration) GetHpSecondaries() []*base.HostPort
func (*PartitionConfiguration) GetLastCommittedDecree ¶
func (p *PartitionConfiguration) GetLastCommittedDecree() int64
func (*PartitionConfiguration) GetLastDrops ¶
func (p *PartitionConfiguration) GetLastDrops() []*base.RPCAddress
func (*PartitionConfiguration) GetMaxReplicaCount ¶
func (p *PartitionConfiguration) GetMaxReplicaCount() int32
func (*PartitionConfiguration) GetPartitionFlags ¶
func (p *PartitionConfiguration) GetPartitionFlags() int32
func (*PartitionConfiguration) GetPid ¶
func (p *PartitionConfiguration) GetPid() *base.Gpid
func (*PartitionConfiguration) GetPrimary ¶
func (p *PartitionConfiguration) GetPrimary() *base.RPCAddress
func (*PartitionConfiguration) GetSecondaries ¶
func (p *PartitionConfiguration) GetSecondaries() []*base.RPCAddress
func (*PartitionConfiguration) IsSetHpLastDrops ¶
func (p *PartitionConfiguration) IsSetHpLastDrops() bool
func (*PartitionConfiguration) IsSetHpPrimary ¶
func (p *PartitionConfiguration) IsSetHpPrimary() bool
func (*PartitionConfiguration) IsSetHpSecondaries ¶
func (p *PartitionConfiguration) IsSetHpSecondaries() bool
func (*PartitionConfiguration) IsSetPid ¶
func (p *PartitionConfiguration) IsSetPid() bool
func (*PartitionConfiguration) IsSetPrimary ¶
func (p *PartitionConfiguration) IsSetPrimary() bool
func (*PartitionConfiguration) Read ¶
func (p *PartitionConfiguration) Read(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField1 ¶
func (p *PartitionConfiguration) ReadField1(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField10 ¶
func (p *PartitionConfiguration) ReadField10(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField11 ¶
func (p *PartitionConfiguration) ReadField11(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField2 ¶
func (p *PartitionConfiguration) ReadField2(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField3 ¶
func (p *PartitionConfiguration) ReadField3(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField4 ¶
func (p *PartitionConfiguration) ReadField4(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField5 ¶
func (p *PartitionConfiguration) ReadField5(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField6 ¶
func (p *PartitionConfiguration) ReadField6(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField7 ¶
func (p *PartitionConfiguration) ReadField7(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField8 ¶
func (p *PartitionConfiguration) ReadField8(iprot thrift.TProtocol) error
func (*PartitionConfiguration) ReadField9 ¶
func (p *PartitionConfiguration) ReadField9(iprot thrift.TProtocol) error
func (*PartitionConfiguration) String ¶
func (p *PartitionConfiguration) String() string
type QueryCfgRequest ¶
type QueryCfgRequest struct { AppName string `thrift:"app_name,1" db:"app_name" json:"app_name"` PartitionIndices []int32 `thrift:"partition_indices,2" db:"partition_indices" json:"partition_indices"` }
Attributes:
- AppName
- PartitionIndices
func NewQueryCfgRequest ¶
func NewQueryCfgRequest() *QueryCfgRequest
func (*QueryCfgRequest) GetAppName ¶
func (p *QueryCfgRequest) GetAppName() string
func (*QueryCfgRequest) GetPartitionIndices ¶
func (p *QueryCfgRequest) GetPartitionIndices() []int32
func (*QueryCfgRequest) ReadField1 ¶
func (p *QueryCfgRequest) ReadField1(iprot thrift.TProtocol) error
func (*QueryCfgRequest) ReadField2 ¶
func (p *QueryCfgRequest) ReadField2(iprot thrift.TProtocol) error
func (*QueryCfgRequest) String ¶
func (p *QueryCfgRequest) String() string
type QueryCfgResponse ¶
type QueryCfgResponse struct { Err *base.ErrorCode `thrift:"err,1" db:"err" json:"err"` AppID int32 `thrift:"app_id,2" db:"app_id" json:"app_id"` PartitionCount int32 `thrift:"partition_count,3" db:"partition_count" json:"partition_count"` IsStateful bool `thrift:"is_stateful,4" db:"is_stateful" json:"is_stateful"` Partitions []*PartitionConfiguration `thrift:"partitions,5" db:"partitions" json:"partitions"` }
Attributes:
- Err
- AppID
- PartitionCount
- IsStateful
- Partitions
func NewQueryCfgResponse ¶
func NewQueryCfgResponse() *QueryCfgResponse
func (*QueryCfgResponse) GetAppID ¶
func (p *QueryCfgResponse) GetAppID() int32
func (*QueryCfgResponse) GetErr ¶
func (p *QueryCfgResponse) GetErr() *base.ErrorCode
func (*QueryCfgResponse) GetIsStateful ¶
func (p *QueryCfgResponse) GetIsStateful() bool
func (*QueryCfgResponse) GetPartitionCount ¶
func (p *QueryCfgResponse) GetPartitionCount() int32
func (*QueryCfgResponse) GetPartitions ¶
func (p *QueryCfgResponse) GetPartitions() []*PartitionConfiguration
func (*QueryCfgResponse) IsSetErr ¶
func (p *QueryCfgResponse) IsSetErr() bool
func (*QueryCfgResponse) ReadField1 ¶
func (p *QueryCfgResponse) ReadField1(iprot thrift.TProtocol) error
func (*QueryCfgResponse) ReadField2 ¶
func (p *QueryCfgResponse) ReadField2(iprot thrift.TProtocol) error
func (*QueryCfgResponse) ReadField3 ¶
func (p *QueryCfgResponse) ReadField3(iprot thrift.TProtocol) error
func (*QueryCfgResponse) ReadField4 ¶
func (p *QueryCfgResponse) ReadField4(iprot thrift.TProtocol) error
func (*QueryCfgResponse) ReadField5 ¶
func (p *QueryCfgResponse) ReadField5(iprot thrift.TProtocol) error
func (*QueryCfgResponse) String ¶
func (p *QueryCfgResponse) String() string
type RequestMeta ¶
type RequestMeta struct { AppID int32 `thrift:"app_id,1" db:"app_id" json:"app_id"` PartitionIndex int32 `thrift:"partition_index,2" db:"partition_index" json:"partition_index"` ClientTimeout int32 `thrift:"client_timeout,3" db:"client_timeout" json:"client_timeout"` PartitionHash int64 `thrift:"partition_hash,4" db:"partition_hash" json:"partition_hash"` IsBackupRequest bool `thrift:"is_backup_request,5" db:"is_backup_request" json:"is_backup_request"` }
Attributes:
- AppID
- PartitionIndex
- ClientTimeout
- PartitionHash
- IsBackupRequest
func NewRequestMeta ¶
func NewRequestMeta() *RequestMeta
func (*RequestMeta) GetAppID ¶
func (p *RequestMeta) GetAppID() int32
func (*RequestMeta) GetClientTimeout ¶
func (p *RequestMeta) GetClientTimeout() int32
func (*RequestMeta) GetIsBackupRequest ¶
func (p *RequestMeta) GetIsBackupRequest() bool
func (*RequestMeta) GetPartitionHash ¶
func (p *RequestMeta) GetPartitionHash() int64
func (*RequestMeta) GetPartitionIndex ¶
func (p *RequestMeta) GetPartitionIndex() int32
func (*RequestMeta) ReadField1 ¶
func (p *RequestMeta) ReadField1(iprot thrift.TProtocol) error
func (*RequestMeta) ReadField2 ¶
func (p *RequestMeta) ReadField2(iprot thrift.TProtocol) error
func (*RequestMeta) ReadField3 ¶
func (p *RequestMeta) ReadField3(iprot thrift.TProtocol) error
func (*RequestMeta) ReadField4 ¶
func (p *RequestMeta) ReadField4(iprot thrift.TProtocol) error
func (*RequestMeta) ReadField5 ¶
func (p *RequestMeta) ReadField5(iprot thrift.TProtocol) error
func (*RequestMeta) String ¶
func (p *RequestMeta) String() string
Click to show internal directories.
Click to hide internal directories.