minikit

package module
v0.0.0-...-15b2f3e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 18 Imported by: 0

README

minikit

A FAIRE.

Licence

MIT.


Copyright (c) 2021 losyme.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Application  *application.Application
	Components   []string
	CmdLineArgs  []string
	CmdLineInit  func(*cmdline.CmdLine)
	ConfigInit   func(*config.Config)
	RendererType context.RendererType
	SchedulerCb  func(*scheduler.Message)
}

type Kit

type Kit struct {
	Components *components.Components
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *Kit

func (*Kit) AddComponent

func (k *Kit) AddComponent(name string, builder func() error, dependencies ...string)

func (*Kit) Build

func (k *Kit) Build() error

func (*Kit) Run

func (k *Kit) Run(fn func() error) error

func (*Kit) RunServer

func (k *Kit) RunServer(beforeShutdown func(), timeout time.Duration) error

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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