Documentation ¶
Overview ¶
Package internal provide private utilities for the CLI didctl application.
Index ¶
- type Settings
- func (s *Settings) ClientRPC() ([]rpc.ClientOption, error)
- func (s *Settings) Gateway(oop *otel.Operator) []rpc.GatewayOption
- func (s *Settings) Load(v *viper.Viper) error
- func (s *Settings) OTEL(log xlog.Logger) []otel.OperatorOption
- func (s *Settings) Overrides(cmd string) []cli.Param
- func (s *Settings) ReleaseCode() string
- func (s *Settings) Server(oop *otel.Operator) ([]rpc.ServerOption, error)
- func (s *Settings) SetDefaults(v *viper.Viper, home, appID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { // Agent holds the configuration required to operate a "service provider" RPC node. Agent *agent `json:"agent" yaml:"agent" mapstructure:"agent"` // Client holds the configuration required to connect to an agent node. Client *client `json:"client" yaml:"client" mapstructure:"client"` // Resolver determines the registered DID providers to be used on a "resolve" // operations. Resolver []*resolver.Provider `json:"resolver" yaml:"resolver" mapstructure:"resolver"` }
Settings provide utilities to manage configuration options available when utilizing the different components available through the CLI `didctl` application.
func (*Settings) ClientRPC ¶
func (s *Settings) ClientRPC() ([]rpc.ClientOption, error)
ClientRPC returns the configuration options available to establish a connection to an agent RPC server.
func (*Settings) Gateway ¶
func (s *Settings) Gateway(oop *otel.Operator) []rpc.GatewayOption
Gateway returns the configuration options available to set up an HTTP gateway.
func (*Settings) OTEL ¶
func (s *Settings) OTEL(log xlog.Logger) []otel.OperatorOption
OTEL returns the configuration options available to set up an OTEL operator.
func (*Settings) Overrides ¶
Overrides return the available flag overrides for the command specified. Specific settings can be provided via: configuration file, ENV variable and command flags.
func (*Settings) ReleaseCode ¶ added in v0.9.1
ReleaseCode returns the release identifier for the application. A release identifier is of the form: `service-name@version+commit_hash`. If `version` or `commit_hash` are not available will be omitted.