service

package
v1.184.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound for service.
	ErrNotFound = errors.New("not found")

	// ErrInvalidArgument for service.
	ErrInvalidArgument = errors.New("invalid argument")
)

Module for fx.

Functions

func IsInvalidArgument

func IsInvalidArgument(err error) bool

IsInvalidArgument for service.

func IsNotFound added in v1.167.0

func IsNotFound(err error) bool

IsNotFound for service.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config for a specific application.

func NewConfig

func NewConfig(app, ver, env, continent, country, cmd, kind string) (*Config, error)

NewConfig for service.

func (*Config) Application

func (c *Config) Application() string

Application for config.

func (*Config) Command

func (c *Config) Command() string

Command for config.

func (*Config) Continent

func (c *Config) Continent() string

Continent for config.

func (*Config) Country

func (c *Config) Country() string

Country for config.

func (*Config) Environment

func (c *Config) Environment() string

Environment for config.

func (*Config) Kind

func (c *Config) Kind() string

Kind for config.

func (*Config) String

func (c *Config) String() string

String of config.

func (*Config) Version

func (c *Config) Version() string

Version for config.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service for the different transports.

func NewService

func NewService(provider *provider.Transformer, config source.Configurator, source *source.Transformer) *Service

NewService for the different transports.

func (*Service) GetConfig

func (s *Service) GetConfig(ctx context.Context, cfg *Config) ([]byte, error)

GetConfig for service.

func (*Service) GetSecrets

func (s *Service) GetSecrets(ctx context.Context, secs map[string]string) (map[string][]byte, error)

GetSecrets for service.

Jump to

Keyboard shortcuts

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