jewel

package
v0.0.0-...-3d42942 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdParam

type CmdParam struct {
	Param map[string]interface{}
	Name  string
}

type Jewel

type Jewel struct {
	// contains filtered or unexported fields
}

func New

func New() *Jewel

func NewHttp

func NewHttp() *Jewel

func (*Jewel) AddAsyncFun

func (jewel *Jewel) AddAsyncFun(fun func(injector *inject.Injector)) *Jewel

func (*Jewel) AddBean

func (jewel *Jewel) AddBean(beans ...interface{}) *Jewel

func (*Jewel) AddBeanProperties

func (jewel *Jewel) AddBeanProperties(properties ...interface{}) *Jewel

func (*Jewel) AddPlugins

func (jewel *Jewel) AddPlugins(plugins ...context.Plugin)

func (*Jewel) AddSyncFun

func (jewel *Jewel) AddSyncFun(fun func(injector *inject.Injector)) *Jewel

func (*Jewel) AddTask

func (jewel *Jewel) AddTask(name, cron string, fun func()) *Jewel

func (*Jewel) Boot

func (jewel *Jewel) Boot() *context.Boot

func (*Jewel) Cmd

func (jewel *Jewel) Cmd(name, help string, fun func()) *kingpin.CmdClause

func (*Jewel) HttpStart

func (jewel *Jewel) HttpStart(httpFun func(router *gin.RouterGroup, injector *inject.Injector))

func (*Jewel) KingpinApp

func (jewel *Jewel) KingpinApp() *kingpin.Application

func (*Jewel) Start

func (jewel *Jewel) Start()

Jump to

Keyboard shortcuts

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