Documentation ¶
Index ¶
- Constants
- Variables
- type EdgeNode
- func (x *EdgeNode) Clone() *EdgeNode
- func (x *EdgeNode) DeepCopy(z *EdgeNode)
- func (*EdgeNode) Descriptor() ([]byte, []int)deprecated
- func (x *EdgeNode) GetGatewayAddr() []string
- func (x *EdgeNode) GetHash() uint64
- func (x *EdgeNode) GetReplicaSet() uint64
- func (x *EdgeNode) GetServerID() []byte
- func (x *EdgeNode) GetTunnelAddr() []string
- func (x *EdgeNode) Marshal() ([]byte, error)
- func (x *EdgeNode) MarshalJSON() ([]byte, error)
- func (*EdgeNode) ProtoMessage()
- func (x *EdgeNode) ProtoReflect() protoreflect.Message
- func (x *EdgeNode) Reset()
- func (x *EdgeNode) String() string
- func (x *EdgeNode) Unmarshal(b []byte) error
- func (x *EdgeNode) UnmarshalJSON(b []byte) error
- type GetPage
- func (x *GetPage) Clone() *GetPage
- func (x *GetPage) DeepCopy(z *GetPage)
- func (*GetPage) Descriptor() ([]byte, []int)deprecated
- func (x *GetPage) GetPageID() uint32
- func (x *GetPage) GetReplicaSet() uint64
- func (x *GetPage) Marshal() ([]byte, error)
- func (x *GetPage) MarshalJSON() ([]byte, error)
- func (*GetPage) ProtoMessage()
- func (x *GetPage) ProtoReflect() protoreflect.Message
- func (x *GetPage) Reset()
- func (x *GetPage) String() string
- func (x *GetPage) Unmarshal(b []byte) error
- func (x *GetPage) UnmarshalJSON(b []byte) error
- type Page
- func (x *Page) Clone() *Page
- func (x *Page) DeepCopy(z *Page)
- func (*Page) Descriptor() ([]byte, []int)deprecated
- func (x *Page) GetID() uint32
- func (x *Page) GetReplicaSet() uint64
- func (x *Page) Marshal() ([]byte, error)
- func (x *Page) MarshalJSON() ([]byte, error)
- func (*Page) ProtoMessage()
- func (x *Page) ProtoReflect() protoreflect.Message
- func (x *Page) Reset()
- func (x *Page) String() string
- func (x *Page) Unmarshal(b []byte) error
- func (x *Page) UnmarshalJSON(b []byte) error
- type PageLocalRepo
- func (r *PageLocalRepo) Create(m *Page) error
- func (r *PageLocalRepo) CreateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Page) (err error)
- func (r *PageLocalRepo) Delete(id uint32) error
- func (r *PageLocalRepo) DeleteWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id uint32) error
- func (r *PageLocalRepo) Iter(pk PagePartKey, ito *store.IterOption, cb func(m *Page) bool) error
- func (r *PageLocalRepo) IterWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, pk PagePartKey, ...) error
- func (r *PageLocalRepo) List(pk PagePartKey, lo *store.ListOption, cond func(m *Page) bool) ([]*Page, error)
- func (r *PageLocalRepo) ListWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, pk PagePartKey, ...) ([]*Page, error)
- func (r *PageLocalRepo) Read(id uint32, m *Page) (*Page, error)
- func (r *PageLocalRepo) ReadByReplicaSetID(replicaSet uint64, id uint32, m *Page) (*Page, error)
- func (r *PageLocalRepo) ReadByReplicaSetIDWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, replicaSet uint64, id uint32, ...) (*Page, error)
- func (r *PageLocalRepo) ReadWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, id uint32, m *Page) (*Page, error)
- func (r *PageLocalRepo) Save(m *Page) error
- func (r *PageLocalRepo) SaveWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Page) (err error)
- func (r *PageLocalRepo) Update(id uint32, m *Page) error
- func (r *PageLocalRepo) UpdateWithTxn(txn *rony.StoreTxn, alloc *tools.Allocator, m *Page) error
- type PagePK
- type PagePartKey
- type PageReplicaSetIDPK
- type TunnelMessage
- func (x *TunnelMessage) Clone() *TunnelMessage
- func (x *TunnelMessage) DeepCopy(z *TunnelMessage)
- func (*TunnelMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TunnelMessage) Fill(senderID []byte, senderReplicaSet uint64, e *rony.MessageEnvelope, ...)
- func (x *TunnelMessage) GetEnvelope() *rony.MessageEnvelope
- func (x *TunnelMessage) GetSenderID() []byte
- func (x *TunnelMessage) GetSenderReplicaSet() uint64
- func (x *TunnelMessage) GetStore() []*rony.KeyValue
- func (x *TunnelMessage) Marshal() ([]byte, error)
- func (x *TunnelMessage) MarshalJSON() ([]byte, error)
- func (*TunnelMessage) ProtoMessage()
- func (x *TunnelMessage) ProtoReflect() protoreflect.Message
- func (x *TunnelMessage) Reset()
- func (x *TunnelMessage) String() string
- func (x *TunnelMessage) Unmarshal(b []byte) error
- func (x *TunnelMessage) UnmarshalJSON(b []byte) error
Constants ¶
View Source
const C_EdgeNode int64 = 999040174
View Source
const C_GetPage int64 = 3721890413
View Source
const C_Page int64 = 3023575326
View Source
const C_TunnelMessage int64 = 3271476222
Variables ¶
View Source
var File_imsg_proto protoreflect.FileDescriptor
View Source
var PoolEdgeNode = poolEdgeNode{}
View Source
var PoolGetPage = poolGetPage{}
View Source
var PoolPage = poolPage{}
View Source
var PoolTunnelMessage = poolTunnelMessage{}
Functions ¶
This section is empty.
Types ¶
type EdgeNode ¶
type EdgeNode struct { ServerID []byte `protobuf:"bytes,1,opt,name=ServerID,proto3" json:"ServerID,omitempty"` ReplicaSet uint64 `protobuf:"varint,2,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` Hash uint64 `protobuf:"varint,3,opt,name=Hash,proto3" json:"Hash,omitempty"` GatewayAddr []string `protobuf:"bytes,7,rep,name=GatewayAddr,proto3" json:"GatewayAddr,omitempty"` TunnelAddr []string `protobuf:"bytes,8,rep,name=TunnelAddr,proto3" json:"TunnelAddr,omitempty"` // contains filtered or unexported fields }
EdgeNode
func (*EdgeNode) Descriptor
deprecated
func (*EdgeNode) GetGatewayAddr ¶
func (*EdgeNode) GetReplicaSet ¶
func (*EdgeNode) GetServerID ¶
func (*EdgeNode) GetTunnelAddr ¶
func (*EdgeNode) MarshalJSON ¶ added in v0.10.3
func (*EdgeNode) ProtoMessage ¶
func (*EdgeNode) ProtoMessage()
func (*EdgeNode) ProtoReflect ¶
func (x *EdgeNode) ProtoReflect() protoreflect.Message
func (*EdgeNode) UnmarshalJSON ¶ added in v0.10.3
type GetPage ¶
type GetPage struct { PageID uint32 `protobuf:"varint,1,opt,name=PageID,proto3" json:"PageID,omitempty"` ReplicaSet uint64 `protobuf:"varint,2,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` // contains filtered or unexported fields }
GetPage @Function @Return: Page
func (*GetPage) Descriptor
deprecated
func (*GetPage) GetReplicaSet ¶
func (*GetPage) MarshalJSON ¶ added in v0.10.3
func (*GetPage) ProtoMessage ¶
func (*GetPage) ProtoMessage()
func (*GetPage) ProtoReflect ¶
func (x *GetPage) ProtoReflect() protoreflect.Message
func (*GetPage) UnmarshalJSON ¶ added in v0.10.3
type Page ¶
type Page struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` ReplicaSet uint64 `protobuf:"varint,2,opt,name=ReplicaSet,proto3" json:"ReplicaSet,omitempty"` // contains filtered or unexported fields }
Page
func (*Page) Descriptor
deprecated
func (*Page) GetReplicaSet ¶
func (*Page) MarshalJSON ¶ added in v0.10.3
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
func (*Page) UnmarshalJSON ¶ added in v0.10.3
type PageLocalRepo ¶ added in v0.12.0
type PageLocalRepo struct {
// contains filtered or unexported fields
}
func NewPageLocalRepo ¶ added in v0.12.0
func NewPageLocalRepo(s rony.Store) *PageLocalRepo
func (*PageLocalRepo) Create ¶ added in v0.12.0
func (r *PageLocalRepo) Create(m *Page) error
func (*PageLocalRepo) CreateWithTxn ¶ added in v0.12.0
func (*PageLocalRepo) Delete ¶ added in v0.12.0
func (r *PageLocalRepo) Delete(id uint32) error
func (*PageLocalRepo) DeleteWithTxn ¶ added in v0.12.0
func (*PageLocalRepo) Iter ¶ added in v0.12.0
func (r *PageLocalRepo) Iter( pk PagePartKey, ito *store.IterOption, cb func(m *Page) bool, ) error
func (*PageLocalRepo) IterWithTxn ¶ added in v0.12.0
func (r *PageLocalRepo) IterWithTxn( txn *rony.StoreTxn, alloc *tools.Allocator, pk PagePartKey, ito *store.IterOption, cb func(m *Page) bool, ) error
func (*PageLocalRepo) List ¶ added in v0.12.0
func (r *PageLocalRepo) List( pk PagePartKey, lo *store.ListOption, cond func(m *Page) bool, ) ([]*Page, error)
func (*PageLocalRepo) ListWithTxn ¶ added in v0.12.0
func (r *PageLocalRepo) ListWithTxn( txn *rony.StoreTxn, alloc *tools.Allocator, pk PagePartKey, lo *store.ListOption, cond func(m *Page) bool, ) ([]*Page, error)
func (*PageLocalRepo) Read ¶ added in v0.12.0
func (r *PageLocalRepo) Read(id uint32, m *Page) (*Page, error)
func (*PageLocalRepo) ReadByReplicaSetID ¶ added in v0.12.0
func (*PageLocalRepo) ReadByReplicaSetIDWithTxn ¶ added in v0.12.0
func (*PageLocalRepo) ReadWithTxn ¶ added in v0.12.0
func (*PageLocalRepo) Save ¶ added in v0.12.0
func (r *PageLocalRepo) Save(m *Page) error
func (*PageLocalRepo) SaveWithTxn ¶ added in v0.12.0
func (*PageLocalRepo) Update ¶ added in v0.12.0
func (r *PageLocalRepo) Update(id uint32, m *Page) error
func (*PageLocalRepo) UpdateWithTxn ¶ added in v0.12.0
type PagePartKey ¶ added in v0.12.1
type PagePartKey interface {
// contains filtered or unexported methods
}
type PageReplicaSetIDPK ¶ added in v0.12.0
type PageReplicaSetIDPK struct {
ReplicaSet uint64
}
type TunnelMessage ¶
type TunnelMessage struct { SenderID []byte `protobuf:"bytes,1,opt,name=SenderID,proto3" json:"SenderID,omitempty"` SenderReplicaSet uint64 `protobuf:"varint,2,opt,name=SenderReplicaSet,proto3" json:"SenderReplicaSet,omitempty"` Store []*rony.KeyValue `protobuf:"bytes,3,rep,name=Store,proto3" json:"Store,omitempty"` Envelope *rony.MessageEnvelope `protobuf:"bytes,4,opt,name=Envelope,proto3" json:"Envelope,omitempty"` // contains filtered or unexported fields }
TunnelMessage
func (*TunnelMessage) Clone ¶ added in v0.12.0
func (x *TunnelMessage) Clone() *TunnelMessage
func (*TunnelMessage) DeepCopy ¶
func (x *TunnelMessage) DeepCopy(z *TunnelMessage)
func (*TunnelMessage) Descriptor
deprecated
func (*TunnelMessage) Descriptor() ([]byte, []int)
Deprecated: Use TunnelMessage.ProtoReflect.Descriptor instead.
func (*TunnelMessage) Fill ¶
func (x *TunnelMessage) Fill(senderID []byte, senderReplicaSet uint64, e *rony.MessageEnvelope, kvs ...*rony.KeyValue)
func (*TunnelMessage) GetEnvelope ¶
func (x *TunnelMessage) GetEnvelope() *rony.MessageEnvelope
func (*TunnelMessage) GetSenderID ¶
func (x *TunnelMessage) GetSenderID() []byte
func (*TunnelMessage) GetSenderReplicaSet ¶
func (x *TunnelMessage) GetSenderReplicaSet() uint64
func (*TunnelMessage) GetStore ¶
func (x *TunnelMessage) GetStore() []*rony.KeyValue
func (*TunnelMessage) Marshal ¶
func (x *TunnelMessage) Marshal() ([]byte, error)
func (*TunnelMessage) MarshalJSON ¶ added in v0.10.3
func (x *TunnelMessage) MarshalJSON() ([]byte, error)
func (*TunnelMessage) ProtoMessage ¶
func (*TunnelMessage) ProtoMessage()
func (*TunnelMessage) ProtoReflect ¶
func (x *TunnelMessage) ProtoReflect() protoreflect.Message
func (*TunnelMessage) Reset ¶
func (x *TunnelMessage) Reset()
func (*TunnelMessage) String ¶
func (x *TunnelMessage) String() string
func (*TunnelMessage) Unmarshal ¶
func (x *TunnelMessage) Unmarshal(b []byte) error
func (*TunnelMessage) UnmarshalJSON ¶ added in v0.10.3
func (x *TunnelMessage) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.