Documentation ¶
Index ¶
- Constants
- Variables
- func IsRefresh(t time.Time) bool
- type Channel
- type Config
- func (this *Config) AddSize(size string) error
- func (this *Config) GetChannelConfigs(channelCode string) (map[string]string, util.Error)
- func (this *Config) GetConfigs() (map[string]map[string]string, util.Error)
- func (this *Config) GetFdfsDomain() (string, util.Error)
- func (this *Config) GetFdfsPort() (string, util.Error)
- func (this *Config) GetGroups() ([]string, util.Error)
- func (this *Config) GetNfsPath(channel string) ([]string, util.Error)
- func (this *Config) GetNfsT1Path(channel string) ([]string, util.Error)
- func (this *Config) GetSizes() (string, error)
- func (this *Config) Insert() error
- func (this *Config) UpdateValue() error
- type ImageIndex
- func (this *ImageIndex) Delete() util.Error
- func (this *ImageIndex) DropExtension(imageName string) string
- func (this ImageIndex) GetImageName() string
- func (this *ImageIndex) GetStorage() util.Error
- func (this *ImageIndex) Parse(imageName string) util.Error
- func (this *ImageIndex) ParseName(imgName string) util.Error
- func (this *ImageIndex) SaveToDB(plan string) util.Error
- type ImagePlan
- type LogoImage
- type LogoInfo
Constants ¶
View Source
const (
EmptyString = ""
)
Variables ¶
View Source
var ( ErrDuplicatedRecord = errors.New("duplicated records exist") ErrSizeExisted = errors.New("size already existed") ErrNoRecord = errors.New("no record found") ErrHasBeenModified = errors.New("Has been modified") ERRORTYPE_GETCONFIGS = "GetConfig" ERRORTYPE_CONFIGNOEXISTS = "ConfigNoExists" CONFIG_DEFAULTCHANNEL = "00" CONFIG_FDFSGROUPS = "fdfsgroups" CONFIG_FDFSPORT = "fdfsport" CONFIG_FDFSDOMAIN = "fdfsdomain" CONFIG_NFS = "nfs" CONFIG_NFST1 = "nfst1" SPILT_1 = "," SPILT_2 = "|" )
View Source
var ( ERRTYPE_IMAGENAMEINVALID = "ImageNameInvalid" ERRTYPE_GETIMAGEINDEX = "GetImageIndex" ERRORTYPE_INSERTIMAGEINDEX = "InsertImageIndex" ERRORTYPE_INSERTIMAGEPLAN = "InsertImagePlan" ERRORTYPE_DELETEIMAGEINDEX = "DeleleImageIndex" DBTITLE = "DB" NEWIMAGENAMELENGTH = 21 DEFAULTVERSION = "0" )
View Source
var (
ERRORTYPE_GETCHANNEL = "GetChannel"
)
View Source
var (
KeySizes = "sizes"
)
Functions ¶
Types ¶
type Channel ¶
func (*Channel) GetChannelCode ¶
type Config ¶
type Config struct { //Consistent Fields Id int64 `orm:"auto"` ChannelCode string Key string //Inconsistent Fields Value string Recordtime string Cat cat.Cat }
func (*Config) GetChannelConfigs ¶
func (*Config) GetConfigs ¶
func (*Config) GetNfsT1Path ¶
func (*Config) UpdateValue ¶
type ImageIndex ¶
type ImageIndex struct { Id int64 ChannelCode string StoragePath string StorageType string Profile string PartitionKey int16 TableZone int Version string Cat cat.Cat }
func (*ImageIndex) Delete ¶
func (this *ImageIndex) Delete() util.Error
func (*ImageIndex) DropExtension ¶
func (this *ImageIndex) DropExtension(imageName string) string
func (ImageIndex) GetImageName ¶
func (this ImageIndex) GetImageName() string
func (*ImageIndex) GetStorage ¶
func (this *ImageIndex) GetStorage() util.Error
type LogoInfo ¶
func (*LogoInfo) MarshalJSON ¶
func (*LogoInfo) MarshalJSONBuf ¶
func (mj *LogoInfo) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*LogoInfo) UnmarshalJSON ¶
func (*LogoInfo) UnmarshalJSONFFLexer ¶
Click to show internal directories.
Click to hide internal directories.