command

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(src string, dst string) error

Dir copies a whole directory recursively

func File

func File(src, dst string) error

File copies a single file from src to dst

Types

type CmdCreate

type CmdCreate struct {
	Signature   string
	Description string
}

func (*CmdCreate) Register

func (c *CmdCreate) Register()

func (*CmdCreate) Run

func (c *CmdCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type ControllerCreate

type ControllerCreate struct {
	Signature   string
	Description string
}

func (*ControllerCreate) Register

func (c *ControllerCreate) Register()

func (*ControllerCreate) Run

func (c *ControllerCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type Install

type Install struct {
	Signature   string
	Description string
}

func (*Install) Register

func (c *Install) Register()

Command registration

func (*Install) Run

func (c *Install) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Command business logic

type JobCreate

type JobCreate struct {
	Signature   string
	Description string
}

func (*JobCreate) Register

func (c *JobCreate) Register()

Command registration

func (*JobCreate) Run

func (c *JobCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Command business logic

type MiddlewareCreate

type MiddlewareCreate struct {
	Signature   string
	Description string
}

func (*MiddlewareCreate) Register

func (c *MiddlewareCreate) Register()

Command registration

func (*MiddlewareCreate) Run

func (c *MiddlewareCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Command business logic

type MigrateRollback

type MigrateRollback struct {
	Signature   string
	Description string
}

func (*MigrateRollback) Register

func (c *MigrateRollback) Register()

func (*MigrateRollback) Run

func (c *MigrateRollback) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type Migration

type Migration struct {
	gorm.Model
	Name  string `gorm:"type:varchar(255)"`
	Hash  string `gorm:"type:varchar(255)"`
	Batch int    `gorm:"type:int(11)"`
}

type MigrationCreate

type MigrationCreate struct {
	Signature   string
	Description string
}

func (*MigrationCreate) Register

func (c *MigrationCreate) Register()

func (*MigrationCreate) Run

func (c *MigrationCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Create migration files This method will create two file UP and DOWN. UP: Work only for migrate operation DOWN: Work only for rollback operation

type MigrationUp

type MigrationUp struct {
	Signature   string
	Description string
}

func (*MigrationUp) Register

func (c *MigrationUp) Register()

func (*MigrationUp) Run

func (c *MigrationUp) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type ModelCreate

type ModelCreate struct {
	Signature   string
	Description string
}

func (*ModelCreate) Register

func (c *ModelCreate) Register()

func (*ModelCreate) Run

func (c *ModelCreate) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type QueueFailed

type QueueFailed struct {
	Signature   string
	Description string
}

func (*QueueFailed) Register

func (c *QueueFailed) Register()

func (*QueueFailed) Run

func (c *QueueFailed) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Run jobs in Redis queue

type QueueRun

type QueueRun struct {
	Signature   string
	Description string
}

func (*QueueRun) Register

func (c *QueueRun) Register()

func (*QueueRun) Run

func (c *QueueRun) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type Seeder

type Seeder struct {
	Signature   string
	Description string
}

func (*Seeder) Register

func (c *Seeder) Register()

func (*Seeder) Run

func (c *Seeder) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Todo: Improve this method to run a single seeder

type ServerDaemon

type ServerDaemon struct {
	Signature   string
	Description string
}

func (*ServerDaemon) Register

func (c *ServerDaemon) Register()

func (*ServerDaemon) Run

func (c *ServerDaemon) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Run Go-Web as a daemon

type ServerRun

type ServerRun struct {
	Signature   string
	Description string
}

func (*ServerRun) Register

func (c *ServerRun) Register()

func (*ServerRun) Run

func (c *ServerRun) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

Start Go-Web server

type ShowCommands

type ShowCommands struct {
	Signature   string
	Description string
}

func (*ShowCommands) Register

func (c *ShowCommands) Register()

func (*ShowCommands) Run

func (c *ShowCommands) Run(kernel *kernel.HttpKernel, args string, console map[string]interface{})

type ShowRoute

type ShowRoute struct {
	Signature   string
	Description string
}

func (*ShowRoute) Register

func (c *ShowRoute) Register()

func (*ShowRoute) Run

func (c *ShowRoute) Run(sc *kernel.HttpKernel, args string, console map[string]interface{})

Show the current go-web routes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL