qodContext

package
v0.0.0-...-51c1a95 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitQodContext

func InitQodContext() (err error)

func Terminate

func Terminate()

Types

type OAuth2ClientCfg

type OAuth2ClientCfg struct {
	TokenURL     string
	ClientId     string
	ClientSecret string
}

type OAuth2ServiceCfg

type OAuth2ServiceCfg struct {
	AuthServerURL   string
	IssuerURL       string
	CacheDuration   time.Duration
	Audience        []string
	AuthorizedScope []string
}

type QodContext

type QodContext struct {
	CompName               string
	Port                   int
	NotifyPort             int
	RegisterDomainName     string
	BindingDomainName      string
	UriScheme              string
	ServiceUrl             string
	NotificationServiceUrl string
	NefScheme              string
	NefServiceDomainName   string
	NefPort                int
	NefServiceName         string
	NefServiceUrl          string
	NefSuppFeat            string
	NefHttpTimeoutSecs     int
	OAuth2Srv              *OAuth2ServiceCfg
	OAuth2Cli              *OAuth2ClientCfg
	Db                     *dbapi.DbApi
}

Running Bsf intance qodContext. Any param that is global to replicas of this instance needs to be stored in DB

func GetSelf

func GetSelf() *QodContext

Jump to

Keyboard shortcuts

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