helpers

package
v0.0.0-...-a53f43f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ImagePath = "../images/"
View Source
const MetaPath = "metadata/"

Variables

This section is empty.

Functions

func CheckValidHash

func CheckValidHash(password, hash string) bool

func HashPassword

func HashPassword(password string) string

func NewCtx

func NewCtx() (context.Context, context.CancelFunc)

Types

type StorageSvc

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

func NewStorageService

func NewStorageService() *StorageSvc

func (*StorageSvc) UploadFile

func (s *StorageSvc) UploadFile(file []byte, name string) (string, error)

Jump to

Keyboard shortcuts

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