storage

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Config

type Config struct {
	URL      string
	LinksTTL time.Duration
}

type Service

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

func NewService

func NewService(config Config, client *minio.Client, logger *zap.Logger) (*Service, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, key string) error

func (*Service) PresignedGetObject

func (s *Service) PresignedGetObject(ctx context.Context, key string) (string, error)

func (*Service) PresignedPutObject

func (s *Service) PresignedPutObject(ctx context.Context, key string) (string, error)

func (*Service) PutObject added in v0.2.0

func (s *Service) PutObject(ctx context.Context, key string, filePath string) error

Jump to

Keyboard shortcuts

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