postgres

package
v0.0.0-...-c605ce1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBClient

func NewDBClient(postgresDSN string) *gorm.DB

Types

type FileService

type FileService struct {
	DB          *gorm.DB
	IpfsService ipfs.IpfsService
}

func (*FileService) GetFile

func (f *FileService) GetFile(fileId string) ([]byte, error)

func (*FileService) UploadFile

func (f *FileService) UploadFile(file *multipart.FileHeader) (*uploadverse.File, error)

Jump to

Keyboard shortcuts

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