factory

package
v0.0.0-...-ed2a021 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: AGPL-3.0 Imports: 22 Imported by: 16

Documentation

Overview

Package factory provides factory methods for common components configuration.

This factories require the use of package config structs.

This package is a work in progress and makes no API stability promises.

Index

Constants

This section is empty.

Variables

View Source
var ErrURIServerExists = errors.New("uri server already exists")

ErrURIServerExists defines error when a server for the uri was created.

Functions

func APIAutoloader

func APIAutoloader(cfg *config.APIServicesCfg, logger yalogi.Logger) (*apiservice.Autoloader, error)

APIAutoloader is a factory of an APIService Autoloader .

func APIServices

func APIServices(cfg *config.APIServicesCfg, logger yalogi.Logger) (*apiservice.Registry, error)

APIServices is a factory of an APIService Registry.

func ClientConn

func ClientConn(cfg *config.ClientCfg) (*grpc.ClientConn, error)

ClientConn is a factory for a grpc dial collector.

func EventNotify

func EventNotify(cfg *config.EventNotifyCfg, registry apiservice.Discover) (event.Notifier, error)

EventNotify is a factory for an event notifier.

func EventNotifyBuffer

func EventNotifyBuffer(cfg *config.EventNotifyCfg, registry apiservice.Discover, logger yalogi.Logger) (event.NotifyBuffer, error)

EventNotifyBuffer is a factory for an event buffer.

func Health

Health is a factory for an http server.

func Logger

func Logger(cfg *config.LoggerCfg, debug bool) (yalogi.Logger, error)

Logger is a factory for a logger.

func Server

func Server(cfg *config.ServerCfg) (net.Listener, *grpc.Server, error)

Server is a factory for a grpc server

Types

This section is empty.

Jump to

Keyboard shortcuts

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