Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewServiceClient), fx.Provide(NewClient), )
Module for fx.
Functions ¶
func NewServiceClient ¶ added in v0.2.0
func NewServiceClient(params ServiceClientParams) (v1.ServiceClient, error)
NewServiceClient for konfig.
Types ¶
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client for konfig.
func NewClient ¶ added in v0.2.0
func NewClient(client v1.ServiceClient, config *Config) *Client
NewClient for konfig.
type Config ¶ added in v0.2.0
type Config struct { *client.Config `yaml:",inline" json:",inline" toml:",inline"` Configuration *Configuration `yaml:"config,omitempty" json:"config,omitempty" toml:"config,omitempty"` Secrets *Secrets `yaml:"secrets,omitempty" json:"secrets,omitempty" toml:"secrets,omitempty"` }
Config for konfig.
type Configuration ¶ added in v0.2.0
type Configuration struct { Application string `yaml:"application,omitempty" json:"application,omitempty" toml:"application,omitempty"` Version string `yaml:"version,omitempty" json:"version,omitempty" toml:"version,omitempty"` Environment string `yaml:"environment,omitempty" json:"environment,omitempty" toml:"environment,omitempty"` Continent string `yaml:"continent,omitempty" json:"continent,omitempty" toml:"continent,omitempty"` Country string `yaml:"country,omitempty" json:"country,omitempty" toml:"country,omitempty"` Command string `yaml:"command,omitempty" json:"command,omitempty" toml:"command,omitempty"` Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"` Mode uint32 `yaml:"mode,omitempty" json:"mode,omitempty" toml:"mode,omitempty"` }
Configuration for konfig.
type Secrets ¶ added in v0.2.0
type Secrets struct { Files map[string]string `yaml:"files,omitempty" json:"files,omitempty" toml:"files,omitempty"` Path string `yaml:"path,omitempty" json:"path,omitempty" toml:"path,omitempty"` Mode uint32 `yaml:"mode,omitempty" json:"mode,omitempty" toml:"mode,omitempty"` }
Secrets for konfig.
Click to show internal directories.
Click to hide internal directories.