files

package
v0.0.0-...-748ecea Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client provided data from and to message broker.

func New

func New(ctx context.Context, reg *prometheus.Registry, namespace string, cfg Config) (*Client, error)

New build and returns new file store instance.

func (*Client) Close

func (*Client) Close() error

Close implements io.Closer.

func (*Client) DeleteFile

func (c *Client) DeleteFile(ctx context.Context, id uuid.UUID) error

DeleteFile implements app.FileStore.

func (*Client) DownloadFile

func (c *Client) DownloadFile(ctx context.Context, id uuid.UUID) (*app.Avatar, error)

DownloadFile implements app.FileStore.

func (*Client) UploadFile

func (c *Client) UploadFile(ctx context.Context, f app.Avatar) (uuid.UUID, error)

UploadFile implements app.FileStore.

type Config

type Config struct {
	Secure       bool
	Endpoint     string
	AccessKey    string
	SecretKey    string
	SessionToken string
	Region       string
}

Config provide connection info for message broker.

type Metrics

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

Metrics contains general metrics for DAL methods.

func NewMetrics

func NewMetrics(reg *prometheus.Registry, namespace, subsystem string, topics []string) (metric Metrics)

NewMetrics registers and returns common queue metrics.

Jump to

Keyboard shortcuts

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