infra

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 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 BaseProcessor added in v1.3.1

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

func (*BaseProcessor) SetConfig added in v1.3.1

func (b *BaseProcessor) SetConfig(cfg *config.ProjectConfig)

type DBInfo

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

type InfraInfo

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

type KafkaProcessor added in v1.3.0

type KafkaProcessor struct {
	BaseProcessor
}

func (*KafkaProcessor) Close added in v1.3.0

func (k *KafkaProcessor) Close() string

func (*KafkaProcessor) ComposeEnv added in v1.3.0

func (k *KafkaProcessor) ComposeEnv() string

func (*KafkaProcessor) Config added in v1.3.0

func (k *KafkaProcessor) Config() string

func (*KafkaProcessor) ConfigEnv added in v1.3.0

func (k *KafkaProcessor) ConfigEnv() string

func (*KafkaProcessor) ConfigField added in v1.3.0

func (k *KafkaProcessor) ConfigField() string

func (*KafkaProcessor) ConfigFieldName added in v1.4.0

func (k *KafkaProcessor) ConfigFieldName() string

func (*KafkaProcessor) Constructor added in v1.3.0

func (k *KafkaProcessor) Constructor() string

func (*KafkaProcessor) DockerCompose added in v1.3.0

func (k *KafkaProcessor) DockerCompose() string

func (*KafkaProcessor) FillStructField added in v1.3.0

func (k *KafkaProcessor) FillStructField() string

func (*KafkaProcessor) Import added in v1.3.0

func (k *KafkaProcessor) Import() string

func (*KafkaProcessor) InitInAppConstructor added in v1.3.0

func (k *KafkaProcessor) InitInAppConstructor() string

func (*KafkaProcessor) MigrateFileData added in v1.4.0

func (k *KafkaProcessor) MigrateFileData() []byte

func (*KafkaProcessor) StructField added in v1.3.0

func (k *KafkaProcessor) StructField() string

type MongoProcessor added in v1.2.0

type MongoProcessor struct {
	BaseProcessor
}

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) ConfigFieldName added in v1.4.0

func (m *MongoProcessor) ConfigFieldName() 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) MigrateFileData added in v1.4.0

func (m *MongoProcessor) MigrateFileData() []byte

func (*MongoProcessor) StructField added in v1.2.0

func (m *MongoProcessor) StructField() string

type MysqlProcessor added in v1.1.0

type MysqlProcessor struct {
	BaseProcessor
}

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) ConfigFieldName added in v1.4.0

func (m *MysqlProcessor) ConfigFieldName() 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) MigrateFileData added in v1.4.0

func (m *MysqlProcessor) MigrateFileData() []byte

func (*MysqlProcessor) StructField added in v1.1.0

func (m *MysqlProcessor) StructField() string

type Opt added in v1.3.1

type Opt func(*Registry)

func WithKafka added in v1.3.1

func WithKafka() Opt

func WithMongo added in v1.3.1

func WithMongo() Opt

func WithMySQL added in v1.3.1

func WithMySQL() Opt

func WithPostgres added in v1.3.1

func WithPostgres() Opt

func WithRedis added in v1.3.1

func WithRedis() Opt

type PostgresProcessor

type PostgresProcessor struct {
	BaseProcessor
}

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) ConfigFieldName added in v1.4.0

func (p *PostgresProcessor) ConfigFieldName() 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) MigrateFileData added in v1.4.0

func (p *PostgresProcessor) MigrateFileData() []byte

func (*PostgresProcessor) StructField

func (p *PostgresProcessor) StructField() string

type Processor

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

	Import() string
	Config() string
	ConfigField() string
	ConfigFieldName() string
	Constructor() string
	InitInAppConstructor() string
	StructField() string
	FillStructField() string
	Close() string
	DockerCompose() string
	ComposeEnv() string
	ConfigEnv() string
	MigrateFileData() []byte
}

type RedisProcessor

type RedisProcessor struct {
	BaseProcessor
}

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) ConfigFieldName added in v1.4.0

func (r *RedisProcessor) ConfigFieldName() 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) MigrateFileData added in v1.4.0

func (r *RedisProcessor) MigrateFileData() []byte

func (*RedisProcessor) StructField

func (r *RedisProcessor) StructField() string

type Registry

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

func NewRegistry added in v1.3.1

func NewRegistry(opts ...Opt) *Registry

func (*Registry) GetDB added in v1.3.1

func (r *Registry) GetDB(code string) DBInfo

func (*Registry) GetInfra added in v1.3.1

func (r *Registry) GetInfra(code string) InfraInfo

func (*Registry) ListDBs added in v1.3.1

func (r *Registry) ListDBs() []*DBInfo

func (*Registry) ListInfras added in v1.3.1

func (r *Registry) ListInfras() []*InfraInfo

func (*Registry) UpdateConfig added in v1.3.1

func (r *Registry) UpdateConfig(cfg *config.ProjectConfig)

Jump to

Keyboard shortcuts

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