Skip to content

Squad is package contains a shared shutdown primitive with helpful options.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

moeryomenko/squad

Repository files navigation

Squad Go Reference

Squad is package contains a shared shutdown primitive.

Usage

Simple service with signal handler and healthchecker.

package main

import (
	"context"

	"github.com/moeryomenko/squad"
)

func main() {
	s := squad.NewSquad(squad.WithSignalHandler())

	// s.Run(...) // run your code.

	s.Wait()
}

License

Squad is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and/or LICENSE-MIT for details.

About

Squad is package contains a shared shutdown primitive with helpful options.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published