Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
Option defines Spokes option type.
func WithConsoleLogger ¶
WithConsoleLogger is an option that uses a zap Logger with to be used for debugging in the console
func WithContext ¶
WithContext is an option that allows you provide a context to use in service
func WithDevelopmentLogger ¶
func WithDevelopmentLogger() Option
WithDevelopmentLogger is an option that uses a zap Logger with development configurations
func WithLogger ¶
WithLogger is an option that allows you to provide your own customized logger.
func WithProductionLogger ¶
func WithProductionLogger() Option
WithProductionLogger is an option that uses a zap Logger with production configurations
func WithStackedLogger ¶
WithStackedLogger is an option that uses a zap production Logger compliant with the GCP/Stackdriver format.
type Service ¶
type Service interface { Init(ctx context.Context, logger *zap.Logger) error Run() error Shutdown() error }
Service defines a Spokes service.
type Spokes ¶
Spokes defines the services life-cycle manager.
func (*Spokes) Run ¶
Run run the service. will run Init function of each sub service in order and Run functions