Documentation ¶
Index ¶
Constants ¶
View Source
const ( //StartFailed start failed with reason which we have not classify StartFailed = 1000 + iota InvalidAccount ConfigLoadFailed EngineStartFailed CreateTunFailed TunUpdateFailed NetMapRefreshFailed )
NOTE: notify error to mobile platform, don't delete any item and resort the order.
Variables ¶
View Source
var ( ErrVersionMissing = withcode(errors.New("version header is missing"), InvalidVersion) ErrMajorVersionMismatch = withcode(errors.New("major version mismatch"), IncompatibleVersion) ErrInvalidAuthKey = fn.ErrorWithStatusCode(withcode(errors.New("invalid authentication privateKey"), InvalidSecretKey), http.StatusUnauthorized) ErrInvalidToken = fn.ErrorWithStatusCode(withcode(errors.New("invalid token"), InvalidToken), http.StatusForbidden) ErrServerInternal = withcode(errors.New("server internal error"), InternalError) ErrNotFound = withcode(errors.New("not found"), NotFound) ErrIllegalRequest = withcode(errors.New("illegal request"), IllegalRequest) ErrIllegalOperation = withcode(errors.New("illegal operation"), IllegalOperation) ErrDeviceExceed = withcode(errors.New("device exceed"), DeviceExceed) )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.