bergamot

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 3 Imported by: 0

README

bergamot

alauda's service framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auto

func Auto() error

Auto start and bootstrap service

func New

func New(config *viper.Viper, parser Parser) error

New bootstrap an app with a provided the configuration

Types

type App

type App struct {
	Datasources map[string]Datasource
	Servers     map[string]Server
	Component   string
	Config      *viper.Viper
}

App app name

type Datasource

type Datasource interface{}

type DefaultParser

type DefaultParser struct{}

DefaultParser default parser

func (DefaultParser) GetDatasources

func (DefaultParser) GetDatasources(config *viper.Viper) map[string]Datasource

type Parser

type Parser interface {
	GetDatasources(*viper.Viper) map[string]Datasource
}

type Server

type Server interface{}

Directories

Path Synopsis
[godoc-link-here] Module level logging for Go This package provides an alternative to the standard library log package.
[godoc-link-here] Module level logging for Go This package provides an alternative to the standard library log package.

Jump to

Keyboard shortcuts

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