services

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

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

Go to latest
Published: May 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineErrors

func CombineErrors(err error, serviceError Error) error

func DetermineErrorCode

func DetermineErrorCode(err error, serviceError Error) (bool, uint32)

func DropAllPrivileges

func DropAllPrivileges() error

func TokenIsMemberOfBuiltInAdministrator

func TokenIsMemberOfBuiltInAdministrator(token windows.Token) bool

Types

type Error

type Error uint32
const (
	ErrorSuccess Error = iota
	ErrorRingloggerOpen
	ErrorLoadConfiguration
	ErrorCreateWintun
	ErrorDetermineWintunName
	ErrorUAPIListen
	ErrorDNSLookup
	ErrorFirewall
	ErrorDeviceSetConfig
	ErrorBindSocketsToDefaultRoutes
	ErrorSetNetConfig
	ErrorDetermineExecutablePath
	ErrorOpenNULFile
	ErrorTrackTunnels
	ErrorEnumerateSessions
	ErrorDropPrivileges
	ErrorWin32
)

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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