config

package
v0.0.0-...-f04d0a5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	zrpc.RpcServerConf

	Mysql struct {
		DataSource string
	}

	CacheRedis cache.CacheConf

	// Product specific settings
	MaxCategoryLevel    int `json:",default=3"`
	MaxSkusPerProduct   int `json:",default=100"`
	MaxImagesPerProduct int `json:",default=10"`
	MaxReviewImages     int `json:",default=5"`
	MinReviewLength     int `json:",default=5"`
	MaxReviewLength     int `json:",default=500"`
	PageSize            int `json:",default=10"`

	RabbitMQ struct {
		Host      string
		Port      int
		Username  string
		Password  string
		VHost     string
		Exchanges struct {
			ProductEvent struct {
				Name    string
				Type    string
				Durable bool
			}
		}
		Queues struct {
			ProductUpdate struct {
				Name       string
				RoutingKey string
				Durable    bool
			}
		}
	}
}

Jump to

Keyboard shortcuts

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