Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IConfiguration ¶
type IExecutor ¶
type IExecutor interface {
Execute(command string, args ...string) types.CommandResult
ExecuteInDirectory(directoryPath string, command string, args ...string) types.CommandResult
}
type IHandlersRegistry ¶
type IHandlersRegistry interface {
AddHandler(
pattern string,
hnd func(r *http.Request) (result types.HandlerResult),
) IHandlersRegistry
AddProtectedHandler(
pattern string,
hnd func(r *http.Request) (result types.HandlerResult),
roles []string,
) IHandlersRegistry
AddMiddleware(
pos int,
middleware types.Middleware,
) IHandlersRegistry
SetJwtMiddleware(jwt types.JwtMiddleware) IHandlersRegistry
SetResultFilter(filter types.ResultFilter) IHandlersRegistry
GetHandler() http.Handler
GetRoutes() []string
ClearRoutes()
}
type ILoggerFactory ¶
type IModule ¶
type IModule interface {
Name() string
Version() string
Description() string
Initialize(
registry IHandlersRegistry,
loggerFactory ILoggerFactory,
executor IExecutor) error
}
type IModulesLoader ¶
Click to show internal directories.
Click to hide internal directories.