strongforce

package module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 12 Imported by: 0

README


Logo

Strongforce

Create highly consistent microservice architectures
Explore the docs »

View Demo · Report Bug · Request Feature

About The Project

Create highly consistent microservice architectures using the outbox pattern combined with the NATS eventing platform.

Getting Started

TODO

Prerequisites

TODO

Usage

TODO

Contribution guide

Guidelines

  • Use conventional commit messages
  • Always create a PR against the dev branch
  • Use the pre-commit tool to verify your code before committing

Setup pre-commit hooks

brew install pre-commit
pre-commit install

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDB  = errors.New("no database configured")
	ErrNoBus = errors.New("no bus configured")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Client, error)

func (*Client) Bus

func (sf *Client) Bus() bus.Bus

func (*Client) DB

func (sf *Client) DB() db.DB

func (*Client) EventBuilder

func (sf *Client) EventBuilder() *events.Builder

func (*Client) Init

func (sf *Client) Init() error

func (*Client) TestHelper added in v0.14.0

func (sf *Client) TestHelper() *testhelper.TestHelper

type Option

type Option func(o *clientOptions)

func WithForwarder

func WithForwarder(options *forwarder.Options) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithMySQL

func WithMySQL(options *mysql.Options) Option

func WithNATS

func WithNATS(options *nats.Options) Option

func WithPostgres

func WithPostgres(options *postgres.Options) Option

type Options

type Options struct {
	DB     db.DB
	Bus    bus.Bus
	Logger *zap.Logger
}

Directories

Path Synopsis
examples
bus
pkg
bus
db
protobuf
tests

Jump to

Keyboard shortcuts

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