core

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTCPEntry

func CloseTCPEntry(row *MIB_TCPROW2) error

func FireHostsSwitch

func FireHostsSwitch() bool

func GetProcessNameMap

func GetProcessNameMap() map[uint32]string

func GuaranteeSingleProcess

func GuaranteeSingleProcess()

func OpenRegistry

func OpenRegistry()

OpenRegistry set DNS related registry

func ReadCurrentHostConfig

func ReadCurrentHostConfig() []byte

func Triggered

func Triggered(f func())

Types

type Batcher

type Batcher struct {
	*fsnotify.Watcher

	Events chan []fsnotify.Event // Events are returned on this channel
	// contains filtered or unexported fields
}

https://github.com/spf13/hugo/blob/master/watcher/batcher.go

func New

func New(interval time.Duration) (*Batcher, error)

func (*Batcher) Close

func (b *Batcher) Close()

type ClassReader

type ClassReader struct {
	// contains filtered or unexported fields
}

func NewClassReader

func NewClassReader(bytecode []byte) *ClassReader

func (*ClassReader) ReadBytes

func (this *ClassReader) ReadBytes(len int) []byte

func (*ClassReader) ReadIp

func (this *ClassReader) ReadIp(bytes []byte) string

func (*ClassReader) ReadPort

func (this *ClassReader) ReadPort(bytes []byte) uint16

func (*ClassReader) ReadUint32

func (this *ClassReader) ReadUint32() uint32

type DWORD

type DWORD uint32

type MIB_TCPROW2

type MIB_TCPROW2 struct {
	// contains filtered or unexported fields
}

type MIB_TCPTABLE2

type MIB_TCPTABLE2 struct {
	// contains filtered or unexported fields
}

func (*MIB_TCPTABLE2) String

func (t *MIB_TCPTABLE2) String() string

type TCP_CONNECTION_OFFLOAD_STATE

type TCP_CONNECTION_OFFLOAD_STATE uint32
const (
	TcpConnectionOffloadStateInHost     TCP_CONNECTION_OFFLOAD_STATE = 0
	TcpConnectionOffloadStateOffloading TCP_CONNECTION_OFFLOAD_STATE = 1
	TcpConnectionOffloadStateOffloaded  TCP_CONNECTION_OFFLOAD_STATE = 2
	TcpConnectionOffloadStateUploading  TCP_CONNECTION_OFFLOAD_STATE = 3
	TcpConnectionOffloadStateMax        TCP_CONNECTION_OFFLOAD_STATE = 4
)

Jump to

Keyboard shortcuts

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