Categorygithub.com/Becklyn/go-fx-core/v2
modulepackage
2.0.2
Repository: https://github.com/becklyn/go-fx-core.git
Documentation: pkg.go.dev

# README

golang fx core module

Installation

Adding go-fx-core to a Go project is as easy as calling this command

go get -u github.com/Becklyn/go-fx-core/v2

Modules

We provide modules for common use cases:

  • core: Collection of common modules used for basic webserver applications: webserver (fiber), env, logging (logrus), metrics, readyness, health.
  • cqrs: Basic interfaces for apps that do cqrs
  • env: Environment variables processing
  • fiber: Webserver
  • graphql: GraphQL
  • grpc: Basis of a gRPC server
  • health: Health indication
  • logrus: Logging
  • metrics: Automatic webserver metrics
  • readyness: Readyness indication
  • validator: Basic validation service

You can see detailed documentation in the README.md based at the root of the packages.

Using the core module

The project must be based on the uber-go/fx application framework

package main

import (
	core "github.com/Becklyn/go-fx-core/v2"
	"go.uber.org/fx"
)

func main() {
    // Creates a new fx application
    fx.New(
        // Add the core module to the container
        core.Module,
		// Add more modules that your application needs (not all provided modules are pert of the core.Module)
    ).Run()
}

Integrated 3rd party modules

The list of 3rd party libraries that we provide as uber/fx modules by this package:

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author