servicekit

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 11 Imported by: 0

README

servicekit

Servicekit is a service wrapper providing a cli for service management along with some utility functions. Logging can be added using the log subpackage.

Tested on linux and windows.

Example

$ apigate
SERVICE apigate v0.0.1

The apigate service provides a webserver acting as a http 
proxy for backend services connected through a gateway. 

Available Commands:
  run [workdir]
  install (user) (workdir)
  uninstall
  start
  stop
  restart
  version

Documentation

Overview

Package servicekit implements a service wrapper providing a cli for service management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name added in v0.1.0

func Name() string

func Version added in v0.1.0

func Version() string

func Workdir

func Workdir(p ...string) string

func Wrap

func Wrap(info Info, program Interface)

Types

type Info added in v0.1.0

type Info struct {
	Name        string
	DisplayName string
	Description string
	Version     string
}

type Interface

type Interface interface {
	Start() error
	Stop() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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