service

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GrafanaToken       string
	DiscordToken       string
	GrafanaBaseURL     string
	PromDatasourceID   string
	AccessKeyID        string
	SecretAccessKey    string
	GithubToken        string
	S3Bucket           string
	S3BucketPrefix     string
	S3Region           string
	S3EndpointURL      string
	ClientsDataURL     string
	MetricsAddress     string // Defaults to :9091
	HealthCheckAddress string // Defaults to :9191
}

Config contains the configuration for the service.

func (*Config) AsCartographoorConfig added in v0.0.25

func (c *Config) AsCartographoorConfig() cartographoor.ServiceConfig

AsCartographoorConfig converts the configuration to a CartographoorConfig.

func (*Config) AsDiscordConfig

func (c *Config) AsDiscordConfig() *discord.Config

AsDiscordConfig converts the configuration to a DiscordConfig.

func (*Config) AsGrafanaConfig

func (c *Config) AsGrafanaConfig() *grafana.Config

AsGrafanaConfig converts the configuration to a GrafanaConfig.

func (*Config) AsHiveConfig

func (c *Config) AsHiveConfig() *hive.Config

AsHiveConfig converts the configuration to a HiveConfig.

func (*Config) AsS3Config

func (c *Config) AsS3Config() *store.S3Config

AsS3Config converts the configuration to an S3Config.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration.

type Service

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

Service is the main service for the panda-pulse application.

func NewService

func NewService(ctx context.Context, log *logrus.Logger, cfg *Config) (*Service, error)

NewService creates a new Service.

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

func (*Service) Stop

func (s *Service) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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