core

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

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

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 "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:

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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