config

package
v0.0.0-...-4a48229 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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"`
	WebAddress    string                            `yaml:"WebAddress"`

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

	TalkMongoDSN string `yaml:"TalkMongoDSN"`
	RabbitMQURL  string `yaml:"RabbitMQURL"`

	UserMongoDSN string `yaml:"UserMongoDSN"`

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

	Dev Dev `yaml:"Dev"`
}

func GetConfig

func GetConfig() *Config

type Dev

type Dev struct {
	UseMemoryModel           bool `yaml:"UseMemoryModel"`
	RabbitMQUseSharedChannel bool `yaml:"RabbitMQUseSharedChannel"`
}

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