Documentation ¶
Index ¶
- Constants
- Variables
- type ScopeMgr
- func (s *ScopeMgr) Alloc(ctx context.Context, name string, count int) (base, new uint64, err error)
- func (s *ScopeMgr) Apply(ctx context.Context, operTypes []int32, datas [][]byte, ...) error
- func (s *ScopeMgr) Flush(ctx context.Context) error
- func (s *ScopeMgr) GetCurrent(name string) uint64
- func (s *ScopeMgr) GetModuleName() string
- func (s *ScopeMgr) LoadData(ctx context.Context) error
- func (s *ScopeMgr) NotifyLeaderChange(ctx context.Context, leader uint64, host string)
- func (s *ScopeMgr) SetModuleName(module string)
- func (s *ScopeMgr) SetRaftServer(raftServer raftserver.RaftServer)
- type ScopeMgrAPI
Constants ¶
View Source
const (
OperTypeAllocScope = iota + 1
)
Variables ¶
View Source
var ( MaxCount = 1000000 ErrInvalidCount = errors.New("request count is invalid") )
Functions ¶
This section is empty.
Types ¶
type ScopeMgr ¶
type ScopeMgr struct {
// contains filtered or unexported fields
}
func (*ScopeMgr) GetCurrent ¶
func (*ScopeMgr) GetModuleName ¶
func (*ScopeMgr) NotifyLeaderChange ¶
nothing to do
func (*ScopeMgr) SetModuleName ¶
func (*ScopeMgr) SetRaftServer ¶
func (s *ScopeMgr) SetRaftServer(raftServer raftserver.RaftServer)
Click to show internal directories.
Click to hide internal directories.