cherryMini

package
v1.1.28 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	cf.Component
	// contains filtered or unexported fields
}

Component mini wrapper component

func New

func New(name string, opts ...OptionFunc) *Component

func (*Component) Init

func (p *Component) Init()

func (*Component) Name

func (p *Component) Name() string

func (*Component) OnAfterInit

func (p *Component) OnAfterInit()

func (*Component) OnBeforeStop

func (p *Component) OnBeforeStop()

func (*Component) OnStop

func (p *Component) OnStop()

type OptionFunc

type OptionFunc func(options *options)

func WithAfterInit

func WithAfterInit(fn func(cf.IApplication)) OptionFunc

func WithBeforeStop

func WithBeforeStop(fn func(cf.IApplication)) OptionFunc

func WithInitFunc

func WithInitFunc(fn func(cf.IApplication)) OptionFunc

func WithStop

func WithStop(fn func(cf.IApplication)) OptionFunc

Jump to

Keyboard shortcuts

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