soul

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 12 Imported by: 0

README

soul

Code, test and deploy your microservice with a single tool

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValue

func GetValue(key string) string

Types

type HealthCheck

type HealthCheck func() bool

type RouteGroup

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

func (*RouteGroup) Group

func (r *RouteGroup) Group(routingKey string) *RouteGroup

func (*RouteGroup) Include

func (r *RouteGroup) Include(handlers ...context.Handler)

func (*RouteGroup) Listen

func (r *RouteGroup) Listen(routingKey string, handler context.Handler)

type Router

type Router struct {
	RouteGroup
	// contains filtered or unexported fields
}

type Service

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

func New

func New(name string) *Service

func (*Service) Command

func (s *Service) Command(command *cobra.Command)

func (*Service) CronJob

func (s *Service) CronJob(name string, handler func())

func (*Service) HealthCheck

func (s *Service) HealthCheck(name string, healthCheck HealthCheck)

func (*Service) NewRouter

func (s *Service) NewRouter(engine engines.Engine) *Router

func (*Service) Run

func (s *Service) Run()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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