kgb

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 3 Imported by: 0

README

Kubernetes-ready Application in Golang

This project provides packages and tools to improve rapid Kubernetes apps development in Golang.

Features

  • Customizable Makefile for fastest building, testing and publishing.
  • Build-it liveness and readiness endpoints implementations (HTTP only, tcp and command will be added soon).
  • OS signals trap is ready to be used with the single LOC only.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(components map[string]ComponentInterface)

Types

type ComponentInterface

type ComponentInterface interface {
	// It must return two functions, a stop() function to terminate component run at any time, and a
	// wait() function to block until component run fails.
	// If component can not be launched error must be returned
	Run() (stop func(), wait func() error, err error)
}

Directories

Path Synopsis
examples
mocks
pkg
component/signal
Signal component provides ability to handle terminating signals from OS.
Signal component provides ability to handle terminating signals from OS.

Jump to

Keyboard shortcuts

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