Documentation
¶
Index ¶
- type Client
- func (*Client) Close() error
- func (c *Client) DeleteFile(ctx context.Context, id uuid.UUID) error
- func (c *Client) DownloadFile(ctx context.Context, id uuid.UUID) (*app.File, error)
- func (c *Client) HealthCheck(ctx context.Context) error
- func (c *Client) UploadFile(ctx context.Context, f app.File) (uuid.UUID, error)
- type Config
- type Metrics
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) DeleteFile ¶
DeleteFile implements app.FileStore.
func (*Client) DownloadFile ¶
DownloadFile implements app.FileStore.
func (*Client) HealthCheck ¶
HealthCheck checks the connection to the file store.
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.
Click to show internal directories.
Click to hide internal directories.