core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConfig

type BaseConfig struct {
	AutoRename    bool                // use timestamp name replace file name
	CompressType  resize.CompressType // compress kind
	CompressLevel int                 // compress level
}

type Config

type Config struct {
	Uploaded []string   // uploaded pictures
	Base     BaseConfig // base config
	Current  GopicType  // current use picbed
	Github   cloud.GithubOpts
	Gitee    cloud.GiteeOpts
	Smms     cloud.SmmsOpts
}

Config is gopic config

func (*Config) String

func (c *Config) String() string

type GopicType

type GopicType string
const (
	Unknown GopicType = "unknown"
	Github  GopicType = "github"
	Gitee   GopicType = "gitee"
	Smms    GopicType = "smms"
	Qiniu   GopicType = "qiniu"
	Imgur   GopicType = "imgur"
	Aliyun  GopicType = "aliyun"
	Upyun   GopicType = "upyun"
)

func ConvertType

func ConvertType(v string) GopicType

type PicUpload

type PicUpload interface {
	Upload(fileName string, data []byte) (string, error)
	Parse(str string) string
}

上传图片接口

Directories

Path Synopsis
plugins
cdn
*
*

Jump to

Keyboard shortcuts

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