services

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 13 Imported by: 0

README

services

GoDoc Build Status

Helper to initialize services & applications.

Install
go get github.com/altipla-consulting/services

This library has the following dependencies:

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using gofmt.

Running tests

Run the tests

make test
License

MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocal

func IsLocal() bool

func Version

func Version() string

Types

type Service

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

func Init

func Init(name string) *Service

func (*Service) ConfigureCron

func (service *Service) ConfigureCron()

func (*Service) ConfigureGRPC added in v1.3.0

func (service *Service) ConfigureGRPC()

func (*Service) ConfigureKing

func (service *Service) ConfigureKing()

func (*Service) ConfigureProfiler

func (service *Service) ConfigureProfiler()

func (*Service) ConfigureRouting

func (service *Service) ConfigureRouting()

func (*Service) ConfigureSentry

func (service *Service) ConfigureSentry(dsn string)

func (*Service) CronRunner

func (service *Service) CronRunner() *cron.Runner

func (*Service) GRPCServer added in v1.3.0

func (service *Service) GRPCServer() *grpc.Server

func (*Service) HTTPRouter

func (service *Service) HTTPRouter() *httprouter.Router

func (*Service) KingRouter

func (service *Service) KingRouter() *httprouter.Router

func (*Service) Run

func (service *Service) Run()

Jump to

Keyboard shortcuts

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