Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func EVPBytesToKey(password string, keyLen int) (key []byte)
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func GenerateRandomString(length int) (res string)
- func HmacMD5(key []byte, data []byte) []byte
- func HmacSHA1(key []byte, data []byte) []byte
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func MD5Sum(d []byte) []byte
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func PrintVersion()
- func SHA1Sum(d []byte) []byte
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type Buffer
- type DebugLog
- type Password
- type Statistic
- func (s *Statistic) BytesDownload(b uint64)
- func (s *Statistic) ClearDownload()
- func (s *Statistic) ClearFailedCount()
- func (s *Statistic) ClearLatency()
- func (s *Statistic) ClearUpload()
- func (s *Statistic) GetFailedCount() uint32
- func (s *Statistic) GetHighestLastHourBps() uint64
- func (s *Statistic) GetHighestLastMinuteBps() uint64
- func (s *Statistic) GetHighestLastSecondBps() uint64
- func (s *Statistic) GetHighestLastTenMinutesBps() uint64
- func (s *Statistic) GetLastHourBps() uint64
- func (s *Statistic) GetLastMinuteBps() uint64
- func (s *Statistic) GetLastSecondBps() uint64
- func (s *Statistic) GetLastTenMinutesBps() uint64
- func (s *Statistic) GetLatency() int64
- func (s *Statistic) GetTotalDownload() uint64
- func (s *Statistic) GetTotalUploaded() uint64
- func (s *Statistic) IncreaseFailedCount()
- func (s *Statistic) IncreaseTotalDownload(b uint64)
- func (s *Statistic) IncreaseTotalUpload(b uint64)
- func (s *Statistic) SetFailedCount(b uint32)
- func (s *Statistic) SetHighestLastHourBps(b uint64)
- func (s *Statistic) SetHighestLastMinuteBps(b uint64)
- func (s *Statistic) SetHighestLastSecondBps(b uint64)
- func (s *Statistic) SetHighestLastTenMinutesBps(b uint64)
- func (s *Statistic) SetLastHourBps(b uint64)
- func (s *Statistic) SetLastMinuteBps(b uint64)
- func (s *Statistic) SetLastSecondBps(b uint64)
- func (s *Statistic) SetLastTenMinutesBps(b uint64)
- func (s *Statistic) SetLatency(l int64)
- func (s *Statistic) SetTotalDownload(b uint64)
- func (s *Statistic) SetTotalUploaded(b uint64)
- func (s *Statistic) Tick()
- type TCPOutboundHandler
- type TotalStatistic
- func (ts *TotalStatistic) AddDownload(b uint64)
- func (ts *TotalStatistic) AddUpload(b uint64)
- func (ts *TotalStatistic) GetDownload() uint64
- func (ts *TotalStatistic) GetUpload() uint64
- func (ts *TotalStatistic) ResetDownload() uint64
- func (ts *TotalStatistic) ResetUpload() uint64
- func (ts *TotalStatistic) SetDownload(b uint64)
- func (ts *TotalStatistic) SetUpload(b uint64)
- type UDPOutboundHandler
- type WebsocketMessage
Constants ¶
View Source
const ( PANIC = iota FATAL ERROR WARNING INFO DEBUG )
View Source
const ( CMD_ERROR = iota CMD_RESPONSE CMD_AUTH CMD_START_REVERSE_SSH CMD_REVERSE_SSH_STARTED CMD_STOP_REVERSE_SSH CMD_REVERSE_SSH_STOPPED CMD_NEW_RULES CMD_ADD_SERVER CMD_DEL_SERVER CMD_SET_PORT CMD_SET_KEY CMD_SET_METHOD )
Variables ¶
View Source
var ( TotalStat = new(TotalStatistic) DeltaStat = new(TotalStatistic) )
Functions ¶
func EVPBytesToKey ¶
func GenerateRandomString ¶
func PrintVersion ¶
func PrintVersion()
Types ¶
type Statistic ¶
func NewStatistic ¶
func NewStatistic() *Statistic
func (*Statistic) BytesDownload ¶
func (*Statistic) ClearDownload ¶
func (s *Statistic) ClearDownload()
func (*Statistic) ClearFailedCount ¶
func (s *Statistic) ClearFailedCount()
func (*Statistic) ClearLatency ¶
func (s *Statistic) ClearLatency()
func (*Statistic) ClearUpload ¶
func (s *Statistic) ClearUpload()
func (*Statistic) GetFailedCount ¶
func (*Statistic) GetHighestLastHourBps ¶
func (*Statistic) GetHighestLastMinuteBps ¶
func (*Statistic) GetHighestLastSecondBps ¶
func (*Statistic) GetHighestLastTenMinutesBps ¶
func (*Statistic) GetLastHourBps ¶
func (*Statistic) GetLastMinuteBps ¶
func (*Statistic) GetLastSecondBps ¶
func (*Statistic) GetLastTenMinutesBps ¶
func (*Statistic) GetLatency ¶
func (*Statistic) GetTotalDownload ¶
func (*Statistic) GetTotalUploaded ¶
func (*Statistic) IncreaseFailedCount ¶
func (s *Statistic) IncreaseFailedCount()
func (*Statistic) IncreaseTotalDownload ¶
func (*Statistic) IncreaseTotalUpload ¶
func (*Statistic) SetFailedCount ¶
func (*Statistic) SetHighestLastHourBps ¶
func (*Statistic) SetHighestLastMinuteBps ¶
func (*Statistic) SetHighestLastSecondBps ¶
func (*Statistic) SetHighestLastTenMinutesBps ¶
func (*Statistic) SetLastHourBps ¶
func (*Statistic) SetLastMinuteBps ¶
func (*Statistic) SetLastSecondBps ¶
func (*Statistic) SetLastTenMinutesBps ¶
func (*Statistic) SetLatency ¶
func (*Statistic) SetTotalDownload ¶
func (*Statistic) SetTotalUploaded ¶
type TotalStatistic ¶
type TotalStatistic struct {
// contains filtered or unexported fields
}
func (*TotalStatistic) AddDownload ¶
func (ts *TotalStatistic) AddDownload(b uint64)
func (*TotalStatistic) AddUpload ¶
func (ts *TotalStatistic) AddUpload(b uint64)
func (*TotalStatistic) GetDownload ¶
func (ts *TotalStatistic) GetDownload() uint64
func (*TotalStatistic) GetUpload ¶
func (ts *TotalStatistic) GetUpload() uint64
func (*TotalStatistic) ResetDownload ¶
func (ts *TotalStatistic) ResetDownload() uint64
func (*TotalStatistic) ResetUpload ¶
func (ts *TotalStatistic) ResetUpload() uint64
func (*TotalStatistic) SetDownload ¶
func (ts *TotalStatistic) SetDownload(b uint64)
func (*TotalStatistic) SetUpload ¶
func (ts *TotalStatistic) SetUpload(b uint64)
type UDPOutboundHandler ¶
type UDPOutboundHandler func(net.PacketConn, []byte, string) error
type WebsocketMessage ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.