saver

package
v0.0.0-...-c347dc3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("saver", fx.Provide(NewSaver))

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	BucketName string
	SecretName string
}

type NewSaverParams

type NewSaverParams struct {
	fx.In

	Kubernetes    *kubernetes.KubernetesClient
	Configuration *Configuration
	Logger        *zap.Logger
}

type SaveParams

type SaveParams struct {
	ChannelID   string
	GuildID     string
	SoundName   string
	URL         string
	TextMessage string
}

func (SaveParams) Target

func (s SaveParams) Target(config *Configuration) string

type Saver

type Saver struct {
	Kubernetes    *kubernetes.KubernetesClient
	Configuration *Configuration
	Logger        *zap.Logger
}

func NewSaver

func NewSaver(s NewSaverParams) *Saver

func (*Saver) Save

func (s *Saver) Save(params SaveParams) error

Jump to

Keyboard shortcuts

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