infra

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 8 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
	// contains filtered or unexported fields
}

func GetDB

func GetDB(code string) DBInfo

func ListDBInfos

func ListDBInfos() []DBInfo

type InfraInfo

type InfraInfo struct {
	Code      string
	Title     string
	Processor Processor
	// contains filtered or unexported fields
}

func GetInfra

func GetInfra(code string) InfraInfo

func ListInfraInfos

func ListInfraInfos() []InfraInfo

type MongoProcessor added in v1.2.0

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

func (*MongoProcessor) Close added in v1.2.0

func (m *MongoProcessor) Close() string

func (*MongoProcessor) ComposeEnv added in v1.2.0

func (m *MongoProcessor) ComposeEnv() string

func (*MongoProcessor) Config added in v1.2.0

func (m *MongoProcessor) Config() string

func (*MongoProcessor) ConfigEnv added in v1.2.0

func (m *MongoProcessor) ConfigEnv() string

func (*MongoProcessor) ConfigField added in v1.2.0

func (m *MongoProcessor) ConfigField() string

func (*MongoProcessor) Constructor added in v1.2.0

func (m *MongoProcessor) Constructor() string

func (*MongoProcessor) DockerCompose added in v1.2.0

func (m *MongoProcessor) DockerCompose() string

func (*MongoProcessor) FillStructField added in v1.2.0

func (m *MongoProcessor) FillStructField() string

func (*MongoProcessor) Import added in v1.2.0

func (m *MongoProcessor) Import() string

func (*MongoProcessor) InitInAppConstructor added in v1.2.0

func (m *MongoProcessor) InitInAppConstructor() string

func (*MongoProcessor) SetConfig added in v1.2.0

func (m *MongoProcessor) SetConfig(cfg *config.ProjectConfig)

func (*MongoProcessor) StructField added in v1.2.0

func (m *MongoProcessor) StructField() string

type MysqlProcessor added in v1.1.0

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

func (*MysqlProcessor) Close added in v1.1.0

func (m *MysqlProcessor) Close() string

func (*MysqlProcessor) ComposeEnv added in v1.1.0

func (m *MysqlProcessor) ComposeEnv() string

func (*MysqlProcessor) Config added in v1.1.0

func (m *MysqlProcessor) Config() string

func (*MysqlProcessor) ConfigEnv added in v1.1.0

func (m *MysqlProcessor) ConfigEnv() string

func (*MysqlProcessor) ConfigField added in v1.1.0

func (m *MysqlProcessor) ConfigField() string

func (*MysqlProcessor) Constructor added in v1.1.0

func (m *MysqlProcessor) Constructor() string

func (*MysqlProcessor) DockerCompose added in v1.1.0

func (m *MysqlProcessor) DockerCompose() string

func (*MysqlProcessor) FillStructField added in v1.1.0

func (m *MysqlProcessor) FillStructField() string

func (*MysqlProcessor) Import added in v1.1.0

func (m *MysqlProcessor) Import() string

func (*MysqlProcessor) InitInAppConstructor added in v1.1.0

func (m *MysqlProcessor) InitInAppConstructor() string

func (*MysqlProcessor) SetConfig added in v1.1.0

func (m *MysqlProcessor) SetConfig(cfg *config.ProjectConfig)

func (*MysqlProcessor) StructField added in v1.1.0

func (m *MysqlProcessor) StructField() string

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