Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alloc ¶
type Alloc struct {
// contains filtered or unexported fields
}
Alloc lease /segment/{table}/alloc/{addr}, watch /segment/{table}/routing/{addr}/{tag}/{hashId} handle pending routing rule, set value 'running' if the 'pending' rule is ready to serve. If alloc goes down, it will try to delete lease key and delete --prefix routing key at once; assign will do the same in case alloc crashed.
func (*Alloc) GenUserSeq ¶
type Server ¶
type Server struct { *pb.UnimplementedAllocServer // contains filtered or unexported fields }
func (*Server) GenUserSeq ¶
func (a *Server) GenUserSeq(ctx context.Context, in *pb.GenUserSeqReq) (*pb.GenUserSeqResp, error)
func (*Server) GetUserSeq ¶
func (a *Server) GetUserSeq(ctx context.Context, in *pb.GetUserSeqReq) (*pb.GetUserSeqResp, error)
Click to show internal directories.
Click to hide internal directories.