config

package
v0.0.0-...-d804a77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionMsgQueue = "TransactionMsgQueue"
	ObjectMsgQueue      = "ObjectMsgQueue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	Mode                  string
	IsChainRest           bool
	IsContractUpdate      bool
	Chain                 Chain
	RequestRetryTime      int
	UpdateObjectBatchSize int
	FetchTxNum            uint
	MovePackageConfig     MovePackageConfig
}

type Chain

type Chain struct {
	ChainName string
	Network   string
	Rpc       string
}

func (Chain) String

func (c Chain) String() string

type Config

type Config struct {
	RedisConfig RedisConfig
	DBConfig    DBConfig
	BaseConfig  BaseConfig
	Queue       map[string]QueueConfig
}

type DBConfig

type DBConfig struct {
	DBType   string
	Username string
	Password string
	Host     string
	DBName   string
	Port     int
}

func (DBConfig) String

func (d DBConfig) String() string

type MovePackageConfig

type MovePackageConfig struct {
	PackageId string
}

type QueueConfig

type QueueConfig struct {
	Type              string
	Enabled           bool
	RedisStreamConfig RedisStreamConfig
}

type QueueName

type QueueName string

type RedisConfig

type RedisConfig struct {
	Address  string
	DB       int
	Password string
}

type RedisStreamConfig

type RedisStreamConfig struct {
	Topic            string
	GroupID          string
	Customer         string
	CustomerQuantity int
	CustomerPool     int
	MsgCount         int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳