mirror of
https://github.com/fhmq/hmq.git
synced 2026-09-01 23:34:52 +00:00
Plugins support (#46)
* modify * update * add acl * add feature * update dockerfile * add deploy * update * update * plugins * plugins * update * update * update * fixed * remove * fixed * add log * update * fixed * update * fix config * add http api * add http api * resp * add config for work chan * update * fixed * update * disable trace * fixed * change acl * fixed * fixed res * dd * dd * ddd * dd * update * fixed * update * add * fixed * update key * add log * update * format * update * update auth * update * update readme * added * update * fixed * fixed * fix * upade * update * update
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
package ndr
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Malformed implements the error interface for malformed NDR encoding errors.
|
||||
type Malformed struct {
|
||||
EText string
|
||||
}
|
||||
|
||||
// Error implements the error interface on the Malformed struct.
|
||||
func (e Malformed) Error() string {
|
||||
return fmt.Sprintf("malformed NDR stream: %s", e.EText)
|
||||
}
|
||||
|
||||
// Errorf formats an error message into a malformed NDR error.
|
||||
func Errorf(format string, a ...interface{}) Malformed {
|
||||
return Malformed{EText: fmt.Sprintf(format, a...)}
|
||||
}
|
||||
Reference in New Issue
Block a user