infrastructure

package
v0.7.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyInfrastructure

func DestroyInfrastructure(i *Infrastructure)

Types

type CacheConfig added in v0.7.0

type CacheConfig struct {
	Namespace string `json:"namespace" yaml:"namespace"`
	Redis     *struct {
		Address  string `json:"address" yaml:"address"`
		UserName string `json:"user_name" yaml:"user_name"`
		Password string `json:"password" yaml:"password"`
		DB       int    `json:"db" yaml:"db"`
	} `json:"redis" yaml:"redis"`
}

type Config

type Config struct {
	DatabaseConfig
	CacheConfig
}

type DatabaseConfig

type DatabaseConfig struct {
	Operations  *operations.Config   `json:"operations" yaml:"operations"`
	DataService *data_service.Config `json:"data_service" yaml:"data_service"`
}

type Infrastructure

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

func NewInfrastructure

func NewInfrastructure(config Config) *Infrastructure

func (Infrastructure) DBExecutor

func (i Infrastructure) DBExecutor() database.Executor

Jump to

Keyboard shortcuts

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