Documentation ¶
Overview ¶
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
github.com/donnie4w/tldb
Index ¶
- Constants
- Variables
- func AddInject(id int64, f func())
- func BroadcastMQ(mqType int8, bs []byte)
- func BroadcastProxy(tp *TableParam, uuid int64, pType int8, ctype int8) (_r *TableParam, exce *sys.Exception)
- func BroadcastReinit(sbean *SysBean) (exce *sys.Exception)
- func DecodeDataBeen(bs []byte) (_r *DataBeen)
- func EncodeBatchPacket(bc *BatchPacket) *Buffer
- func EncodeDataBean(db *DataBeen) (buf *Buffer)
- func EncodePonBean(pb *PonBean) (buf *Buffer)
- func GetRemoteRunUUID() []int64
- func IsClusRun() bool
- func LB() (_r int64)
- func NewBatchProcessTask(txid int64) task
- func NewBatchTask(txid int64) task
- func NewGetRemoteTask(txid int64) task
- func NewGetTask(txid int64) task
- func NewIncrTask(txid int64) task
- func NewLoadTask(txid int64) task
- func NewMergeSyncTx() Merge[*syncBean, map[int64]int8]
- func NewNodeWare() (_r *_nodeWare)
- func NewSeqTask(txid int64) task
- func NewStatAdmin() (_r *_statAdmin)
- func NewStatTask(txid int64) task
- func NewStrToken(sl string, status int8, tokenFlag int64) (_r *strToken)
- func NewSyncKeyTask(txid int64) task
- func NewTaskWare() (_r *_taskWare)
- func NewTimeTask(txid int64) task
- func NewTrans(key string, kvmap map[string][]byte, dels []string) (t *trans)
- func Pon() *pon
- func PonUUIDS(uuids []int64) *pon
- func PrintBeen(bs []byte) string
- func WriteBatchLogBuffer(bp *BatchPacket) (buf *Buffer)
- type BatchPacket
- func (p *BatchPacket) Equals(other *BatchPacket) bool
- func (p *BatchPacket) GetDels() []string
- func (p *BatchPacket) GetKvmap() map[string][]byte
- func (p *BatchPacket) IsSetDels() bool
- func (p *BatchPacket) IsSetKvmap() bool
- func (p *BatchPacket) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *BatchPacket) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *BatchPacket) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *BatchPacket) String() string
- func (p *BatchPacket) Validate() error
- func (p *BatchPacket) Write(ctx context.Context, oprot thrift.TProtocol) error
- type FileBean
- func (p *FileBean) Equals(other *FileBean) bool
- func (p *FileBean) GetBody() []byte
- func (p *FileBean) GetFilename() string
- func (p *FileBean) GetSize() int64
- func (p *FileBean) GetStatKey() int64
- func (p *FileBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *FileBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *FileBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *FileBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *FileBean) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *FileBean) String() string
- func (p *FileBean) Validate() error
- func (p *FileBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Itnet
- type ItnetAuth2Args
- func (p *ItnetAuth2Args) GetAuthKey() []byte
- func (p *ItnetAuth2Args) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetAuth2Args) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetAuth2Args) String() string
- func (p *ItnetAuth2Args) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetAuthArgs
- func (p *ItnetAuthArgs) GetAuthKey() []byte
- func (p *ItnetAuthArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetAuthArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetAuthArgs) String() string
- func (p *ItnetAuthArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetBroadTokenArgs
- func (p *ItnetBroadTokenArgs) GetAck() bool
- func (p *ItnetBroadTokenArgs) GetSyncId() int64
- func (p *ItnetBroadTokenArgs) GetTt() *TokenTrans
- func (p *ItnetBroadTokenArgs) IsSetTt() bool
- func (p *ItnetBroadTokenArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetBroadTokenArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetBroadTokenArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetBroadTokenArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetBroadTokenArgs) String() string
- func (p *ItnetBroadTokenArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetClient
- func (p *ItnetClient) Auth(ctx context.Context, authKey []byte) (_err error)
- func (p *ItnetClient) Auth2(ctx context.Context, authKey []byte) (_err error)
- func (p *ItnetClient) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
- func (p *ItnetClient) Client_() thrift.TClient
- func (p *ItnetClient) CommitTx(ctx context.Context, syncId int64, txid int64) (_err error)
- func (p *ItnetClient) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
- func (p *ItnetClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *ItnetClient) Ping(ctx context.Context, ping int64) (_err error)
- func (p *ItnetClient) Pon(ctx context.Context, PonBeanBytes []byte, id int64) (_err error)
- func (p *ItnetClient) Pon2(ctx context.Context, pb *PonBean, id int64) (_err error)
- func (p *ItnetClient) Pon3(ctx context.Context, PonBeanBytes []byte, id int64, ack bool) (_err error)
- func (p *ItnetClient) PonMerge(ctx context.Context, pblist []*PonBean, id int64) (_err error)
- func (p *ItnetClient) Pong(ctx context.Context, pongBs []byte) (_err error)
- func (p *ItnetClient) ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error)
- func (p *ItnetClient) PubMq(ctx context.Context, syncId int64, mqType int8, bs []byte) (_err error)
- func (p *ItnetClient) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
- func (p *ItnetClient) ReInit(ctx context.Context, syncId int64, sbean *SysBean) (_err error)
- func (p *ItnetClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- func (p *ItnetClient) SyncNode(ctx context.Context, node *Node, ir bool) (_err error)
- func (p *ItnetClient) SyncTx(ctx context.Context, syncId int64, result int8) (_err error)
- func (p *ItnetClient) SyncTxMerge(ctx context.Context, syncList map[int64]int8) (_err error)
- func (p *ItnetClient) Time(ctx context.Context, pretimenano int64, timenano int64, num int16, ir bool) (_err error)
- type ItnetCommitTx2Args
- func (p *ItnetCommitTx2Args) GetCommit() bool
- func (p *ItnetCommitTx2Args) GetSyncId() int64
- func (p *ItnetCommitTx2Args) GetTxid() int64
- func (p *ItnetCommitTx2Args) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTx2Args) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTx2Args) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTx2Args) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTx2Args) String() string
- func (p *ItnetCommitTx2Args) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetCommitTxArgs
- func (p *ItnetCommitTxArgs) GetSyncId() int64
- func (p *ItnetCommitTxArgs) GetTxid() int64
- func (p *ItnetCommitTxArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTxArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTxArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetCommitTxArgs) String() string
- func (p *ItnetCommitTxArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetImpl
- func (this *ItnetImpl) Auth(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetImpl) Auth2(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetImpl) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
- func (this *ItnetImpl) CommitTx(ctx context.Context, syncId int64, txid int64) (_err error)
- func (this *ItnetImpl) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
- func (this *ItnetImpl) Ping(ctx context.Context, pingstr int64) (_err error)
- func (this *ItnetImpl) Pon(ctx context.Context, ponBeanBytes []byte, id int64) (_err error)
- func (this *ItnetImpl) Pon2(ctx context.Context, pb *PonBean, id int64) (_err error)
- func (this *ItnetImpl) Pon3(ctx context.Context, ponBeanBytes []byte, id int64, ack bool) (_err error)
- func (this *ItnetImpl) PonMerge(ctx context.Context, pblist []*PonBean, id int64) (_err error)
- func (this *ItnetImpl) Pong(ctx context.Context, pongBs []byte) (_err error)
- func (this *ItnetImpl) ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error)
- func (this *ItnetImpl) PubMq(ctx context.Context, syncId int64, mqType int8, bs []byte) (_err error)
- func (this *ItnetImpl) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
- func (this *ItnetImpl) ReInit(ctx context.Context, syncId int64, sbean *SysBean) (_err error)
- func (this *ItnetImpl) SyncNode(ctx context.Context, node *Node, ir bool) (_err error)
- func (this *ItnetImpl) SyncTx(ctx context.Context, syncId int64, result int8) (_err error)
- func (this *ItnetImpl) SyncTxMerge(ctx context.Context, syncList map[int64]int8) (_err error)
- func (this *ItnetImpl) Time(ctx context.Context, pretimenano int64, timenano int64, num int16, ir bool) (_err error)
- type ItnetPingArgs
- func (p *ItnetPingArgs) GetPing() int64
- func (p *ItnetPingArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPingArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPingArgs) String() string
- func (p *ItnetPingArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPon2Args
- func (p *ItnetPon2Args) GetID() int64
- func (p *ItnetPon2Args) GetPb() *PonBean
- func (p *ItnetPon2Args) IsSetPb() bool
- func (p *ItnetPon2Args) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon2Args) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon2Args) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon2Args) String() string
- func (p *ItnetPon2Args) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPon3Args
- func (p *ItnetPon3Args) GetAck() bool
- func (p *ItnetPon3Args) GetID() int64
- func (p *ItnetPon3Args) GetPonBeanBytes() []byte
- func (p *ItnetPon3Args) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon3Args) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon3Args) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon3Args) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPon3Args) String() string
- func (p *ItnetPon3Args) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPonArgs
- func (p *ItnetPonArgs) GetID() int64
- func (p *ItnetPonArgs) GetPonBeanBytes() []byte
- func (p *ItnetPonArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonArgs) String() string
- func (p *ItnetPonArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPonMergeArgs
- func (p *ItnetPonMergeArgs) GetID() int64
- func (p *ItnetPonMergeArgs) GetPblist() []*PonBean
- func (p *ItnetPonMergeArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonMergeArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonMergeArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPonMergeArgs) String() string
- func (p *ItnetPonMergeArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPongArgs
- func (p *ItnetPongArgs) GetPongBs() []byte
- func (p *ItnetPongArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPongArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPongArgs) String() string
- func (p *ItnetPongArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetProcessor
- func (p *ItnetProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ItnetProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ItnetProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ItnetProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type ItnetProxyCallArgs
- func (p *ItnetProxyCallArgs) GetCtype() int8
- func (p *ItnetProxyCallArgs) GetPType() int8
- func (p *ItnetProxyCallArgs) GetParamData() []byte
- func (p *ItnetProxyCallArgs) GetSyncId() int64
- func (p *ItnetProxyCallArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetProxyCallArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetProxyCallArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetProxyCallArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetProxyCallArgs) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetProxyCallArgs) String() string
- func (p *ItnetProxyCallArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPubMqArgs
- func (p *ItnetPubMqArgs) GetBs() []byte
- func (p *ItnetPubMqArgs) GetMqType() int8
- func (p *ItnetPubMqArgs) GetSyncId() int64
- func (p *ItnetPubMqArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPubMqArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPubMqArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPubMqArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPubMqArgs) String() string
- func (p *ItnetPubMqArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetPullDataArgs
- func (p *ItnetPullDataArgs) GetLdb() *LogDataBean
- func (p *ItnetPullDataArgs) GetSyncId() int64
- func (p *ItnetPullDataArgs) IsSetLdb() bool
- func (p *ItnetPullDataArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPullDataArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPullDataArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetPullDataArgs) String() string
- func (p *ItnetPullDataArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetReInitArgs
- func (p *ItnetReInitArgs) GetSbean() *SysBean
- func (p *ItnetReInitArgs) GetSyncId() int64
- func (p *ItnetReInitArgs) IsSetSbean() bool
- func (p *ItnetReInitArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetReInitArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetReInitArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetReInitArgs) String() string
- func (p *ItnetReInitArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetServ
- func (this *ItnetServ) Auth(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetServ) Auth2(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetServ) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
- func (this *ItnetServ) CommitTx(ctx context.Context, syncId int64, txid int64) (_err error)
- func (this *ItnetServ) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
- func (this *ItnetServ) Ping(ctx context.Context, pingstr int64) (_err error)
- func (this *ItnetServ) Pon(ctx context.Context, ponBeanBytes []byte, id int64) (err error)
- func (this *ItnetServ) Pon2(ctx context.Context, pb *PonBean, id int64) (_err error)
- func (this *ItnetServ) Pon3(ctx context.Context, ponBeanBytes []byte, id int64, ack bool) (_err error)
- func (this *ItnetServ) PonMerge(ctx context.Context, pblist []*PonBean, id int64) (_err error)
- func (this *ItnetServ) Pong(ctx context.Context, pongBs []byte) (_err error)
- func (this *ItnetServ) ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error)
- func (this *ItnetServ) PubMq(ctx context.Context, syncId int64, mqType int8, bs []byte) (_err error)
- func (this *ItnetServ) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
- func (this *ItnetServ) ReInit(ctx context.Context, syncId int64, sbean *SysBean) (_err error)
- func (this *ItnetServ) SyncNode(ctx context.Context, node *Node, ir bool) (_err error)
- func (this *ItnetServ) SyncTx(ctx context.Context, syncId int64, result int8) (_err error)
- func (this *ItnetServ) SyncTxMerge(ctx context.Context, syncList map[int64]int8) (_err error)
- func (this *ItnetServ) Time(ctx context.Context, pretimenano, timenano int64, num int16, ir bool) (_err error)
- type ItnetSyncNodeArgs
- func (p *ItnetSyncNodeArgs) GetIr() bool
- func (p *ItnetSyncNodeArgs) GetNode() *Node
- func (p *ItnetSyncNodeArgs) IsSetNode() bool
- func (p *ItnetSyncNodeArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncNodeArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncNodeArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncNodeArgs) String() string
- func (p *ItnetSyncNodeArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetSyncTxArgs
- func (p *ItnetSyncTxArgs) GetResult_() int8
- func (p *ItnetSyncTxArgs) GetSyncId() int64
- func (p *ItnetSyncTxArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncTxArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncTxArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncTxArgs) String() string
- func (p *ItnetSyncTxArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetSyncTxMergeArgs
- func (p *ItnetSyncTxMergeArgs) GetSyncList() map[int64]int8
- func (p *ItnetSyncTxMergeArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncTxMergeArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetSyncTxMergeArgs) String() string
- func (p *ItnetSyncTxMergeArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetTimeArgs
- func (p *ItnetTimeArgs) GetIr() bool
- func (p *ItnetTimeArgs) GetNum() int16
- func (p *ItnetTimeArgs) GetPretimenano() int64
- func (p *ItnetTimeArgs) GetTimenano() int64
- func (p *ItnetTimeArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetTimeArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetTimeArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetTimeArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetTimeArgs) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ItnetTimeArgs) String() string
- func (p *ItnetTimeArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type ItnetWrite
- func (this *ItnetWrite) Auth(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetWrite) Auth2(ctx context.Context, authKey []byte) (_err error)
- func (this *ItnetWrite) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
- func (this *ItnetWrite) CommitTx(ctx context.Context, syncId int64, txid int64) (_err error)
- func (this *ItnetWrite) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
- func (this *ItnetWrite) Ping(ctx context.Context, pingstr int64) (_err error)
- func (this *ItnetWrite) Pon(ctx context.Context, ponBeanBytes []byte, id int64) (_err error)
- func (this *ItnetWrite) Pon2(ctx context.Context, pb *PonBean, id int64) (_err error)
- func (this *ItnetWrite) Pon3(ctx context.Context, ponBeanBytes []byte, id int64, ack bool) (_err error)
- func (this *ItnetWrite) PonMerge(ctx context.Context, pblist []*PonBean, id int64) (_err error)
- func (this *ItnetWrite) Pong(ctx context.Context, pongBs []byte) (_err error)
- func (this *ItnetWrite) ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error)
- func (this *ItnetWrite) PubMq(ctx context.Context, syncId int64, mqType int8, bs []byte) (_err error)
- func (this *ItnetWrite) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
- func (this *ItnetWrite) ReInit(ctx context.Context, syncId int64, sbean *SysBean) (_err error)
- func (this *ItnetWrite) SyncNode(ctx context.Context, node *Node, ir bool) (_err error)
- func (this *ItnetWrite) SyncTx(ctx context.Context, syncId int64, result int8) (_err error)
- func (this *ItnetWrite) SyncTxMerge(ctx context.Context, syncList map[int64]int8) (_err error)
- func (this *ItnetWrite) Time(ctx context.Context, pretimenano int64, timenano int64, num int16, ir bool) (_err error)
- type LoadBean
- func (p *LoadBean) Equals(other *LoadBean) bool
- func (p *LoadBean) GetLogm() map[int64]*LogKV
- func (p *LoadBean) GetS() int64
- func (p *LoadBean) GetT() int64
- func (p *LoadBean) IsSetLogm() bool
- func (p *LoadBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LoadBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LoadBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LoadBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LoadBean) String() string
- func (p *LoadBean) Validate() error
- func (p *LoadBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type LogDataBean
- func (p *LogDataBean) Equals(other *LogDataBean) bool
- func (p *LogDataBean) GetFBean() *FileBean
- func (p *LogDataBean) GetHasNext() bool
- func (p *LogDataBean) GetLastTime() int64
- func (p *LogDataBean) GetNotNull() bool
- func (p *LogDataBean) GetTxid() int64
- func (p *LogDataBean) GetType() int8
- func (p *LogDataBean) IsSetFBean() bool
- func (p *LogDataBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogDataBean) String() string
- func (p *LogDataBean) Validate() error
- func (p *LogDataBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type LogKV
- func (p *LogKV) Equals(other *LogKV) bool
- func (p *LogKV) GetKey() string
- func (p *LogKV) GetSeq() int64
- func (p *LogKV) GetValue() []byte
- func (p *LogKV) IsSetValue() bool
- func (p *LogKV) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogKV) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogKV) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogKV) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogKV) String() string
- func (p *LogKV) Validate() error
- func (p *LogKV) Write(ctx context.Context, oprot thrift.TProtocol) error
- type LogSeqBean
- func (p *LogSeqBean) Equals(other *LogSeqBean) bool
- func (p *LogSeqBean) GetSeq() int64
- func (p *LogSeqBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogSeqBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *LogSeqBean) String() string
- func (p *LogSeqBean) Validate() error
- func (p *LogSeqBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Node
- func (p *Node) Equals(other *Node) bool
- func (p *Node) GetAddr() string
- func (p *Node) GetAdminAddr() string
- func (p *Node) GetCliAddr() string
- func (p *Node) GetMqAddr() string
- func (p *Node) GetNodekv() map[int64]string
- func (p *Node) GetNs() string
- func (p *Node) GetStat() int8
- func (p *Node) GetUUID() int64
- func (p *Node) IsSetNodekv() bool
- func (p *Node) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField7(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) ReadField8(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Node) String() string
- func (p *Node) Validate() error
- func (p *Node) Write(ctx context.Context, oprot thrift.TProtocol) error
- type PON_TYPE
- type PonBean
- func (p *PonBean) Equals(other *PonBean) bool
- func (p *PonBean) GetBatch() *BatchPacket
- func (p *PonBean) GetClusterNode() []int64
- func (p *PonBean) GetDoCommit() bool
- func (p *PonBean) GetExecNode() []int64
- func (p *PonBean) GetFromuuid() int64
- func (p *PonBean) GetIsExcu() bool
- func (p *PonBean) GetIsFirst() bool
- func (p *PonBean) GetIsPass() bool
- func (p *PonBean) GetIsVerify() bool
- func (p *PonBean) GetKey() []byte
- func (p *PonBean) GetLoadBean() *LoadBean
- func (p *PonBean) GetMode() int8
- func (p *PonBean) GetOpType() int16
- func (p *PonBean) GetPbtime() []byte
- func (p *PonBean) GetPtype() int16
- func (p *PonBean) GetRunUUID() []int64
- func (p *PonBean) GetSeqBean() *LogSeqBean
- func (p *PonBean) GetStat() *Stat
- func (p *PonBean) GetSyncId() int64
- func (p *PonBean) GetTimeBean() *TimeBean
- func (p *PonBean) GetTxid() int64
- func (p *PonBean) GetValue() []byte
- func (p *PonBean) IsSetBatch() bool
- func (p *PonBean) IsSetClusterNode() bool
- func (p *PonBean) IsSetExecNode() bool
- func (p *PonBean) IsSetKey() bool
- func (p *PonBean) IsSetLoadBean() bool
- func (p *PonBean) IsSetPbtime() bool
- func (p *PonBean) IsSetRunUUID() bool
- func (p *PonBean) IsSetSeqBean() bool
- func (p *PonBean) IsSetStat() bool
- func (p *PonBean) IsSetSyncId() bool
- func (p *PonBean) IsSetTimeBean() bool
- func (p *PonBean) IsSetValue() bool
- func (p *PonBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField10(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField11(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField12(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField13(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField14(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField15(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField16(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField17(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField18(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField19(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField20(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField21(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField22(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField7(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField8(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) ReadField9(ctx context.Context, iprot thrift.TProtocol) error
- func (p *PonBean) String() string
- func (p *PonBean) Validate() error
- func (p *PonBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Stat
- func (p *Stat) Equals(other *Stat) bool
- func (p *Stat) GetStat() int8
- func (p *Stat) GetTimenano() int64
- func (p *Stat) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Stat) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Stat) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Stat) String() string
- func (p *Stat) Validate() error
- func (p *Stat) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SysBean
- func (p *SysBean) Equals(other *SysBean) bool
- func (p *SysBean) GetDBMode() int8
- func (p *SysBean) GetREMOVEUUID() int64
- func (p *SysBean) GetSTORENODENUM() int32
- func (p *SysBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SysBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SysBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SysBean) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *SysBean) String() string
- func (p *SysBean) Validate() error
- func (p *SysBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TimeBean
- func (p *TimeBean) Equals(other *TimeBean) bool
- func (p *TimeBean) GetIsPass() bool
- func (p *TimeBean) GetRunUUID() int64
- func (p *TimeBean) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TimeBean) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TimeBean) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TimeBean) String() string
- func (p *TimeBean) Validate() error
- func (p *TimeBean) Write(ctx context.Context, oprot thrift.TProtocol) error
- type TokenTrans
- func (p *TokenTrans) Equals(other *TokenTrans) bool
- func (p *TokenTrans) GetBackOk() bool
- func (p *TokenTrans) GetBs() []byte
- func (p *TokenTrans) GetExtra() map[string][]byte
- func (p *TokenTrans) GetForceBack() bool
- func (p *TokenTrans) GetList() []*TokenTrans
- func (p *TokenTrans) GetReqType() int8
- func (p *TokenTrans) GetStatus() int8
- func (p *TokenTrans) GetStr() string
- func (p *TokenTrans) GetSyncId() int64
- func (p *TokenTrans) GetToken() string
- func (p *TokenTrans) GetTokenFlag() int64
- func (p *TokenTrans) IsSetBackOk() bool
- func (p *TokenTrans) IsSetBs() bool
- func (p *TokenTrans) IsSetExtra() bool
- func (p *TokenTrans) IsSetForceBack() bool
- func (p *TokenTrans) IsSetList() bool
- func (p *TokenTrans) IsSetSyncId() bool
- func (p *TokenTrans) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField10(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField11(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField4(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField5(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField6(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField7(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField8(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) ReadField9(ctx context.Context, iprot thrift.TProtocol) error
- func (p *TokenTrans) String() string
- func (p *TokenTrans) Validate() error
- func (p *TokenTrans) Write(ctx context.Context, oprot thrift.TProtocol) error
- type UUID
Constants ¶
const ( TOKEN_ACK int8 = 0 TOKEN_BACK int8 = 1 TOKEN_REQ_NEW int8 = 2 TOKEN_RESPUUID int8 = 3 TOKEN_REQ_TOKEN int8 = 4 TOKEN_REQ_INIT int8 = 5 TOKEN_TRYGET_TOKEN int8 = 6 )
**********************************************************
Variables ¶
var AlterTable func(ts *TableStub) (err error)
var BatchPacket_Dels_DEFAULT []string
var BatchPacket_Kvmap_DEFAULT map[string][]byte
var ClusPub func(mqType int8, bs []byte) (err error)
var CreateTable func(ts *TableStub) (err error)
var CreateTableMq func(ts *TableStub) (err error)
var Delete func(call int, ts *TableStub) (err error)
var DeleteBatch func(call int, tablename string, ids []int64) (err error)
var DeleteBatches func(call int, tablename string, fromId, toId int64) (err error)
var DropTable func(ts *TableStub) (err error)
var Insert func(call int, db *TableStub) (seq int64, err error)
var InsertMq func(call int, db *TableStub) (seq int64, err error)
var Level1 = &level1{}
var LoadBean_Logm_DEFAULT map[int64]*LogKV
var LoadMQTableInfo func() (tss []*TableStub)
var LoadTableInfo func() (tss []*TableStub)
var LogKV_Value_DEFAULT []byte
var Node_Nodekv_DEFAULT map[int64]string
var PonBean_ClusterNode_DEFAULT []int64
var PonBean_ExecNode_DEFAULT []int64
var PonBean_Key_DEFAULT []byte
var PonBean_Pbtime_DEFAULT []byte
var PonBean_RunUUID_DEFAULT []int64
var PonBean_SyncId_DEFAULT int64
var PonBean_Value_DEFAULT []byte
var SelectById func(call int, db *TableStub) (_r *TableStub, err error)
var SelectByIdx func(call int, table_name, idx_name string, _idx_value []byte) (_r *TableStub, err error)
var SelectByIdxAscLimit func(call int, table_name string, idx_name string, _idx_value []byte, startId int64, limit int64) (_r []*TableStub, err error)
var SelectByIdxDescLimit func(call int, table_name string, idx_name string, _idx_value []byte, startId int64, limit int64) (_r []*TableStub, err error)
var SelectId func(call int, db *TableStub) (_r int64, err error)
var SelectIdByIdx func(call int, table_name, idx_name string, _idx_value []byte) (_r int64, err error)
var SelectIdByIdxSeq func(call int, table_name string, idx_name string, _idx_value []byte, seq int64) (_r int64, err error)
var SelectsByIdLimit func(call int, db *TableStub, start, limit int64) (_r []*TableStub, err error)
var SelectsByIdx func(call int, table_name, idx_name string, _idx_value []byte) (_r []*TableStub, err error)
var SelectsByIdxLimit func(call int, table_name, idx_name string, idxValues [][]byte, startId, limit int64) (_r []*TableStub, err error)
var T _DTYPE = 0
var TokenTrans_BackOk_DEFAULT bool
var TokenTrans_Bs_DEFAULT []byte
var TokenTrans_Extra_DEFAULT map[string][]byte
var TokenTrans_ForceBack_DEFAULT bool
var TokenTrans_List_DEFAULT []*TokenTrans
var TokenTrans_SyncId_DEFAULT int64
var Update func(call int, ts *TableStub) (err error)
var Z _DTYPE = 1
Functions ¶
func BroadcastMQ ¶
func BroadcastProxy ¶
func BroadcastReinit ¶
func DecodeDataBeen ¶
func DecodeDataBeen(bs []byte) (_r *DataBeen)
func EncodeBatchPacket ¶
func EncodeBatchPacket(bc *BatchPacket) *Buffer
func EncodeDataBean ¶
func EncodeDataBean(db *DataBeen) (buf *Buffer)
func EncodePonBean ¶
func EncodePonBean(pb *PonBean) (buf *Buffer)
func GetRemoteRunUUID ¶
func GetRemoteRunUUID() []int64
func NewBatchProcessTask ¶
func NewBatchProcessTask(txid int64) task
****************************************************************************
func NewBatchTask ¶
func NewBatchTask(txid int64) task
func NewGetRemoteTask ¶
func NewGetRemoteTask(txid int64) task
****************************************************
func NewGetTask ¶
func NewGetTask(txid int64) task
****************************************************
func NewIncrTask ¶
func NewIncrTask(txid int64) task
****************************************************
func NewLoadTask ¶
func NewLoadTask(txid int64) task
****************************************************
func NewMergeSyncTx ¶
*******************************************************************
func NewNodeWare ¶
func NewNodeWare() (_r *_nodeWare)
func NewSeqTask ¶
func NewSeqTask(txid int64) task
****************************************************
func NewStatAdmin ¶
func NewStatAdmin() (_r *_statAdmin)
func NewStatTask ¶
func NewStatTask(txid int64) task
****************************************************
func NewStrToken ¶
func NewSyncKeyTask ¶
func NewSyncKeyTask(txid int64) task
****************************************************
func NewTaskWare ¶
func NewTaskWare() (_r *_taskWare)
func NewTimeTask ¶
func NewTimeTask(txid int64) task
****************************************************
func WriteBatchLogBuffer ¶
func WriteBatchLogBuffer(bp *BatchPacket) (buf *Buffer)
Types ¶
type BatchPacket ¶
type BatchPacket struct { Kvmap map[string][]byte `thrift:"kvmap,1" db:"kvmap" json:"kvmap,omitempty"` Dels []string `thrift:"dels,2" db:"dels" json:"dels,omitempty"` }
Attributes:
- Kvmap
- Dels
var PonBean_Batch_DEFAULT *BatchPacket
func DecodeBatchPacket ¶
func DecodeBatchPacket(bs []byte) (bc *BatchPacket)
func NewBatchPacket ¶
func NewBatchPacket() *BatchPacket
func (*BatchPacket) Equals ¶
func (p *BatchPacket) Equals(other *BatchPacket) bool
func (*BatchPacket) GetDels ¶
func (p *BatchPacket) GetDels() []string
func (*BatchPacket) GetKvmap ¶
func (p *BatchPacket) GetKvmap() map[string][]byte
func (*BatchPacket) IsSetDels ¶
func (p *BatchPacket) IsSetDels() bool
func (*BatchPacket) IsSetKvmap ¶
func (p *BatchPacket) IsSetKvmap() bool
func (*BatchPacket) ReadField1 ¶
func (*BatchPacket) ReadField2 ¶
func (*BatchPacket) String ¶
func (p *BatchPacket) String() string
func (*BatchPacket) Validate ¶
func (p *BatchPacket) Validate() error
type FileBean ¶
type FileBean struct { Filename string `thrift:"filename,1,required" db:"filename" json:"filename"` Size int64 `thrift:"size,2,required" db:"size" json:"size"` Body []byte `thrift:"body,3,required" db:"body" json:"body"` StatKey int64 `thrift:"statKey,4,required" db:"statKey" json:"statKey"` }
Attributes:
- Filename
- Size
- Body
- StatKey
var LogDataBean_FBean_DEFAULT *FileBean
func NewFileBean ¶
func NewFileBean() *FileBean
func (*FileBean) GetFilename ¶
func (*FileBean) GetStatKey ¶
func (*FileBean) ReadField1 ¶
func (*FileBean) ReadField2 ¶
func (*FileBean) ReadField3 ¶
func (*FileBean) ReadField4 ¶
type Itnet ¶
type Itnet interface { // Parameters: // - Ping Ping(ctx context.Context, ping int64) (_err error) // Parameters: // - PongBs Pong(ctx context.Context, pongBs []byte) (_err error) // Parameters: // - AuthKey Auth(ctx context.Context, authKey []byte) (_err error) // Parameters: // - AuthKey Auth2(ctx context.Context, authKey []byte) (_err error) // Parameters: // - Pblist // - ID PonMerge(ctx context.Context, pblist []*PonBean, id int64) (_err error) // Parameters: // - PonBeanBytes // - ID Pon(ctx context.Context, PonBeanBytes []byte, id int64) (_err error) // Parameters: // - Pb // - ID Pon2(ctx context.Context, pb *PonBean, id int64) (_err error) // Parameters: // - PonBeanBytes // - ID // - Ack Pon3(ctx context.Context, PonBeanBytes []byte, id int64, ack bool) (_err error) // Parameters: // - Pretimenano // - Timenano // - Num // - Ir Time(ctx context.Context, pretimenano int64, timenano int64, num int16, ir bool) (_err error) // Parameters: // - Node // - Ir SyncNode(ctx context.Context, node *Node, ir bool) (_err error) // Parameters: // - SyncId // - Result_ SyncTx(ctx context.Context, syncId int64, result int8) (_err error) // Parameters: // - SyncList SyncTxMerge(ctx context.Context, syncList map[int64]int8) (_err error) // Parameters: // - SyncId // - Txid CommitTx(ctx context.Context, syncId int64, txid int64) (_err error) // Parameters: // - SyncId // - Txid // - Commit CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error) // Parameters: // - SyncId // - MqType // - Bs PubMq(ctx context.Context, syncId int64, mqType int8, bs []byte) (_err error) // Parameters: // - SyncId // - Ldb PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error) // Parameters: // - SyncId // - Sbean ReInit(ctx context.Context, syncId int64, sbean *SysBean) (_err error) // Parameters: // - SyncId // - ParamData // - PType // - Ctype ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error) // Parameters: // - SyncId // - Tt // - Ack BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error) }
type ItnetAuth2Args ¶
type ItnetAuth2Args struct {
AuthKey []byte `thrift:"authKey,1" db:"authKey" json:"authKey"`
}
Attributes:
- AuthKey
func NewItnetAuth2Args ¶
func NewItnetAuth2Args() *ItnetAuth2Args
func (*ItnetAuth2Args) GetAuthKey ¶
func (p *ItnetAuth2Args) GetAuthKey() []byte
func (*ItnetAuth2Args) ReadField1 ¶
func (*ItnetAuth2Args) String ¶
func (p *ItnetAuth2Args) String() string
type ItnetAuthArgs ¶
type ItnetAuthArgs struct {
AuthKey []byte `thrift:"authKey,1" db:"authKey" json:"authKey"`
}
Attributes:
- AuthKey
func NewItnetAuthArgs ¶
func NewItnetAuthArgs() *ItnetAuthArgs
func (*ItnetAuthArgs) GetAuthKey ¶
func (p *ItnetAuthArgs) GetAuthKey() []byte
func (*ItnetAuthArgs) ReadField1 ¶
func (*ItnetAuthArgs) String ¶
func (p *ItnetAuthArgs) String() string
type ItnetBroadTokenArgs ¶
type ItnetBroadTokenArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Tt *TokenTrans `thrift:"tt,2" db:"tt" json:"tt"` Ack bool `thrift:"ack,3" db:"ack" json:"ack"` }
Attributes:
- SyncId
- Tt
- Ack
func NewItnetBroadTokenArgs ¶
func NewItnetBroadTokenArgs() *ItnetBroadTokenArgs
func (*ItnetBroadTokenArgs) GetAck ¶
func (p *ItnetBroadTokenArgs) GetAck() bool
func (*ItnetBroadTokenArgs) GetSyncId ¶
func (p *ItnetBroadTokenArgs) GetSyncId() int64
func (*ItnetBroadTokenArgs) GetTt ¶
func (p *ItnetBroadTokenArgs) GetTt() *TokenTrans
func (*ItnetBroadTokenArgs) IsSetTt ¶
func (p *ItnetBroadTokenArgs) IsSetTt() bool
func (*ItnetBroadTokenArgs) ReadField1 ¶
func (*ItnetBroadTokenArgs) ReadField2 ¶
func (*ItnetBroadTokenArgs) ReadField3 ¶
func (*ItnetBroadTokenArgs) String ¶
func (p *ItnetBroadTokenArgs) String() string
type ItnetClient ¶
type ItnetClient struct {
// contains filtered or unexported fields
}
func NewItnetClient ¶
func NewItnetClient(c thrift.TClient) *ItnetClient
func NewItnetClientFactory ¶
func NewItnetClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ItnetClient
func NewItnetClientProtocol ¶
func NewItnetClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ItnetClient
func (*ItnetClient) Auth ¶
func (p *ItnetClient) Auth(ctx context.Context, authKey []byte) (_err error)
Parameters:
- AuthKey
func (*ItnetClient) Auth2 ¶
func (p *ItnetClient) Auth2(ctx context.Context, authKey []byte) (_err error)
Parameters:
- AuthKey
func (*ItnetClient) BroadToken ¶
func (p *ItnetClient) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
Parameters:
- SyncId
- Tt
- Ack
func (*ItnetClient) Client_ ¶
func (p *ItnetClient) Client_() thrift.TClient
func (*ItnetClient) CommitTx2 ¶
func (p *ItnetClient) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
Parameters:
- SyncId
- Txid
- Commit
func (*ItnetClient) LastResponseMeta_ ¶
func (p *ItnetClient) LastResponseMeta_() thrift.ResponseMeta
func (*ItnetClient) Ping ¶
func (p *ItnetClient) Ping(ctx context.Context, ping int64) (_err error)
Parameters:
- Ping
func (*ItnetClient) Pon3 ¶
func (p *ItnetClient) Pon3(ctx context.Context, PonBeanBytes []byte, id int64, ack bool) (_err error)
Parameters:
- PonBeanBytes
- ID
- Ack
func (*ItnetClient) Pong ¶
func (p *ItnetClient) Pong(ctx context.Context, pongBs []byte) (_err error)
Parameters:
- PongBs
func (*ItnetClient) ProxyCall ¶
func (p *ItnetClient) ProxyCall(ctx context.Context, syncId int64, paramData []byte, pType int8, ctype int8) (_err error)
Parameters:
- SyncId
- ParamData
- PType
- Ctype
func (*ItnetClient) PullData ¶
func (p *ItnetClient) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
Parameters:
- SyncId
- Ldb
func (*ItnetClient) SetLastResponseMeta_ ¶
func (p *ItnetClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
type ItnetCommitTx2Args ¶
type ItnetCommitTx2Args struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Txid int64 `thrift:"txid,2" db:"txid" json:"txid"` Commit bool `thrift:"commit,3" db:"commit" json:"commit"` }
Attributes:
- SyncId
- Txid
- Commit
func NewItnetCommitTx2Args ¶
func NewItnetCommitTx2Args() *ItnetCommitTx2Args
func (*ItnetCommitTx2Args) GetCommit ¶
func (p *ItnetCommitTx2Args) GetCommit() bool
func (*ItnetCommitTx2Args) GetSyncId ¶
func (p *ItnetCommitTx2Args) GetSyncId() int64
func (*ItnetCommitTx2Args) GetTxid ¶
func (p *ItnetCommitTx2Args) GetTxid() int64
func (*ItnetCommitTx2Args) ReadField1 ¶
func (*ItnetCommitTx2Args) ReadField2 ¶
func (*ItnetCommitTx2Args) ReadField3 ¶
func (*ItnetCommitTx2Args) String ¶
func (p *ItnetCommitTx2Args) String() string
type ItnetCommitTxArgs ¶
type ItnetCommitTxArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Txid int64 `thrift:"txid,2" db:"txid" json:"txid"` }
Attributes:
- SyncId
- Txid
func NewItnetCommitTxArgs ¶
func NewItnetCommitTxArgs() *ItnetCommitTxArgs
func (*ItnetCommitTxArgs) GetSyncId ¶
func (p *ItnetCommitTxArgs) GetSyncId() int64
func (*ItnetCommitTxArgs) GetTxid ¶
func (p *ItnetCommitTxArgs) GetTxid() int64
func (*ItnetCommitTxArgs) ReadField1 ¶
func (*ItnetCommitTxArgs) ReadField2 ¶
func (*ItnetCommitTxArgs) String ¶
func (p *ItnetCommitTxArgs) String() string
type ItnetImpl ¶
type ItnetImpl struct {
// contains filtered or unexported fields
}
func (*ItnetImpl) BroadToken ¶
func (*ItnetImpl) CommitTx2 ¶
func (this *ItnetImpl) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
Parameters:
- SyncId
- Commit
func (*ItnetImpl) Pon3 ¶
func (this *ItnetImpl) Pon3(ctx context.Context, ponBeanBytes []byte, id int64, ack bool) (_err error)
Parameters:
- Pb
func (*ItnetImpl) SyncTxMerge ¶
type ItnetPingArgs ¶
type ItnetPingArgs struct {
Ping int64 `thrift:"ping,1" db:"ping" json:"ping"`
}
Attributes:
- Ping
func NewItnetPingArgs ¶
func NewItnetPingArgs() *ItnetPingArgs
func (*ItnetPingArgs) GetPing ¶
func (p *ItnetPingArgs) GetPing() int64
func (*ItnetPingArgs) ReadField1 ¶
func (*ItnetPingArgs) String ¶
func (p *ItnetPingArgs) String() string
type ItnetPon2Args ¶
type ItnetPon2Args struct { Pb *PonBean `thrift:"pb,1" db:"pb" json:"pb"` ID int64 `thrift:"id,2" db:"id" json:"id"` }
Attributes:
- Pb
- ID
func NewItnetPon2Args ¶
func NewItnetPon2Args() *ItnetPon2Args
func (*ItnetPon2Args) GetID ¶
func (p *ItnetPon2Args) GetID() int64
func (*ItnetPon2Args) GetPb ¶
func (p *ItnetPon2Args) GetPb() *PonBean
func (*ItnetPon2Args) IsSetPb ¶
func (p *ItnetPon2Args) IsSetPb() bool
func (*ItnetPon2Args) ReadField1 ¶
func (*ItnetPon2Args) ReadField2 ¶
func (*ItnetPon2Args) String ¶
func (p *ItnetPon2Args) String() string
type ItnetPon3Args ¶
type ItnetPon3Args struct { PonBeanBytes []byte `thrift:"PonBeanBytes,1" db:"PonBeanBytes" json:"PonBeanBytes"` ID int64 `thrift:"id,2" db:"id" json:"id"` Ack bool `thrift:"ack,3" db:"ack" json:"ack"` }
Attributes:
- PonBeanBytes
- ID
- Ack
func NewItnetPon3Args ¶
func NewItnetPon3Args() *ItnetPon3Args
func (*ItnetPon3Args) GetAck ¶
func (p *ItnetPon3Args) GetAck() bool
func (*ItnetPon3Args) GetID ¶
func (p *ItnetPon3Args) GetID() int64
func (*ItnetPon3Args) GetPonBeanBytes ¶
func (p *ItnetPon3Args) GetPonBeanBytes() []byte
func (*ItnetPon3Args) ReadField1 ¶
func (*ItnetPon3Args) ReadField2 ¶
func (*ItnetPon3Args) ReadField3 ¶
func (*ItnetPon3Args) String ¶
func (p *ItnetPon3Args) String() string
type ItnetPonArgs ¶
type ItnetPonArgs struct { PonBeanBytes []byte `thrift:"PonBeanBytes,1" db:"PonBeanBytes" json:"PonBeanBytes"` ID int64 `thrift:"id,2" db:"id" json:"id"` }
Attributes:
- PonBeanBytes
- ID
func NewItnetPonArgs ¶
func NewItnetPonArgs() *ItnetPonArgs
func (*ItnetPonArgs) GetID ¶
func (p *ItnetPonArgs) GetID() int64
func (*ItnetPonArgs) GetPonBeanBytes ¶
func (p *ItnetPonArgs) GetPonBeanBytes() []byte
func (*ItnetPonArgs) ReadField1 ¶
func (*ItnetPonArgs) ReadField2 ¶
func (*ItnetPonArgs) String ¶
func (p *ItnetPonArgs) String() string
type ItnetPonMergeArgs ¶
type ItnetPonMergeArgs struct { Pblist []*PonBean `thrift:"pblist,1" db:"pblist" json:"pblist"` ID int64 `thrift:"id,2" db:"id" json:"id"` }
Attributes:
- Pblist
- ID
func NewItnetPonMergeArgs ¶
func NewItnetPonMergeArgs() *ItnetPonMergeArgs
func (*ItnetPonMergeArgs) GetID ¶
func (p *ItnetPonMergeArgs) GetID() int64
func (*ItnetPonMergeArgs) GetPblist ¶
func (p *ItnetPonMergeArgs) GetPblist() []*PonBean
func (*ItnetPonMergeArgs) ReadField1 ¶
func (*ItnetPonMergeArgs) ReadField2 ¶
func (*ItnetPonMergeArgs) String ¶
func (p *ItnetPonMergeArgs) String() string
type ItnetPongArgs ¶
type ItnetPongArgs struct {
PongBs []byte `thrift:"pongBs,1" db:"pongBs" json:"pongBs"`
}
Attributes:
- PongBs
func NewItnetPongArgs ¶
func NewItnetPongArgs() *ItnetPongArgs
func (*ItnetPongArgs) GetPongBs ¶
func (p *ItnetPongArgs) GetPongBs() []byte
func (*ItnetPongArgs) ReadField1 ¶
func (*ItnetPongArgs) String ¶
func (p *ItnetPongArgs) String() string
type ItnetProcessor ¶
type ItnetProcessor struct {
// contains filtered or unexported fields
}
func NewItnetProcessor ¶
func NewItnetProcessor(handler Itnet) *ItnetProcessor
func (*ItnetProcessor) AddToProcessorMap ¶
func (p *ItnetProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ItnetProcessor) GetProcessorFunction ¶
func (p *ItnetProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ItnetProcessor) Process ¶
func (p *ItnetProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ItnetProcessor) ProcessorMap ¶
func (p *ItnetProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type ItnetProxyCallArgs ¶
type ItnetProxyCallArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` ParamData []byte `thrift:"paramData,2" db:"paramData" json:"paramData"` PType int8 `thrift:"pType,3" db:"pType" json:"pType"` Ctype int8 `thrift:"ctype,4" db:"ctype" json:"ctype"` }
Attributes:
- SyncId
- ParamData
- PType
- Ctype
func NewItnetProxyCallArgs ¶
func NewItnetProxyCallArgs() *ItnetProxyCallArgs
func (*ItnetProxyCallArgs) GetCtype ¶
func (p *ItnetProxyCallArgs) GetCtype() int8
func (*ItnetProxyCallArgs) GetPType ¶
func (p *ItnetProxyCallArgs) GetPType() int8
func (*ItnetProxyCallArgs) GetParamData ¶
func (p *ItnetProxyCallArgs) GetParamData() []byte
func (*ItnetProxyCallArgs) GetSyncId ¶
func (p *ItnetProxyCallArgs) GetSyncId() int64
func (*ItnetProxyCallArgs) ReadField1 ¶
func (*ItnetProxyCallArgs) ReadField2 ¶
func (*ItnetProxyCallArgs) ReadField3 ¶
func (*ItnetProxyCallArgs) ReadField4 ¶
func (*ItnetProxyCallArgs) String ¶
func (p *ItnetProxyCallArgs) String() string
type ItnetPubMqArgs ¶
type ItnetPubMqArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` MqType int8 `thrift:"mqType,2" db:"mqType" json:"mqType"` Bs []byte `thrift:"bs,3" db:"bs" json:"bs"` }
Attributes:
- SyncId
- MqType
- Bs
func NewItnetPubMqArgs ¶
func NewItnetPubMqArgs() *ItnetPubMqArgs
func (*ItnetPubMqArgs) GetBs ¶
func (p *ItnetPubMqArgs) GetBs() []byte
func (*ItnetPubMqArgs) GetMqType ¶
func (p *ItnetPubMqArgs) GetMqType() int8
func (*ItnetPubMqArgs) GetSyncId ¶
func (p *ItnetPubMqArgs) GetSyncId() int64
func (*ItnetPubMqArgs) ReadField1 ¶
func (*ItnetPubMqArgs) ReadField2 ¶
func (*ItnetPubMqArgs) ReadField3 ¶
func (*ItnetPubMqArgs) String ¶
func (p *ItnetPubMqArgs) String() string
type ItnetPullDataArgs ¶
type ItnetPullDataArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Ldb *LogDataBean `thrift:"ldb,2" db:"ldb" json:"ldb"` }
Attributes:
- SyncId
- Ldb
func NewItnetPullDataArgs ¶
func NewItnetPullDataArgs() *ItnetPullDataArgs
func (*ItnetPullDataArgs) GetLdb ¶
func (p *ItnetPullDataArgs) GetLdb() *LogDataBean
func (*ItnetPullDataArgs) GetSyncId ¶
func (p *ItnetPullDataArgs) GetSyncId() int64
func (*ItnetPullDataArgs) IsSetLdb ¶
func (p *ItnetPullDataArgs) IsSetLdb() bool
func (*ItnetPullDataArgs) ReadField1 ¶
func (*ItnetPullDataArgs) ReadField2 ¶
func (*ItnetPullDataArgs) String ¶
func (p *ItnetPullDataArgs) String() string
type ItnetReInitArgs ¶
type ItnetReInitArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Sbean *SysBean `thrift:"sbean,2" db:"sbean" json:"sbean"` }
Attributes:
- SyncId
- Sbean
func NewItnetReInitArgs ¶
func NewItnetReInitArgs() *ItnetReInitArgs
func (*ItnetReInitArgs) GetSbean ¶
func (p *ItnetReInitArgs) GetSbean() *SysBean
func (*ItnetReInitArgs) GetSyncId ¶
func (p *ItnetReInitArgs) GetSyncId() int64
func (*ItnetReInitArgs) IsSetSbean ¶
func (p *ItnetReInitArgs) IsSetSbean() bool
func (*ItnetReInitArgs) ReadField1 ¶
func (*ItnetReInitArgs) ReadField2 ¶
func (*ItnetReInitArgs) String ¶
func (p *ItnetReInitArgs) String() string
type ItnetServ ¶
type ItnetServ struct {
// contains filtered or unexported fields
}
func (*ItnetServ) BroadToken ¶
func (*ItnetServ) CommitTx2 ¶
func (this *ItnetServ) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
Parameters:
- SyncId
- Commit
func (*ItnetServ) SyncTxMerge ¶
type ItnetSyncNodeArgs ¶
type ItnetSyncNodeArgs struct { Node *Node `thrift:"node,1" db:"node" json:"node"` Ir bool `thrift:"ir,2" db:"ir" json:"ir"` }
Attributes:
- Node
- Ir
func NewItnetSyncNodeArgs ¶
func NewItnetSyncNodeArgs() *ItnetSyncNodeArgs
func (*ItnetSyncNodeArgs) GetIr ¶
func (p *ItnetSyncNodeArgs) GetIr() bool
func (*ItnetSyncNodeArgs) GetNode ¶
func (p *ItnetSyncNodeArgs) GetNode() *Node
func (*ItnetSyncNodeArgs) IsSetNode ¶
func (p *ItnetSyncNodeArgs) IsSetNode() bool
func (*ItnetSyncNodeArgs) ReadField1 ¶
func (*ItnetSyncNodeArgs) ReadField2 ¶
func (*ItnetSyncNodeArgs) String ¶
func (p *ItnetSyncNodeArgs) String() string
type ItnetSyncTxArgs ¶
type ItnetSyncTxArgs struct { SyncId int64 `thrift:"syncId,1" db:"syncId" json:"syncId"` Result_ int8 `thrift:"result,2" db:"result" json:"result"` }
Attributes:
- SyncId
- Result_
func NewItnetSyncTxArgs ¶
func NewItnetSyncTxArgs() *ItnetSyncTxArgs
func (*ItnetSyncTxArgs) GetResult_ ¶
func (p *ItnetSyncTxArgs) GetResult_() int8
func (*ItnetSyncTxArgs) GetSyncId ¶
func (p *ItnetSyncTxArgs) GetSyncId() int64
func (*ItnetSyncTxArgs) ReadField1 ¶
func (*ItnetSyncTxArgs) ReadField2 ¶
func (*ItnetSyncTxArgs) String ¶
func (p *ItnetSyncTxArgs) String() string
type ItnetSyncTxMergeArgs ¶
type ItnetSyncTxMergeArgs struct {
SyncList map[int64]int8 `thrift:"syncList,1" db:"syncList" json:"syncList"`
}
Attributes:
- SyncList
func NewItnetSyncTxMergeArgs ¶
func NewItnetSyncTxMergeArgs() *ItnetSyncTxMergeArgs
func (*ItnetSyncTxMergeArgs) GetSyncList ¶
func (p *ItnetSyncTxMergeArgs) GetSyncList() map[int64]int8
func (*ItnetSyncTxMergeArgs) ReadField1 ¶
func (*ItnetSyncTxMergeArgs) String ¶
func (p *ItnetSyncTxMergeArgs) String() string
type ItnetTimeArgs ¶
type ItnetTimeArgs struct { Pretimenano int64 `thrift:"pretimenano,1" db:"pretimenano" json:"pretimenano"` Timenano int64 `thrift:"timenano,2" db:"timenano" json:"timenano"` Num int16 `thrift:"num,3" db:"num" json:"num"` Ir bool `thrift:"ir,4" db:"ir" json:"ir"` }
Attributes:
- Pretimenano
- Timenano
- Num
- Ir
func NewItnetTimeArgs ¶
func NewItnetTimeArgs() *ItnetTimeArgs
func (*ItnetTimeArgs) GetIr ¶
func (p *ItnetTimeArgs) GetIr() bool
func (*ItnetTimeArgs) GetNum ¶
func (p *ItnetTimeArgs) GetNum() int16
func (*ItnetTimeArgs) GetPretimenano ¶
func (p *ItnetTimeArgs) GetPretimenano() int64
func (*ItnetTimeArgs) GetTimenano ¶
func (p *ItnetTimeArgs) GetTimenano() int64
func (*ItnetTimeArgs) ReadField1 ¶
func (*ItnetTimeArgs) ReadField2 ¶
func (*ItnetTimeArgs) ReadField3 ¶
func (*ItnetTimeArgs) ReadField4 ¶
func (*ItnetTimeArgs) String ¶
func (p *ItnetTimeArgs) String() string
type ItnetWrite ¶
type ItnetWrite struct {
// contains filtered or unexported fields
}
func (*ItnetWrite) Auth ¶
func (this *ItnetWrite) Auth(ctx context.Context, authKey []byte) (_err error)
Parameters:
- AuthKey
func (*ItnetWrite) Auth2 ¶
func (this *ItnetWrite) Auth2(ctx context.Context, authKey []byte) (_err error)
Parameters:
- AuthKey
func (*ItnetWrite) BroadToken ¶
func (this *ItnetWrite) BroadToken(ctx context.Context, syncId int64, tt *TokenTrans, ack bool) (_err error)
func (*ItnetWrite) CommitTx2 ¶
func (this *ItnetWrite) CommitTx2(ctx context.Context, syncId int64, txid int64, commit bool) (_err error)
Parameters:
- SyncId
- Commit
func (*ItnetWrite) Ping ¶
func (this *ItnetWrite) Ping(ctx context.Context, pingstr int64) (_err error)
func (*ItnetWrite) Pon3 ¶
func (this *ItnetWrite) Pon3(ctx context.Context, ponBeanBytes []byte, id int64, ack bool) (_err error)
Parameters:
- Pb
func (*ItnetWrite) Pong ¶
func (this *ItnetWrite) Pong(ctx context.Context, pongBs []byte) (_err error)
func (*ItnetWrite) PullData ¶
func (this *ItnetWrite) PullData(ctx context.Context, syncId int64, ldb *LogDataBean) (_err error)
func (*ItnetWrite) SyncTxMerge ¶
type LoadBean ¶
type LoadBean struct { S int64 `thrift:"s,1,required" db:"s" json:"s"` T int64 `thrift:"t,2,required" db:"t" json:"t"` Logm map[int64]*LogKV `thrift:"logm,3" db:"logm" json:"logm,omitempty"` }
Attributes:
- S
- T
- Logm
var PonBean_LoadBean_DEFAULT *LoadBean
func NewLoadBean ¶
func NewLoadBean() *LoadBean
func (*LoadBean) ReadField1 ¶
func (*LoadBean) ReadField2 ¶
func (*LoadBean) ReadField3 ¶
type LogDataBean ¶
type LogDataBean struct { Type int8 `thrift:"type,1,required" db:"type" json:"type"` LastTime int64 `thrift:"lastTime,2,required" db:"lastTime" json:"lastTime"` Txid int64 `thrift:"txid,3,required" db:"txid" json:"txid"` FBean *FileBean `thrift:"fBean,4" db:"fBean" json:"fBean,omitempty"` HasNext bool `thrift:"hasNext,5,required" db:"hasNext" json:"hasNext"` NotNull bool `thrift:"notNull,6,required" db:"notNull" json:"notNull"` }
Attributes:
- Type
- LastTime
- Txid
- FBean
- HasNext
- NotNull
var ItnetPullDataArgs_Ldb_DEFAULT *LogDataBean
func NewLogDataBean ¶
func NewLogDataBean() *LogDataBean
func (*LogDataBean) Equals ¶
func (p *LogDataBean) Equals(other *LogDataBean) bool
func (*LogDataBean) GetFBean ¶
func (p *LogDataBean) GetFBean() *FileBean
func (*LogDataBean) GetHasNext ¶
func (p *LogDataBean) GetHasNext() bool
func (*LogDataBean) GetLastTime ¶
func (p *LogDataBean) GetLastTime() int64
func (*LogDataBean) GetNotNull ¶
func (p *LogDataBean) GetNotNull() bool
func (*LogDataBean) GetTxid ¶
func (p *LogDataBean) GetTxid() int64
func (*LogDataBean) GetType ¶
func (p *LogDataBean) GetType() int8
func (*LogDataBean) IsSetFBean ¶
func (p *LogDataBean) IsSetFBean() bool
func (*LogDataBean) ReadField1 ¶
func (*LogDataBean) ReadField2 ¶
func (*LogDataBean) ReadField3 ¶
func (*LogDataBean) ReadField4 ¶
func (*LogDataBean) ReadField5 ¶
func (*LogDataBean) ReadField6 ¶
func (*LogDataBean) String ¶
func (p *LogDataBean) String() string
func (*LogDataBean) Validate ¶
func (p *LogDataBean) Validate() error
type LogKV ¶
type LogKV struct { Seq int64 `thrift:"seq,1,required" db:"seq" json:"seq"` Key string `thrift:"key,2,required" db:"key" json:"key"` Value []byte `thrift:"value,3" db:"value" json:"value,omitempty"` }
Attributes:
- Seq
- Key
- Value
func (*LogKV) IsSetValue ¶
func (*LogKV) ReadField1 ¶
func (*LogKV) ReadField2 ¶
func (*LogKV) ReadField3 ¶
type LogSeqBean ¶
type LogSeqBean struct {
Seq int64 `thrift:"seq,1,required" db:"seq" json:"seq"`
}
Attributes:
- Seq
var PonBean_SeqBean_DEFAULT *LogSeqBean
func NewLogSeqBean ¶
func NewLogSeqBean() *LogSeqBean
func (*LogSeqBean) Equals ¶
func (p *LogSeqBean) Equals(other *LogSeqBean) bool
func (*LogSeqBean) GetSeq ¶
func (p *LogSeqBean) GetSeq() int64
func (*LogSeqBean) ReadField1 ¶
func (*LogSeqBean) String ¶
func (p *LogSeqBean) String() string
func (*LogSeqBean) Validate ¶
func (p *LogSeqBean) Validate() error
type Node ¶
type Node struct { Addr string `thrift:"addr,1,required" db:"addr" json:"addr"` UUID int64 `thrift:"uuid,2,required" db:"uuid" json:"uuid"` Stat int8 `thrift:"stat,3,required" db:"stat" json:"stat"` MqAddr string `thrift:"mqAddr,4,required" db:"mqAddr" json:"mqAddr"` CliAddr string `thrift:"cliAddr,5,required" db:"cliAddr" json:"cliAddr"` AdminAddr string `thrift:"adminAddr,6,required" db:"adminAddr" json:"adminAddr"` Nodekv map[int64]string `thrift:"nodekv,7" db:"nodekv" json:"nodekv,omitempty"` Ns string `thrift:"ns,8,required" db:"ns" json:"ns"` }
Attributes:
- Addr
- UUID
- Stat
- MqAddr
- CliAddr
- AdminAddr
- Nodekv
- Ns
var ItnetSyncNodeArgs_Node_DEFAULT *Node
func (*Node) GetAdminAddr ¶
func (*Node) GetCliAddr ¶
func (*Node) IsSetNodekv ¶
func (*Node) ReadField1 ¶
func (*Node) ReadField2 ¶
func (*Node) ReadField3 ¶
func (*Node) ReadField4 ¶
func (*Node) ReadField5 ¶
func (*Node) ReadField6 ¶
func (*Node) ReadField7 ¶
func (*Node) ReadField8 ¶
type PonBean ¶
type PonBean struct { Ptype int16 `thrift:"ptype,1,required" db:"ptype" json:"ptype"` OpType int16 `thrift:"opType,2,required" db:"opType" json:"opType"` Txid int64 `thrift:"txid,3,required" db:"txid" json:"txid"` Fromuuid int64 `thrift:"fromuuid,4,required" db:"fromuuid" json:"fromuuid"` IsPass bool `thrift:"isPass,5,required" db:"isPass" json:"isPass"` IsFirst bool `thrift:"isFirst,6,required" db:"isFirst" json:"isFirst"` IsExcu bool `thrift:"isExcu,7,required" db:"isExcu" json:"isExcu"` IsVerify bool `thrift:"isVerify,8,required" db:"isVerify" json:"isVerify"` DoCommit bool `thrift:"doCommit,9,required" db:"doCommit" json:"doCommit"` Mode int8 `thrift:"mode,10,required" db:"mode" json:"mode"` ExecNode []int64 `thrift:"execNode,11" db:"execNode" json:"execNode,omitempty"` ClusterNode []int64 `thrift:"clusterNode,12" db:"clusterNode" json:"clusterNode,omitempty"` Key []byte `thrift:"key,13" db:"key" json:"key,omitempty"` Value []byte `thrift:"value,14" db:"value" json:"value,omitempty"` Batch *BatchPacket `thrift:"batch,15" db:"batch" json:"batch,omitempty"` Stat *Stat `thrift:"stat,16" db:"stat" json:"stat,omitempty"` LoadBean *LoadBean `thrift:"loadBean,17" db:"loadBean" json:"loadBean,omitempty"` TimeBean *TimeBean `thrift:"timeBean,18" db:"timeBean" json:"timeBean,omitempty"` SeqBean *LogSeqBean `thrift:"seqBean,19" db:"seqBean" json:"seqBean,omitempty"` RunUUID []int64 `thrift:"runUUID,20" db:"runUUID" json:"runUUID,omitempty"` SyncId *int64 `thrift:"syncId,21" db:"syncId" json:"syncId,omitempty"` Pbtime []byte `thrift:"pbtime,22" db:"pbtime" json:"pbtime,omitempty"` }
Attributes:
- Ptype
- OpType
- Txid
- Fromuuid
- IsPass
- IsFirst
- IsExcu
- IsVerify
- DoCommit
- Mode
- ExecNode
- ClusterNode
- Key
- Value
- Batch
- Stat
- LoadBean
- TimeBean
- SeqBean
- RunUUID
- SyncId
- Pbtime
var ItnetPon2Args_Pb_DEFAULT *PonBean
func DecodePonBean ¶
func NewPonBean ¶
func NewPonBean() *PonBean
func (*PonBean) GetBatch ¶
func (p *PonBean) GetBatch() *BatchPacket
func (*PonBean) GetClusterNode ¶
func (*PonBean) GetDoCommit ¶
func (*PonBean) GetExecNode ¶
func (*PonBean) GetFromuuid ¶
func (*PonBean) GetIsFirst ¶
func (*PonBean) GetIsVerify ¶
func (*PonBean) GetLoadBean ¶
func (*PonBean) GetRunUUID ¶
func (*PonBean) GetSeqBean ¶
func (p *PonBean) GetSeqBean() *LogSeqBean
func (*PonBean) GetTimeBean ¶
func (*PonBean) IsSetBatch ¶
func (*PonBean) IsSetClusterNode ¶
func (*PonBean) IsSetExecNode ¶
func (*PonBean) IsSetLoadBean ¶
func (*PonBean) IsSetPbtime ¶
func (*PonBean) IsSetRunUUID ¶
func (*PonBean) IsSetSeqBean ¶
func (*PonBean) IsSetSyncId ¶
func (*PonBean) IsSetTimeBean ¶
func (*PonBean) IsSetValue ¶
func (*PonBean) ReadField1 ¶
func (*PonBean) ReadField10 ¶
func (*PonBean) ReadField11 ¶
func (*PonBean) ReadField12 ¶
func (*PonBean) ReadField13 ¶
func (*PonBean) ReadField14 ¶
func (*PonBean) ReadField15 ¶
func (*PonBean) ReadField16 ¶
func (*PonBean) ReadField17 ¶
func (*PonBean) ReadField18 ¶
func (*PonBean) ReadField19 ¶
func (*PonBean) ReadField2 ¶
func (*PonBean) ReadField20 ¶
func (*PonBean) ReadField21 ¶
func (*PonBean) ReadField22 ¶
func (*PonBean) ReadField3 ¶
func (*PonBean) ReadField4 ¶
func (*PonBean) ReadField5 ¶
func (*PonBean) ReadField6 ¶
func (*PonBean) ReadField7 ¶
func (*PonBean) ReadField8 ¶
func (*PonBean) ReadField9 ¶
type Stat ¶
type Stat struct { Stat int8 `thrift:"stat,1,required" db:"stat" json:"stat"` Timenano int64 `thrift:"timenano,2,required" db:"timenano" json:"timenano"` }
Attributes:
- Stat
- Timenano
var PonBean_Stat_DEFAULT *Stat
func (*Stat) GetTimenano ¶
func (*Stat) ReadField1 ¶
func (*Stat) ReadField2 ¶
type SysBean ¶
type SysBean struct { DBMode int8 `thrift:"DBMode,1,required" db:"DBMode" json:"DBMode"` STORENODENUM int32 `thrift:"STORENODENUM,2,required" db:"STORENODENUM" json:"STORENODENUM"` REMOVEUUID int64 `thrift:"REMOVEUUID,3,required" db:"REMOVEUUID" json:"REMOVEUUID"` }
Attributes:
- DBMode
- STORENODENUM
- REMOVEUUID
var ItnetReInitArgs_Sbean_DEFAULT *SysBean
func NewSysBean ¶
func NewSysBean() *SysBean
func (*SysBean) GetREMOVEUUID ¶
func (*SysBean) GetSTORENODENUM ¶
func (*SysBean) ReadField1 ¶
func (*SysBean) ReadField2 ¶
func (*SysBean) ReadField3 ¶
type TimeBean ¶
type TimeBean struct { IsPass bool `thrift:"isPass,1,required" db:"isPass" json:"isPass"` RunUUID int64 `thrift:"runUUID,2,required" db:"runUUID" json:"runUUID"` }
Attributes:
- IsPass
- RunUUID
var PonBean_TimeBean_DEFAULT *TimeBean
func NewTimeBean ¶
func NewTimeBean() *TimeBean
func (*TimeBean) GetRunUUID ¶
func (*TimeBean) ReadField1 ¶
func (*TimeBean) ReadField2 ¶
type TokenTrans ¶
type TokenTrans struct { ReqType int8 `thrift:"ReqType,1,required" db:"ReqType" json:"ReqType"` Str string `thrift:"Str,2,required" db:"Str" json:"Str"` TokenFlag int64 `thrift:"TokenFlag,3,required" db:"TokenFlag" json:"TokenFlag"` Status int8 `thrift:"Status,4,required" db:"Status" json:"Status"` Token string `thrift:"Token,5,required" db:"Token" json:"Token"` SyncId *int64 `thrift:"SyncId,6" db:"SyncId" json:"SyncId,omitempty"` Bs []byte `thrift:"bs,7" db:"bs" json:"bs,omitempty"` Extra map[string][]byte `thrift:"Extra,8" db:"Extra" json:"Extra,omitempty"` List []*TokenTrans `thrift:"List,9" db:"List" json:"List,omitempty"` BackOk *bool `thrift:"BackOk,10" db:"BackOk" json:"BackOk,omitempty"` ForceBack *bool `thrift:"ForceBack,11" db:"ForceBack" json:"ForceBack,omitempty"` }
Attributes:
- ReqType
- Str
- TokenFlag
- Status
- Token
- SyncId
- Bs
- Extra
- List
- BackOk
- ForceBack
var ItnetBroadTokenArgs_Tt_DEFAULT *TokenTrans
func NewTokenTrans ¶
func NewTokenTrans() *TokenTrans
func (*TokenTrans) Equals ¶
func (p *TokenTrans) Equals(other *TokenTrans) bool
func (*TokenTrans) GetBackOk ¶
func (p *TokenTrans) GetBackOk() bool
func (*TokenTrans) GetBs ¶
func (p *TokenTrans) GetBs() []byte
func (*TokenTrans) GetExtra ¶
func (p *TokenTrans) GetExtra() map[string][]byte
func (*TokenTrans) GetForceBack ¶
func (p *TokenTrans) GetForceBack() bool
func (*TokenTrans) GetList ¶
func (p *TokenTrans) GetList() []*TokenTrans
func (*TokenTrans) GetReqType ¶
func (p *TokenTrans) GetReqType() int8
func (*TokenTrans) GetStatus ¶
func (p *TokenTrans) GetStatus() int8
func (*TokenTrans) GetStr ¶
func (p *TokenTrans) GetStr() string
func (*TokenTrans) GetSyncId ¶
func (p *TokenTrans) GetSyncId() int64
func (*TokenTrans) GetToken ¶
func (p *TokenTrans) GetToken() string
func (*TokenTrans) GetTokenFlag ¶
func (p *TokenTrans) GetTokenFlag() int64
func (*TokenTrans) IsSetBackOk ¶
func (p *TokenTrans) IsSetBackOk() bool
func (*TokenTrans) IsSetBs ¶
func (p *TokenTrans) IsSetBs() bool
func (*TokenTrans) IsSetExtra ¶
func (p *TokenTrans) IsSetExtra() bool
func (*TokenTrans) IsSetForceBack ¶
func (p *TokenTrans) IsSetForceBack() bool
func (*TokenTrans) IsSetList ¶
func (p *TokenTrans) IsSetList() bool
func (*TokenTrans) IsSetSyncId ¶
func (p *TokenTrans) IsSetSyncId() bool
func (*TokenTrans) ReadField1 ¶
func (*TokenTrans) ReadField10 ¶
func (*TokenTrans) ReadField11 ¶
func (*TokenTrans) ReadField2 ¶
func (*TokenTrans) ReadField3 ¶
func (*TokenTrans) ReadField4 ¶
func (*TokenTrans) ReadField5 ¶
func (*TokenTrans) ReadField6 ¶
func (*TokenTrans) ReadField7 ¶
func (*TokenTrans) ReadField8 ¶
func (*TokenTrans) ReadField9 ¶
func (*TokenTrans) String ¶
func (p *TokenTrans) String() string
func (*TokenTrans) Validate ¶
func (p *TokenTrans) Validate() error