Skip to content

Asynchronous Server App Boilerplate (ASAB) is a micro-service framework for Go.

License

Notifications You must be signed in to change notification settings

TeskaLabs/go-asab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asynchronous Server App Boilerplate (ASAB)

A micro-service framework for Go

Modeled after Pythonic https://github.com/TeskaLabs/asab

Quick start

main.go

package main

import (
	"github.com/teskalabs/go-asab/asab"
)

type MyApplication struct {
	asab.Application

	WebService       asab.WebService
}

func main() {
	asab.AddConfigDefaults("general", map[string]string{
		"config_file": "./etc/my.conf",
	})

	asab.AddConfigDefaults("web", map[string]string{
		"listen": "[::]:8895",
	})

	MyApp := new(MyApplication)
	MyApp.Application.Initialize()
	defer MyApp.Finalize()

	MyApp.WebService.Initialize(&MyApp.Application)
	defer MyApp.WebService.Finalize()

	MyApp.Run()
}

Check examples folder for more information.

About

Asynchronous Server App Boilerplate (ASAB) is a micro-service framework for Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages