client

package
v0.110.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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.

func (*Client) Config added in v0.2.0

func (c *Client) Config(ctx context.Context) ([]byte, error)

Config from konfig.

func (*Client) Secrets added in v0.2.0

func (c *Client) Secrets(ctx context.Context) (map[string][]byte, error)

Secrets from 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.

type ServiceClientParams added in v0.2.0

type ServiceClientParams struct {
	fx.In
	Lifecycle fx.Lifecycle
	Tracer    trace.Tracer
	Meter     metric.Meter
	ID        id.Generator
	Client    *Config
	Logger    *zap.Logger
	Generator *token.Token
	UserAgent env.UserAgent
}

ServiceClientParams for konfig.

Directories

Path Synopsis
konfig
v1

Jump to

Keyboard shortcuts

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