service

package
v0.0.0-...-d5da7f7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 7 Imported by: 0

README

Using service-info

Compile with ldflags like this:

go build -ldflags "-X github.com/coldze/primitives/service.version=<some-value> -X github.com/coldze/primitives/service.name=<some-name>"

Somewhere in your code:

version := service.GetVersion()
name := service.GetServiceName()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvironment

func GetEnvironment() string

func GetServiceName

func GetServiceName() string

func GetVersion

func GetVersion() string

func Run

func Run(timeout time.Duration, appLogic MainFunc)

Types

type MainFunc

type MainFunc func(stopping <-chan struct{}) int

Jump to

Keyboard shortcuts

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