genki

package module
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 10 Imported by: 1

README

genki - microservice toolkit

Enki (𒂗𒆠) is the Sumerian god of knowledge, crafts and creation. Combine it with the awesome Go language, and you get Genki, my personal microservice toolkit.

TODO: Write a fancy README

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Documentation

Index

Constants

View Source
const (
	DefaultName               = "genki"
	HttpDebugPortConfigKey    = "http-debug-port"
	HttpDebugDisableConfigKey = "http-debug-disable"
)

Variables

This section is empty.

Functions

func Flags added in v0.4.7

func Flags() *pflag.FlagSet

Types

type Application

type Application interface {
	// Name of the application
	Name() string
	// Run the application. This is a blocking call and will only return if the
	// server is shut-down or an error occurred.
	Run() error
	// Opts returns the current options
	Opts() Options
	// AddServer registers a new server with the application
	AddServer(server server.Server)
	// RegisterBroker registers a message broker implementation (AMQP, NATS, ...)
	RegisterBroker(broker broker.Broker)
}

Application defines the application interface. It's designed to be simple and straightforward.

func NewApplication

func NewApplication(options ...Option) Application

type Option

type Option func(options *Options)

func DisableDebugHttpServer

func DisableDebugHttpServer() Option

func HttpDebugServerPort added in v0.4.7

func HttpDebugServerPort(port string) Option

func Name

func Name(name string) Option

type Options

type Options struct {
	Name                   string
	HttpDebugServerEnabled bool
	HttpDebugServerPort    string
}

Directories

Path Synopsis
client
datastore
examples
stringer Module

Jump to

Keyboard shortcuts

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