infra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBInfo

type DBInfo struct {
	Code      string
	Title     string
	Processor Processor
}

func GetDB

func GetDB(code string) DBInfo

func ListDBInfos

func ListDBInfos() []DBInfo

type InfraInfo

type InfraInfo struct {
	Code      string
	Title     string
	Processor Processor
}

func GetInfra

func GetInfra(code string) InfraInfo

func ListInfraInfos

func ListInfraInfos() []InfraInfo

type PostgresProcessor

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

func (*PostgresProcessor) Close

func (p *PostgresProcessor) Close() string

func (*PostgresProcessor) ComposeEnv

func (p *PostgresProcessor) ComposeEnv() string

func (*PostgresProcessor) Config

func (p *PostgresProcessor) Config() string

func (*PostgresProcessor) ConfigEnv

func (p *PostgresProcessor) ConfigEnv() string

func (*PostgresProcessor) ConfigField

func (p *PostgresProcessor) ConfigField() string

func (*PostgresProcessor) Constructor

func (p *PostgresProcessor) Constructor() string

func (*PostgresProcessor) DockerCompose

func (p *PostgresProcessor) DockerCompose() string

func (*PostgresProcessor) FillStructField

func (p *PostgresProcessor) FillStructField() string

func (*PostgresProcessor) Import

func (p *PostgresProcessor) Import() string

func (*PostgresProcessor) InitInAppConstructor

func (p *PostgresProcessor) InitInAppConstructor() string

func (*PostgresProcessor) SetConfig

func (p *PostgresProcessor) SetConfig(cfg *config.ProjectConfig)

func (*PostgresProcessor) StructField

func (p *PostgresProcessor) StructField() string

type Processor

type Processor interface {
	SetConfig(cfg *config.ProjectConfig)

	Import() string
	Config() string
	ConfigField() string
	Constructor() string
	InitInAppConstructor() string
	StructField() string
	FillStructField() string
	Close() string
	DockerCompose() string
	ComposeEnv() string
	ConfigEnv() string
}

type RedisProcessor

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

func (*RedisProcessor) Close

func (r *RedisProcessor) Close() string

func (*RedisProcessor) ComposeEnv

func (r *RedisProcessor) ComposeEnv() string

func (*RedisProcessor) Config

func (r *RedisProcessor) Config() string

func (*RedisProcessor) ConfigEnv

func (r *RedisProcessor) ConfigEnv() string

func (*RedisProcessor) ConfigField

func (r *RedisProcessor) ConfigField() string

func (*RedisProcessor) Constructor

func (r *RedisProcessor) Constructor() string

func (*RedisProcessor) DockerCompose

func (r *RedisProcessor) DockerCompose() string

func (*RedisProcessor) FillStructField

func (r *RedisProcessor) FillStructField() string

func (*RedisProcessor) Import

func (r *RedisProcessor) Import() string

func (*RedisProcessor) InitInAppConstructor

func (r *RedisProcessor) InitInAppConstructor() string

func (*RedisProcessor) SetConfig

func (r *RedisProcessor) SetConfig(cfg *config.ProjectConfig)

func (*RedisProcessor) StructField

func (r *RedisProcessor) StructField() string

type Registry

type Registry map[string]InfraInfo

type RegistryDB

type RegistryDB map[string]DBInfo

Jump to

Keyboard shortcuts

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