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 ¶
func NewProfileClient ¶
func NewProfileClient( host string, sSetting sfx.SecuritySettingsParams, ) (pb.ProfileServiceClient, pb.ProfilePrivateServiceClient, error)
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 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)
Click to show internal directories.
Click to hide internal directories.