Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateMajorSession() int32
- func GenerateMinorSession() int32
- func GenerateStartupSession() int32
- func GenerateTempSession() int32
- func GetConnectionSession(s int64) int32
- func GetStartupSession(s int64) int32
- func IsMajorSession(s int64) bool
- func IsMinorSession(s int64) bool
- func IsTempSession(s int64) bool
- func NewSession(startup, conn int32) int64
Constants ¶
View Source
const ( SESSION_CODE_FLAG = int32(0x40 << 24) // 0100 0000 MAJOR_SESSION_FLAG = int32(0x00) // 0000 0000 MINOR_SESSION_FLAG = int32(0x20 << 24) // 0010 0000 TEMP_SESSION_FLAG = int32(0x10 << 24) // 0001 0000 STARTUP_SESSION_MASK = int64(0x7fffffff00000000) CONNECTION_SESSION_MASK = int64(0x000000007fffffff) )
Variables ¶
View Source
var (
STARTUP_SESSION_EXPIRE = 120 * time.Second
)
Functions ¶
func GenerateMajorSession ¶
func GenerateMajorSession() int32
func GenerateMinorSession ¶
func GenerateMinorSession() int32
func GenerateStartupSession ¶
func GenerateStartupSession() int32
func GenerateTempSession ¶
func GenerateTempSession() int32
func GetConnectionSession ¶
func GetStartupSession ¶
func IsMajorSession ¶
func IsMinorSession ¶
func IsTempSession ¶
func NewSession ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.