common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentLoggerKey = "component"

Variables

This section is empty.

Functions

This section is empty.

Types

type BoxConfig

type BoxConfig struct {
	Name string `json:"boxName"`
	Book string `json:"bookName"`
}

type ConfigProvider

type ConfigProvider interface {
	GetBoxConfig() BoxConfig
	GetConfig(resourceName string, target any) error
}

type Factory

type Factory interface {
	GetBoxConfig() BoxConfig
	Register(factories ...func(ConfigProvider) (Module, error)) error
	Get(key ModuleKey) (Module, error)
	GetLogger(name string) zerolog.Logger
	GetCustomConfiguration(any any) error
	io.Closer
}

type Module

type Module interface {
	GetKey() ModuleKey
	io.Closer
}

type ModuleKey

type ModuleKey string

Directories

Path Synopsis
grpc

Jump to

Keyboard shortcuts

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