Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(i ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugj(j echolog.JSON)
- func Error(i ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorj(j echolog.JSON)
- func Fatal(i ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalj(j echolog.JSON)
- func HTTPErrorHandler(err error, c echo.Context)
- func Info(i ...interface{})
- func Infof(format string, args ...interface{})
- func Infoj(j echolog.JSON)
- func Panic(i ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicj(j echolog.JSON)
- func Print(i ...interface{})
- func Printf(format string, i ...interface{})
- func Printj(j echolog.JSON)
- func Warn(i ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnj(j echolog.JSON)
- type CustomValidator
- type Handler
- func (h *Handler) BootImageAdd(c echo.Context) error
- func (h *Handler) BootImageDelete(c echo.Context) error
- func (h *Handler) BootImageFind(c echo.Context) error
- func (h *Handler) BootImageList(c echo.Context) error
- func (h *Handler) HostAdd(c echo.Context) error
- func (h *Handler) HostDelete(c echo.Context) error
- func (h *Handler) HostFind(c echo.Context) error
- func (h *Handler) HostFindByTags(c echo.Context) error
- func (h *Handler) HostList(c echo.Context) error
- func (h *Handler) HostProvision(c echo.Context) error
- func (h *Handler) HostTag(c echo.Context) error
- func (h *Handler) HostUnprovision(c echo.Context) error
- func (h *Handler) HostUntag(c echo.Context) error
- func (h *Handler) Index(c echo.Context) error
- func (h *Handler) SetupRoutes(e *echo.Echo)
- type MyLogger
- func (l *MyLogger) Debug(i ...interface{})
- func (l *MyLogger) Debugf(format string, args ...interface{})
- func (l *MyLogger) Debugj(j echolog.JSON)
- func (l *MyLogger) Error(i ...interface{})
- func (l *MyLogger) Errorf(format string, args ...interface{})
- func (l *MyLogger) Errorj(j echolog.JSON)
- func (l *MyLogger) Fatal(i ...interface{})
- func (l *MyLogger) Fatalf(format string, args ...interface{})
- func (l *MyLogger) Fatalj(j echolog.JSON)
- func (l *MyLogger) Formatter() logrus.Formatter
- func (l *MyLogger) Info(i ...interface{})
- func (l *MyLogger) Infof(format string, args ...interface{})
- func (l *MyLogger) Infoj(j echolog.JSON)
- func (l *MyLogger) Level() echolog.Lvl
- func (l *MyLogger) Output() io.Writer
- func (l *MyLogger) Panic(i ...interface{})
- func (l *MyLogger) Panicf(format string, args ...interface{})
- func (l *MyLogger) Panicj(j echolog.JSON)
- func (l *MyLogger) Prefix() string
- func (l *MyLogger) Print(i ...interface{})
- func (l *MyLogger) Printf(format string, args ...interface{})
- func (l *MyLogger) Printj(j echolog.JSON)
- func (l *MyLogger) SetFormatter(formatter logrus.Formatter)
- func (l *MyLogger) SetHeader(h string)
- func (l *MyLogger) SetLevel(v echolog.Lvl)
- func (l *MyLogger) SetOutput(w io.Writer)
- func (l *MyLogger) SetPrefix(p string)
- func (l *MyLogger) Warn(i ...interface{})
- func (l *MyLogger) Warnf(format string, args ...interface{})
- func (l *MyLogger) Warnj(j echolog.JSON)
- type Server
Constants ¶
View Source
const ( DefaultPort = 6667 ContextKeyJWT = "grendelapi" )
Variables ¶
View Source
var Version = "vDEV"
Version of Grendel
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf output format message of debug level
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf output format message of error level
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf output format message of fatal level
func HTTPErrorHandler ¶
func HTTPErrorHandler(err error, c echo.Context)
func Infof ¶
func Infof(format string, args ...interface{})
Infof output format message of info level
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf output format message of panic level
func Printf ¶
func Printf(format string, i ...interface{})
Printf output format message of print level
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
type Handler ¶
func (*Handler) BootImageAdd ¶ added in v0.0.2
func (*Handler) BootImageDelete ¶ added in v0.0.6
func (*Handler) BootImageFind ¶ added in v0.0.2
func (*Handler) BootImageList ¶ added in v0.0.2
func (*Handler) HostDelete ¶ added in v0.0.6
func (*Handler) HostFindByTags ¶ added in v0.0.5
func (*Handler) HostProvision ¶ added in v0.0.4
func (*Handler) HostUnprovision ¶ added in v0.0.4
func (*Handler) SetupRoutes ¶
func (h *Handler) SetupRoutes(e *echo.Echo)
type MyLogger ¶
MyLogger extend logrus.MyLogger
func (*MyLogger) Debug ¶
func (l *MyLogger) Debug(i ...interface{})
Debug output message of debug level
func (*MyLogger) Error ¶
func (l *MyLogger) Error(i ...interface{})
Error output message of error level
func (*MyLogger) Fatal ¶
func (l *MyLogger) Fatal(i ...interface{})
Fatal output message of fatal level
func (*MyLogger) Panic ¶
func (l *MyLogger) Panic(i ...interface{})
Panic output message of panic level
func (*MyLogger) Print ¶
func (l *MyLogger) Print(i ...interface{})
Print output message of print level
func (*MyLogger) SetFormatter ¶
SetFormatter logger formatter Only support logrus formatter
func (*MyLogger) SetHeader ¶
SetHeader logger header Managed by Logrus itself This function do nothing
Click to show internal directories.
Click to hide internal directories.