mysql_storage

package
v0.0.0-...-5c68854 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConnMaxLifeTime = time.Hour
View Source
const DefaultMaxIdleConn = 10
View Source
const DefaultMaxOpenConn = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlClient

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

func (*MysqlClient) GetSagaById

func (m *MysqlClient) GetSagaById(ctx context.Context, id string) (*saga.SagaOrchestrator, error)

func (*MysqlClient) SaveSaga

func (m *MysqlClient) SaveSaga(ctx context.Context) error

type MysqlConfig

type MysqlConfig struct {
	Host   string
	DbName string
	User   string
	Pass   string
}

type StorageClient

type StorageClient interface {
}

func NewStorageClient

func NewStorageClient(conf MysqlConfig) (StorageClient, error)

Jump to

Keyboard shortcuts

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