Documentation
¶
Overview ¶
*
- Copyright 2014 @ z3q.net.
- name : delivery
- author : jarryliu
- date : 2014-10-06 14:21 :
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : download.go
- author : jarryliu
- date : 2015-12-31 12:23
- description :
- history :
*
- Copyright 2014 @ z3q.net.
- name :
- author : jarryliu
- date : 2014-02-05 21:53
- description :
- history :
*
- Copyright 2015 @ z3q.net.
- name : option.go
- author : jarryliu
- date : 2016-04-18 13:48
- description :
- history :
Index ¶
- Constants
- func BuildOptionsForm(v *[]Option) string
- func CartCookieFmt(s string) string
- func ChkPwdRight(pwd string) (bool, error)
- func DownloadToLocal(partnerId int, url string, guessExt string) string
- func GenerateCartKey(unix int64, nano int) string
- func GenerateInvitationCode() string
- func GenerateRandomIntPwd(n int) string
- func GenerateRandomPwd(n int) string
- func GetAreaName(addr string) (string, error)
- func GetCityName(addr string) (string, error)
- func Md5Pwd(pwd, offset string) string
- func MemberSha1Pwd(pwd string) string
- func NewApiId(id int) string
- func NewOrderNo(partnerId int) string
- func NewSecret(hex int) string
- func NewTradeNo(partnerId int) string
- func PartnerSha1Pwd(usr, pwd string) string
- func ShaPwd(pwd, offset string) string
- type DomainError
- type IOptionStore
- type Option
- type OptionStoreWrapper
- func (this *OptionStoreWrapper) All() (keys []string, values []*Option)
- func (this *OptionStoreWrapper) Flush() (err error)
- func (this *OptionStoreWrapper) Get(key string) *Option
- func (this *OptionStoreWrapper) Indent() string
- func (this *OptionStoreWrapper) Set(key string, v *Option)
- func (this *OptionStoreWrapper) Stat() error
- type OptionType
Constants ¶
View Source
const ( OptionTypeInt int = iota OptionTypeString OptionTypeBoolean )
Variables ¶
This section is empty.
Functions ¶
func BuildOptionsForm ¶
func ChkPwdRight ¶
func DownloadToLocal ¶
下载远程资源并返回本地地址
Types ¶
type DomainError ¶
func NewDomainError ¶
func NewDomainError(key string, msg string) *DomainError
func (*DomainError) Error ¶
func (this *DomainError) Error() string
func (*DomainError) Set ¶
func (this *DomainError) Set(msg string)
type IOptionStore ¶
type IOptionStore interface { // the indent of option store Indent() string // check state Stat() error // get all options All() (keys []string, values []*Option) // get option by key Get(key string) (value *Option) // after set,call flush() Set(key string, value *Option) // flush to file Flush() error }
func NewOptionStoreWrapper ¶
func NewOptionStoreWrapper(indent string) IOptionStore
type OptionStoreWrapper ¶
type OptionStoreWrapper struct {
// contains filtered or unexported fields
}
func (*OptionStoreWrapper) All ¶
func (this *OptionStoreWrapper) All() (keys []string, values []*Option)
get all options
func (*OptionStoreWrapper) Flush ¶
func (this *OptionStoreWrapper) Flush() (err error)
flush to file
func (*OptionStoreWrapper) Get ¶
func (this *OptionStoreWrapper) Get(key string) *Option
get option by key
func (*OptionStoreWrapper) Indent ¶
func (this *OptionStoreWrapper) Indent() string
the indent of option store
func (*OptionStoreWrapper) Set ¶
func (this *OptionStoreWrapper) Set(key string, v *Option)
after set,call flush()
func (*OptionStoreWrapper) Stat ¶
func (this *OptionStoreWrapper) Stat() error
type OptionType ¶
type OptionType int
Source Files
¶
Click to show internal directories.
Click to hide internal directories.