service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package service implements business logic of the micro service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger micrologger.Logger

	Description string
	Flag        *flag.Flag
	GitCommit   string
	Name        string
	Source      string
	Viper       *viper.Viper
}

Config represents the configuration used to create a new service.

type Service

type Service struct {
	// Dependencies
	Version *version.Service
	Webhook *webhook.Service

	// Settings
	Flag  *flag.Flag
	Viper *viper.Viper
}

Service bundles other services.

func New

func New(config Config) (*Service, error)

New creates a new configured service object.

Directories

Path Synopsis
Package githubhook implements handling and verification of github webhooks.
Package githubhook implements handling and verification of github webhooks.

Jump to

Keyboard shortcuts

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