global

package
v0.0.0-...-fb7e41f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdType_UUID       = "uuid"
	IdType_Number     = "number"
	IdType_TimeNumber = "timenumber"
	IdType_MongoDB    = "mongodb"
)

Variables

This section is empty.

Functions

func CreateGlobalID

func CreateGlobalID(ctx dotweb.Context) error

创建GlobalID Author: panxinming CreateTime: 2017-02-16 11:00 HttpMethod:Get Route Param: idtype: 代表请求ID方式,目前支持:uuid、number、timenumber、mongodb Get Param: appid: 代表请求的应用 module: 代表请求应用某特定模块

返回结构:HandlerResponse 0: 成功 -100001:idtype is empty -100002:appid & module is empty -201001:no config RedisID_Global Redis -201002:create global number error redis Response.Message = GlobalID //string

UPDATE LOG: 1、初始版本 --2017-02-16 11:00 by pxm

Types

This section is empty.

Jump to

Keyboard shortcuts

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