mirror of
https://github.com/fhmq/hmq.git
synced 2026-09-01 15:24:53 +00:00
* 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
31 lines
614 B
Go
31 lines
614 B
Go
package config
|
|
|
|
import "fmt"
|
|
|
|
// UnsupportedDirective error.
|
|
type UnsupportedDirective struct {
|
|
text string
|
|
}
|
|
|
|
// Error implements the error interface for unsupported directives.
|
|
func (e UnsupportedDirective) Error() string {
|
|
return e.text
|
|
}
|
|
|
|
// Invalid config error.
|
|
type Invalid struct {
|
|
text string
|
|
}
|
|
|
|
// Error implements the error interface for invalid config error.
|
|
func (e Invalid) Error() string {
|
|
return e.text
|
|
}
|
|
|
|
// InvalidErrorf creates a new Invalid error.
|
|
func InvalidErrorf(format string, a ...interface{}) Invalid {
|
|
return Invalid{
|
|
text: fmt.Sprintf("invalid krb5 config "+format, a...),
|
|
}
|
|
}
|