rubban

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main function of the application, it will be run by cobra's root command.

Types

type Rubban added in v0.2.0

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

Rubban App Structure

func New added in v0.2.0

func New() *Rubban

New Create new App structure

func (*Rubban) Initialize added in v0.2.0

func (r *Rubban) Initialize() error

Initialize Initialize Application after Loading Configuration

func (*Rubban) Start added in v0.2.0

func (r *Rubban) Start()

Start Start Rubban

func (*Rubban) Stop added in v0.2.0

func (r *Rubban) Stop()

Stop Rubban (Will wait for everything to finish)

type Task added in v0.2.0

type Task interface {
	Run(context.Context)
	Name() string
}

Task A Rubban Task that run by the scheduler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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