common

package
v0.0.0-...-1a2806f Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderToken token key define
	HeaderToken = "token"
	// HeaderUID UID key define
	HeaderUID = "UID"
)
View Source
const (
	//PackageLengthSize package length size
	PackageLengthSize = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicConfig

type LogicConfig struct {
	QueueSize          int `mapstructure:"queue_size"`
	WorkerPoolCapacity int `mapstructure:"worker_pool_capacity"`
}

LogicConfig logic common config

func (*LogicConfig) GetQueueSize

func (s *LogicConfig) GetQueueSize() int

GetQueueSize get module queue size

type NodeInfo

type NodeInfo struct {
	ID      int    `mapstructure:"id"`
	Name    string `mapstructure:"name"`
	Address string `mapstructure:"address"`
}

NodeInfo server node info

Jump to

Keyboard shortcuts

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