chat

package
v0.0.0-...-a671794 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeApp

func InitializeApp(
	httpRouter *mux.Router,
	grpcServer *grpc.Server,
	publisher message.Publisher,
	subscriber message.Subscriber,
	storage string,
	db *sql.DB,
	logger Logger,
	errorHandler ErrorHandler,
)

InitializeApp initializes a new HTTP and a new gRPC application.

func RegisterEventHandlers

func RegisterEventHandlers(router *message.Router, subscriber message.Subscriber, logger Logger) error

RegisterEventHandlers registers event handlers in a message router.

Types

type ErrorHandler

type ErrorHandler = common.ErrorHandler

ErrorHandler handles an error.

type Logger

type Logger = common.Logger

Logger is the fundamental interface for all log operations.

Jump to

Keyboard shortcuts

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