storer

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StorerInfoKey = `NgingStorer`
)

Variables

View Source
var (
	Default                 = Info{Name: `local`}
	DefaultWatermarkOptions = &image.WatermarkOptions{
		Watermark: filepath.Join(echo.Wd(), `public/assets/backend/images/nging-gear.png`),
		Type:      "image",
		On:        true,
	}
)

Functions

func GetWatermarkOptions

func GetWatermarkOptions() *image.WatermarkOptions

func SaveFilename

func SaveFilename(subdir, name, postFilename string) (string, error)

SaveFilename SaveFilename(`0/`,“,`img.jpg`)

Types

type Info

type Info struct {
	Name string `json:"name" xml:"name"`
	ID   string `json:"id" xml:"id"`
	// contains filtered or unexported fields
}

func Get

func Get() Info

func GetOk

func GetOk() (*Info, bool)

func NewInfo

func NewInfo() *Info

func (*Info) Cloud

func (s *Info) Cloud(forces ...bool) *dbschema.NgingCloudStorage

func (*Info) FromStore

func (s *Info) FromStore(v echo.H) *Info

Jump to

Keyboard shortcuts

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