service

package
v2.25.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExpiredUpdatesChecker added in v2.23.0

func NewExpiredUpdatesChecker(cleanUpExpiredUpdates string, withSeconds bool, onCheckTimeout func()) (gocron.Scheduler, error)

Types

type APIsConfig

type APIsConfig struct {
	HTTP HTTPConfig         `yaml:"http" json:"http"`
	GRPC grpcService.Config `yaml:"grpc" json:"grpc"`
}

Config represent application configuration

func (*APIsConfig) Validate

func (c *APIsConfig) Validate() error

type ClientsConfig

type ClientsConfig struct {
	Storage                storeConfig.Config                `yaml:"storage" json:"storage"`
	OpenTelemetryCollector http.OpenTelemetryCollectorConfig `yaml:"openTelemetryCollector" json:"openTelemetryCollector"`
}

func (*ClientsConfig) Validate

func (c *ClientsConfig) Validate() error

type Config

type Config struct {
	Log         log.Config         `yaml:"log" json:"log"`
	APIs        APIsConfig         `yaml:"apis" json:"apis"`
	Clients     ClientsConfig      `yaml:"clients" json:"clients"`
	OAuthSigner oauthsigner.Config `yaml:"oauthSigner" json:"oauthSigner"`
}

Config represents application configuration

func (*Config) String

func (c *Config) String() string

func (*Config) Validate

func (c *Config) Validate() error

type HTTPConfig

type HTTPConfig struct {
	Addr   string        `yaml:"address" json:"address"`
	Server server.Config `yaml:",inline" json:",inline"`
}

func (*HTTPConfig) Validate

func (c *HTTPConfig) Validate() error

type Service

type Service struct {
	*service.Service
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, config Config, fileWatcher *fsnotify.Watcher, logger log.Logger) (*Service, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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