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

	Salt string

	JwtAuth struct {
		AccessSecret  string
		AccessExpire  int64
		RefreshSecret string
		RefreshExpire int64
		RefreshRedis  struct {
			Host      string
			Type      string
			Pass      string
			KeyPrefix string
		}
	}

	PayTokenExpire int64
	PayTokenSecret string

	MinPasswordLength int
	MaxAddressCount   int
	InitialPoints     int64

	RabbitMQ struct {
		Host      string
		Port      int
		Username  string
		Password  string
		VHost     string
		Exchanges struct {
			UserEvent struct {
				Name    string
				Type    string
				Durable bool
			}
		}
		Queues struct {
			UserNotification 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