s3

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Definitions = []di.Def{
	{
		Build: func(ctn di.Container) (interface{}, error) {
			client := ctn.Get("focus.awsS3.client").(*s3.Client)
			bucket := ctn.Get("focus.awsS3.bucketName").(string)
			return NewMediaStorage(client, bucket)
		},
		Name: "focus.models.fileStorage",
	},
}

Functions

func NewMediaStorage

func NewMediaStorage(client *s3.Client, bucket string) (*fileStorage, error)

NewMediaStorage конструктор

Types

This section is empty.

Jump to

Keyboard shortcuts

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