files

package
v0.0.0-...-527e5cd Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureConfig

type AzureConfig struct {
	AccountName string
	AccountKey  string
	Container   string
}

type File

type File struct {
	ID          string
	Storage     string
	FilePath    string
	ContentType string
}

type Service

type Service interface {
	UploadFile(context.Context, UploadFileParams) (*File, error)
}

func NewAzureFileService

func NewAzureFileService(queries *sqlc.Queries, config AzureConfig) (Service, error)

type UploadFileParams

type UploadFileParams struct {
	File        io.Reader
	FileName    string
	ContentType string
	Title       *string
	Description *string
}

Jump to

Keyboard shortcuts

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