package
0.0.0-20201201052906-a54a33a9bc9d
Repository: https://github.com/luids-io/core.git
Documentation: pkg.go.dev

# Functions

Build creates a new service using a service definition struct.
NewAutoloader creates a new Autoloader with service definitions.
NewRegistry instantiates a new registry.
RegisterBuilder registers a service builder for an api signature.
ServiceDefsFromFile reads from file a slice of ServiceDef.
SetLogger option allows set a custom logger.

# Structs

Autoloader implements Discover using a lazy build.
Registry stores service items indexed by an id.
ServiceDef is used for define and construct microservices.

# Interfaces

Discover interface used for service discovering.
Service is the interface that must be implemented by service API clients.

# Type aliases

AutoloaderOption is used for Autoloader configuration.
BuildFn defines a function that constructs a service using a service definition.