imgsrv

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Name     string
	ImageURL string
}

Image Image

type ImageService

type ImageService interface {
	AddImage(name string, fileData []byte) bool
	GetImagePath(imageName string) string
	GetImageList() *[]Image
	DeleteImage(name string) bool
}

ImageService ImageService

type Six910ImageService

type Six910ImageService struct {
	Store ds.JSONDatastore

	Log           *lg.Logger
	ImagePath     string
	ImageFullPath string
}

Six910ImageService Six910ImageService

func (*Six910ImageService) AddImage

func (c *Six910ImageService) AddImage(name string, fileData []byte) bool

AddImage AddImage

func (*Six910ImageService) DeleteImage

func (c *Six910ImageService) DeleteImage(name string) bool

DeleteImage DeleteImage

func (*Six910ImageService) GetImageList

func (c *Six910ImageService) GetImageList() *[]Image

GetImageList GetImageList

func (*Six910ImageService) GetImagePath

func (c *Six910ImageService) GetImagePath(imageName string) string

GetImagePath GetImagePath

func (*Six910ImageService) GetNew

func (c *Six910ImageService) GetNew() ImageService

GetNew GetNew

Jump to

Keyboard shortcuts

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