configuration

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applicationer

type Applicationer interface {
	Run(ctx context.Context, options *application.Options, optionsFunc ...application.OptionsFunc) error
}

Applicationer is the service for get configuration commands

type GetConfigurationHandler

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

GetConfigurationHandler is a handler for command

func NewGetConfigurationHandler

func NewGetConfigurationHandler(options ...OptionsFunc) *GetConfigurationHandler

NewGetConfigurationHandler creates a new handler for command

func (*GetConfigurationHandler) Handler

func (h *GetConfigurationHandler) Handler(ctx context.Context, options *Options) error

GetConfigurationHandler handles get configuration commands

func (*GetConfigurationHandler) Options

func (h *GetConfigurationHandler) Options(opts ...OptionsFunc)

Options configure the service

type Options

type Options struct {
	Configuration *configuration.Configuration
}

Options for get configuration application

type OptionsFunc

type OptionsFunc func(*GetConfigurationHandler)

OptionsFunc is a function used to configure the handler

func WithApplication

func WithApplication(app Applicationer) OptionsFunc

Jump to

Keyboard shortcuts

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