services

package
v0.0.0-...-4c2dc58 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 2 Imported by: 2

README

Golang.hr Platform service package

Base service package for Golang.hr Platform.

NOTICE: Package under active development. No ETA atm...

Design Concept / TODO
  • [] Should have some service defaults such as name, version, description.
  • [] Should have router. Router in this case should support [gRPC] and HTTP adapters. Point is to have one handler definition that is accessible by various protocols
  • [] Should accept options
  • [] Should extend manager
  • []
License
The MIT License (MIT)

Copyright (c) 2015 Golang Croatia

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Documentation

Overview

Package services ...

Copyright (c) 2015 Golang Croatia All rights reserved.

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Package services ...

Package services ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Options options.Options

	Interrupt chan os.Signal
}

Service - Service instance wrapper

func (*Service) Description

func (s *Service) Description() string

Description - Will return description of the service

func (*Service) GetInterruptChan

func (s *Service) GetInterruptChan() chan os.Signal

GetInterruptChan -

func (*Service) GetOptions

func (s *Service) GetOptions() options.Options

GetOptions - Will return back options manager

func (*Service) Name

func (s *Service) Name() string

Name - Will return name of the service

func (*Service) Version

func (s *Service) Version() float64

Version - Will return version of the service

type Servicer

type Servicer interface {
	Name() string
	Description() string
	Version() float64

	GetOptions() options.Options
	GetInterruptChan() chan os.Signal
}

Servicer -

func New

func New(opts options.Options) (s Servicer, err error)

New -

Jump to

Keyboard shortcuts

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