Documentation
¶
Index ¶
Constants ¶
View Source
const ( AddSocks5ServerToGroupFailedErr = "add socks5 server to group failed: %w" ClientConfigIsEmpty = "mieru client config is empty" ClientConfigNotExist = "mieru client config file doesn't exist" ClientGetActiveProfileFailedErr = "mieru client get active profile failed: %w" ClientNotRunning = "mieru client is not running" ClientNotRunningErr = "mieru client is not running: %w" CreateClientLifecycleRPCClientFailedErr = "create mieru client lifecycle RPC client failed: %w" CreateEmptyServerConfigFailedErr = "create empty mieru server config file failed: %w" CreateServerConfigRPCClientFailedErr = "create mieru server config RPC client failed: %w" CreateServerLifecycleRPCClientFailedErr = "create mieru server lifecycle RPC client failed: %w" CreateSocks5ServerFailedErr = "create socks5 server failed: %w" DecodeHashedPasswordFailedErr = "decode hashed password failed: %w" ExitFailedErr = "process exit failed: %w" GetClientConfigFailedErr = "get mieru client config failed: %w" GetHeapProfileFailedErr = "get heap profile failed: %w" GetServerConfigFailedErr = "get mieru server config failed: %w" GetServerStatusFailedErr = "get mieru server status failed: %w" GetThreadDumpFailedErr = "get thread dump failed: %w" LoadClientConfigFailedErr = "load mieru client config failed: %w" LoadServerConfigFailedErr = "load mieru server config failed: %w" SegmentSizeTooBig = "segment size too big" ServerNotRunning = "mieru server daemon is not running" ServerNotRunningErr = "mieru server daemon is not running: %w" ServerProxyNotRunningErr = "mieru server proxy is not running: %w" SetServerConfigFailedErr = "set mieru server config failed: %w" StartClientFailedErr = "start mieru client failed: %w" StartCPUProfileFailedErr = "start CPU profile failed: %w" StartServerProxyFailedErr = "start mieru server proxy failed: %w" StopServerProxyFailedErr = "stop mieru server proxy failed: %w" StoreClientConfigFailedErr = "store mieru client config failed: %w" ValidateFullClientConfigFailedErr = "validate full client config failed: %w" ValidateServerConfigPatchFailedErr = "validate server config patch failed: %w" )
Variables ¶
View Source
var ( ErrAlreadyExist = fmt.Errorf("ALREADY EXIST") ErrAlreadyStarted = fmt.Errorf("ALREADY STARTED") ErrDisconnected = fmt.Errorf("DISCONNECTED") ErrEmpty = fmt.Errorf("EMPTY") ErrFileNotExist = fmt.Errorf("FILE NOT EXIST") ErrFull = fmt.Errorf("FULL") ErrIDNotMatch = fmt.Errorf("ID NOT MATCH") ErrInternal = fmt.Errorf("INTERNAL") ErrInvalidArgument = fmt.Errorf("INVALID ARGUMENT") ErrInvalidOperation = fmt.Errorf("INVALID OPERATION") ErrNoEnoughData = fmt.Errorf("NO ENOUGH DATA") ErrNotFound = fmt.Errorf("NOT FOUND") ErrNotRunning = fmt.Errorf("NOT RUNNING") ErrNullPointer = fmt.Errorf("NULL POINTER") ErrOutOfRange = fmt.Errorf("OUT OF RANGE") ErrTimeout = fmt.Errorf("TIMEOUT") ErrUnknownCommand = fmt.Errorf("UNKNOWN COMMAND") ErrUnsupported = fmt.Errorf("UNSUPPORTED") )
Functions ¶
func IsConnRefused ¶
IsConnRefused returns true if the cause of error is connection refused.
func IsPermissionDenied ¶
IsPermissionDenied returns true if the cause of error is permission denied.
Types ¶
Click to show internal directories.
Click to hide internal directories.