config

package
v0.0.0-...-3337c03 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 6 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 {
	Logger l.Wrapper `yaml:"-"`

	Listen        string                            `yaml:"Listen"`
	GRPCTLSConfig *servicetoolset.GRPCTlsFileConfig `yaml:"GRPCTLSConfig"`

	CustomerListen     string `yaml:"CustomerListen"`
	CustomerUserListen string `yaml:"CustomerUserListen"`
	ServicerListen     string `yaml:"ServicerListen"`
	ServicerUserListen string `yaml:"ServicerUserListen"`

	MongoConfig MongoConfig `yaml:"MongoConfig"`
	RabbitMQURL string      `yaml:"RabbitMQURL"`

	UserMongoDSN string `yaml:"UserMongoDSN"`

	CustomerTokenSecret    string `yaml:"CustomerTokenSecret"`
	ServicerTokenSecret    string `yaml:"ServicerTokenSecret"`
	ServicerPasswordSecret string `yaml:"ServicerPasswordSecret"`
}

func GetConfig

func GetConfig() *Config

type MongoConfig

type MongoConfig struct {
	Server   string `yaml:"Server"`
	DB       string `yaml:"DB"`
	UserName string `yaml:"UserName"`
	Password string `yaml:"Password"`
}

type WSConfig

type WSConfig struct {
	Logger l.Wrapper `yaml:"-"`

	CustomerListen               string                          `yaml:"CustomerListen"`
	CustomerGRPCClientConfig     *clienttoolset.GRPCClientConfig `yaml:"CustomerGRPCClientConfig"`
	CustomerUserGRPCClientConfig *clienttoolset.GRPCClientConfig `yaml:"CustomerUserGRPCClientConfig"`

	ServicerListen               string                          `yaml:"ServicerListen"`
	ServicerGRPCClientConfig     *clienttoolset.GRPCClientConfig `yaml:"ServicerGRPCClientConfig"`
	ServicerUserGRPCClientConfig *clienttoolset.GRPCClientConfig `yaml:"ServicerUserGRPCClientConfig"`
}

func GetWSConfig

func GetWSConfig() *WSConfig

Jump to

Keyboard shortcuts

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