model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBusinessNotReady = errors.New("error buiness is not ready")

ErrBusinessNotReady business is not ready.

Functions

This section is empty.

Types

type ArgBusiness

type ArgBusiness struct {
	BusinessID int64
	Token      string
}

ArgBusiness rpc arg

func (*ArgBusiness) Key

func (a *ArgBusiness) Key() int64

Key rpc sharding key.

type Business

type Business struct {
	ID            int64
	CurSeq        int64
	MaxSeq        int64
	Step          int64
	Perch         int64
	BenchTime     int64
	LastTimestamp int64
	Token         string
	CTime         time.Time
	MTime         time.Time
	Mutex         sync.Mutex
}

Business business seq struct

type SeqVersion

type SeqVersion struct {
	IDC     int64
	SvrNum  int64
	SvrTime int64
}

SeqVersion seq-server version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL