neve

package module
v0.0.0-...-c37a8ad Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceRoot string

Functions

func GetResource

func GetResource(relFilePath string) string

func HandlerSignal

func HandlerSignal(closers ...func() error)

func RegisterProcessor

func RegisterProcessor(proc ...processor.Processor)

func SetResourceRoot

func SetResourceRoot(dir string)

Types

type Application

type Application interface {
	RegisterBean(o interface{}) error
	RegisterBeanByName(name string, o interface{}) error
	Run() error
}

type FileConfigApplication

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

func NewFileConfigApplication

func NewFileConfigApplication(configPath string, opts ...Opt) *FileConfigApplication

func (*FileConfigApplication) RegisterBean

func (app *FileConfigApplication) RegisterBean(o interface{}) error

func (*FileConfigApplication) RegisterBeanByName

func (app *FileConfigApplication) RegisterBeanByName(name string, o interface{}) error

func (*FileConfigApplication) Run

func (app *FileConfigApplication) Run() error

type Opt

type Opt func(*FileConfigApplication)

func OptSetApplicationContext

func OptSetApplicationContext(ctx ctx.ApplicationContext) Opt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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