Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

    IsInvalidConfig asserts invalidConfigError.

    Types

    type Config

    type Config struct {
    	// Dependencies.
    	Logger micrologger.Logger
    
    	// Settings.
    	Flag  *flag.Flag
    	Viper *viper.Viper
    }

      Config represents the configuration used to create a new service.

      type Service

      type Service struct {
      	Version *version.Service
      	// contains filtered or unexported fields
      }

      func New

      func New(config Config) (*Service, error)

        New creates a new service with given configuration.

        func (*Service) Boot

        func (s *Service) Boot()