Documentation

Overview

    Package daemon contains functions to start the whole service. It uses own config type to configure connection with database, session manager and run API server.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func RunService

    func RunService(cfg *Config) error

      RunService is a function that starts the whole service using provided config. Every error that happens during this function is fatal. So program can't run if any error happens.

      Types

      type Config

      type Config struct {
      	DB  db.Config
      	SM  sm.Config
      	API api.Config
      	IM  s3.Config
      }

        Config is config structure for whole service.

        Source Files