Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GinMode string Addr string LimitConnection int DefaultHammerTime time.Duration WriteLog bool LogLevel string LogFile string DisableConsoleColor bool LimitConnections int MaxHeaderBytes uint ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration SyncSwitch bool BlockCacheLimit int TransCacheLimit int DataBase *common.DataBaseConfig Interval time.Duration }
Config server config
type ScanServer ¶
type ScanServer struct { Server *http.Server G *errgroup.Group // contains filtered or unexported fields }
ScanServer hold instance of server
func GetServer ¶
func GetServer(g *errgroup.Group, config *Config) (server *ScanServer)
GetServer init scanServer and return server instance
func (*ScanServer) RunServer ¶
func (sl *ScanServer) RunServer()
RunServer Run our server in a goroutine
Click to show internal directories.
Click to hide internal directories.