rdb

package
v0.0.0-...-861e398 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliveRoundRobinPolicy

func AliveRoundRobinPolicy() xorm.GroupPolicyHandler

轮询方案:保证可用性 + 自动恢复 + 无从读主

Types

type NotWork

type NotWork struct {
	List map[int]bool
	sync.Mutex
}

type PkString

type PkString struct {
	Id string `xorm:"_id pk"`
}

func (*PkString) BeforeInsert

func (pk *PkString) BeforeInsert()

唯一pk处理

Jump to

Keyboard shortcuts

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