imgpool

package
v1.2.5-beta8 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package imgpool 图片缓存池

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImgFileOutdated = errors.New("img file outdated")
	ErrNoSuchImg       = errors.New("no such img")
	ErrSendImg         = errors.New("send image error")
	ErrGetMsg          = errors.New("get msg error")
)

Functions

This section is empty.

Types

type Image

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

func GetImage

func GetImage(name string) (m *Image, err error)

GetImage name

func NewImage

func NewImage(send ctxext.NoCtxSendMsg, get ctxext.NoCtxGetMsg, name, f string) (m *Image, hassent bool, err error)

NewImage context name file

func (*Image) Push

func (m *Image) Push(send ctxext.NoCtxSendMsg, get ctxext.NoCtxGetMsg) (hassent bool, err error)

func (*Image) SetFile

func (m *Image) SetFile(f string)

SetFile f

func (*Image) String

func (m *Image) String() string

String url

Jump to

Keyboard shortcuts

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