Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SnakebiteEF2000/statez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statez

Simple application state lib

Usage

look at examples in /example

type natsService struct {
	name          string
	statezService *statez.Service
}

func main() {

	sz := statez.NewStatez("example2")

	natsSvc := natsService{
		name:          "natsService",
		statezService: statez.NewService("natsService"),
	}

	sz.RegisterService(natsSvc.statezService)

	// go natsSvc.Run or do action

	http.HandleFunc("/ready", sz.ReadinessHandler)
	log.Fatal(http.ListenAndServe(":8080", nil))
}

About

Simple application healthiness service

Resources

License

Stars

6 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages