Documentation
¶
Overview ¶
Schemes: http, https Host: localhost BasePath: /v2 Version: 0.0.1 License: MIT http://opensource.org/licenses/MIT Contact: John Doe<john.doe@example.com> http://john.doe.com Consumes: - application/json - application/xml Produces: - application/json - application/xml Security: - api_key: SecurityDefinitions: api_key: type: apiKey name: KEY in: header oauth2: type: oauth2 authorizationUrl: /oauth2/auth tokenUrl: /oauth2/token in: header scopes: bar: foo flow: accessCode Extensions: x-meta-value: value x-meta-array: - value1 - value2 x-meta-array-obj: - name: obj value: field
swagger:meta
Index ¶
- Variables
- func ClearApp()
- func ClearTestApp()
- func RunTests(t *testing.T, currentsuite suite.TestingSuite)
- func StoreCurrentApp(app *App)
- func TestHTTPResponse(t *testing.T, app *App, req *http.Request, ...)
- type AddLanguageHandler
- type AddLanguageHandlerOptions
- type AdminCommand
- type AdminStartServerOptions
- type App
- func (a *App) BaseAPIUrl() string
- func (a *App) ExecuteCommand()
- func (a *App) GetAuthAdapterRegistry() *core.AuthProviderRegistry
- func (a *App) GetBlueprintRegistry() core.IBlueprintRegistry
- func (a *App) GetCommandRegistry() *core.CommandRegistry
- func (a *App) GetConfig() *core.Config
- func (a *App) GetDashboardAdminPanel() *core.DashboardAdminPanel
- func (a *App) GetDatabase() *core.Database
- func (a *App) GetRouter() *gin.Engine
- func (a *App) Initialize()
- func (a *App) InitializeRouter()
- func (a *App) RegisterBaseBlueprints()
- func (a *App) RegisterBaseCommands()
- func (a *App) RegisterBlueprint(blueprint core.IBlueprint)
- func (a *App) RegisterCommand(name string, command core.ICommand)
- func (a *App) StartAPI()
- func (a *App) StartAdmin()
- func (a *App) TriggerCommandExecution(action string, subaction string, params []string)
- type BlueprintCommand
- type ContentTypeCommand
- type CreateBlueprint
- type CreateBlueprintOptions
- type CreateFakedDataCommand
- type CreateMigration
- type CreateMigrationOptions
- type CreateSuperadmin
- type DbShellCommand
- type DetermineConflictsMigration
- type DownMigration
- type DownMigrationOptions
- type GeneralError
- type LanguageCommand
- type MicroserviceExample
- type MicroserviceExampleCommand
- type MicroserviceExampleStartCommand
- type MicroserviceExampleStartOptions
- type MigrateCommand
- type Migration
- type OpenAPICommand
- type ServeAdminServer
- type ServeOpenAPIEditorCommand
- type ServeSwaggerServer
- type ServeSwaggerServerOptions
- type ShellCommand
- type SuperadminCommand
- type SuperadminCommandOptions
- type SwaggerCommand
- type SyncContentTypes
- type TestSuite
- type UpMigration
- type UpMigrationOptions
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var CreatedDatabaseForTests bool
Functions ¶
func ClearTestApp ¶
func ClearTestApp()
func StoreCurrentApp ¶
func StoreCurrentApp(app *App)
func TestHTTPResponse ¶
func TestHTTPResponse(t *testing.T, app *App, req *http.Request, f func(w *httptest.ResponseRecorder) bool)
Helper function to process a request and test its response
Types ¶
type AddLanguageHandler ¶
type AddLanguageHandler struct { }
func (AddLanguageHandler) GetHelpText ¶
func (command AddLanguageHandler) GetHelpText() string
type AddLanguageHandlerOptions ¶
type AddLanguageHandlerOptions struct {
Code string `short:"c" required:"true" description:"Language you wanna add to the system'"`
}
type AdminCommand ¶
type AdminCommand struct { }
func (AdminCommand) GetHelpText ¶
func (c AdminCommand) GetHelpText() string
type AdminStartServerOptions ¶
type AdminStartServerOptions struct { }
type App ¶
type App struct { Config *core.Config Database *core.Database Router *gin.Engine CommandRegistry *core.CommandRegistry BlueprintRegistry core.IBlueprintRegistry DashboardAdminPanel *core.DashboardAdminPanel RouterInitialized bool }
func NewFullAppForTests ¶
func NewFullAppForTests() *App
func (*App) BaseAPIUrl ¶
func (*App) ExecuteCommand ¶
func (a *App) ExecuteCommand()
func (*App) GetAuthAdapterRegistry ¶
func (a *App) GetAuthAdapterRegistry() *core.AuthProviderRegistry
func (*App) GetBlueprintRegistry ¶
func (a *App) GetBlueprintRegistry() core.IBlueprintRegistry
func (*App) GetCommandRegistry ¶
func (a *App) GetCommandRegistry() *core.CommandRegistry
func (*App) GetDashboardAdminPanel ¶
func (a *App) GetDashboardAdminPanel() *core.DashboardAdminPanel
func (*App) GetDatabase ¶
func (*App) Initialize ¶
func (a *App) Initialize()
func (*App) InitializeRouter ¶
func (a *App) InitializeRouter()
func (*App) RegisterBaseBlueprints ¶
func (a *App) RegisterBaseBlueprints()
func (*App) RegisterBaseCommands ¶
func (a *App) RegisterBaseCommands()
func (*App) RegisterBlueprint ¶
func (a *App) RegisterBlueprint(blueprint core.IBlueprint)
func (*App) StartAdmin ¶
func (a *App) StartAdmin()
type BlueprintCommand ¶
type BlueprintCommand struct { }
func (BlueprintCommand) GetHelpText ¶
func (c BlueprintCommand) GetHelpText() string
type ContentTypeCommand ¶
type ContentTypeCommand struct { }
func (ContentTypeCommand) GetHelpText ¶
func (c ContentTypeCommand) GetHelpText() string
type CreateBlueprint ¶
type CreateBlueprint struct { }
func (CreateBlueprint) GetHelpText ¶
func (command CreateBlueprint) GetHelpText() string
type CreateBlueprintOptions ¶
type CreateFakedDataCommand ¶
type CreateFakedDataCommand struct { }
func (CreateFakedDataCommand) GetHelpText ¶
func (c CreateFakedDataCommand) GetHelpText() string
type CreateMigration ¶
type CreateMigration struct { }
func (CreateMigration) GetHelpText ¶
func (command CreateMigration) GetHelpText() string
type CreateMigrationOptions ¶
type CreateSuperadmin ¶
type CreateSuperadmin struct { }
func (CreateSuperadmin) GetHelpText ¶
func (command CreateSuperadmin) GetHelpText() string
type DbShellCommand ¶
type DbShellCommand struct { }
func (DbShellCommand) GetHelpText ¶
func (c DbShellCommand) GetHelpText() string
type DetermineConflictsMigration ¶
type DetermineConflictsMigration struct { }
func (DetermineConflictsMigration) GetHelpText ¶
func (command DetermineConflictsMigration) GetHelpText() string
type DownMigration ¶
type DownMigration struct { }
func (DownMigration) GetHelpText ¶
func (command DownMigration) GetHelpText() string
type DownMigrationOptions ¶
type DownMigrationOptions struct {
ToMigrationID int64 `long:"--to-id" required:"false" default:"0" description:"Migration downgrade your database to"`
}
type GeneralError ¶
type GeneralError struct {
Error string
}
A GeneralError is an error that is used when something strange happened swagger:response generalError
type LanguageCommand ¶
type LanguageCommand struct { }
func (LanguageCommand) GetHelpText ¶
func (c LanguageCommand) GetHelpText() string
type MicroserviceExample ¶
type MicroserviceExample struct {
core.Microservice
}
type MicroserviceExampleCommand ¶
type MicroserviceExampleCommand struct { }
func (MicroserviceExampleCommand) GetHelpText ¶
func (c MicroserviceExampleCommand) GetHelpText() string
type MicroserviceExampleStartCommand ¶
type MicroserviceExampleStartCommand struct { }
func (MicroserviceExampleStartCommand) GetHelpText ¶
func (command MicroserviceExampleStartCommand) GetHelpText() string
type MicroserviceExampleStartOptions ¶
type MicroserviceExampleStartOptions struct {
StartSwagger bool `long:"swagger" description:"Start swagger for your microservice"`
}
type MigrateCommand ¶
type MigrateCommand struct { }
func (MigrateCommand) GetHelpText ¶
func (c MigrateCommand) GetHelpText() string
type OpenAPICommand ¶
type OpenAPICommand struct { }
func (OpenAPICommand) GetHelpText ¶
func (c OpenAPICommand) GetHelpText() string
type ServeAdminServer ¶
type ServeAdminServer struct { }
func (ServeAdminServer) GetHelpText ¶
func (command ServeAdminServer) GetHelpText() string
type ServeOpenAPIEditorCommand ¶
type ServeOpenAPIEditorCommand struct { }
func (ServeOpenAPIEditorCommand) GetHelpText ¶
func (command ServeOpenAPIEditorCommand) GetHelpText() string
type ServeSwaggerServer ¶
type ServeSwaggerServer struct { }
func (ServeSwaggerServer) GetHelpText ¶
func (command ServeSwaggerServer) GetHelpText() string
type ServeSwaggerServerOptions ¶
type ServeSwaggerServerOptions struct { }
type ShellCommand ¶
type ShellCommand struct { }
func (ShellCommand) GetHelpText ¶
func (c ShellCommand) GetHelpText() string
type SuperadminCommand ¶
type SuperadminCommand struct { }
func (SuperadminCommand) GetHelpText ¶
func (c SuperadminCommand) GetHelpText() string
type SuperadminCommandOptions ¶
type SuperadminCommandOptions struct { Username string `short:"n" required:"true" description:"Username" valid:"username-go-monolith,username-unique"` Email string `short:"e" required:"true" description:"Email'" valid:"email,email-unique"` FirstName string `short:"f" required:"false" description:"First name'"` LastName string `short:"l" required:"false" description:"Last name'"` }
type SwaggerCommand ¶
type SwaggerCommand struct { }
func (SwaggerCommand) GetHelpText ¶
func (c SwaggerCommand) GetHelpText() string
type SyncContentTypes ¶
type SyncContentTypes struct { }
func (SyncContentTypes) GetHelpText ¶
func (command SyncContentTypes) GetHelpText() string
type TestSuite ¶
type TestSuite struct { suite.Suite App *App Database *core.ProjectDatabase }
func (*TestSuite) StoreDatabase ¶
func (suite *TestSuite) StoreDatabase(database *core.ProjectDatabase)
func (*TestSuite) TearDownSuite ¶
func (suite *TestSuite) TearDownSuite()
type UpMigration ¶
type UpMigration struct { }
func (UpMigration) GetHelpText ¶
func (command UpMigration) GetHelpText() string
type UpMigrationOptions ¶
type UpMigrationOptions struct { }
type ValidationError ¶
A ValidationError is an error that is used when the required input fails validation. swagger:response validationError
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
blueprint
|
|
cmd
|
|
Package helper is a micro package with helper functions for GoMonolith
|
Package helper is a micro package with helper functions for GoMonolith |
Click to show internal directories.
Click to hide internal directories.