Documentation
¶
Index ¶
- Constants
- func GetFromMapString(mpValue map[string]any, key string) string
- func HttpBatchService(gen *Generator) ...
- func HttpService(gen *Generator) ...
- func InitWorkerId(g *Generator) error
- func IsProdEnv() bool
- type AppInfo
- type BatchIds
- type Generator
- type NameSpace
- type ResultBatch
- type ResultOne
Constants ¶
View Source
const ( MaxBatchSize = 8192 IncrIdBits = 12 DefaultNamespace = "default" )
Variables ¶
This section is empty.
Functions ¶
func HttpBatchService ¶
func HttpBatchService(gen *Generator) func(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func HttpService ¶
func HttpService(gen *Generator) func(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
func InitWorkerId ¶
Types ¶
type AppInfo ¶
func GetAppInfo ¶
func GetAppInfo() *AppInfo
type Generator ¶
type Generator struct { NameSpaces map[string]*NameSpace // contains filtered or unexported fields }
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) GenBatchId ¶
func (*Generator) SetWorkerId ¶
type ResultBatch ¶
Click to show internal directories.
Click to hide internal directories.