pfx

package
v0.0.0-...-8a99b67 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProfileClientModule = fx.Provide(
	func(
		setting ProfileSettingParams,
		sSetting sfx.SecuritySettingsParams,
	) (out ProfileClientResult, err error) {
		if cli, pCli, e := NewProfileClient(setting.ProfileUrl, sSetting); e != nil {
			err = e
		} else {
			out.ProfileClient = cli
			out.ProfilePrivateClient = pCli
		}
		return
	},
)
View Source
var SettingsModule = fx.Provide(
	func() (out ProfileSettingsResult, err error) {
		err = out.LoadFromEnv()
		return
	},
)

Functions

Types

type ProfileClientParams

type ProfileClientParams struct {
	fx.In

	ProfileClient        pb.ProfileServiceClient        `name:"ProfileClient"`
	ProfilePrivateClient pb.ProfilePrivateServiceClient `name:"ProfilePrivateClient"`
}

type ProfileClientResult

type ProfileClientResult struct {
	fx.Out

	ProfileClient        pb.ProfileServiceClient        `name:"ProfileClient"`
	ProfilePrivateClient pb.ProfilePrivateServiceClient `name:"ProfilePrivateClient"`
}

type ProfileSettingParams

type ProfileSettingParams struct {
	fx.In

	ProfileUrl       string `name:"ProfileUrl"`
	ProfileStoreName string `name:"ProfileStoreName"`
}

type ProfileSettingsResult

type ProfileSettingsResult struct {
	fx.Out

	ProfileStoreName string `name:"ProfileStoreName" envconfig:"PROFILE_STORE_NAME" default:"profile"`
	ProfileUrl       string `name:"ProfileUrl" envconfig:"PROFILE_URL" default:"localhost:8081"`
}

func (*ProfileSettingsResult) LoadFromEnv

func (g *ProfileSettingsResult) LoadFromEnv() (err error)

Jump to

Keyboard shortcuts

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