Documentation
¶
Index ¶
- Variables
- func BytesToString(b []byte) string
- func CloneRequest(r *http.Request) (*http.Request, error)
- func GetBytes(v interface{}) (b []byte, ok bool)
- func GetNoPortExists() string
- func GetString(v interface{}) (s string, ok bool)
- func LoopElem(v reflect.Value) reflect.Value
- func NewPtrVal(defValue interface{}) interface{}
- func StringToBytes(s string) (b []byte)
- type A
- type Entery
- type FormFile
- type FormMem
- type FormType
- type H
- type Need
- type ReadCloseFail
- type TCookieJar
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownType = errors.New("unknown type")
ErrUnknownType 未知错误类型
Functions ¶
Types ¶
type Entery ¶
type Entery struct { gorm.Model_UUID JarKey string `yaml:"jar_key"` Name string `yaml:"name"` Value string `yaml:"value"` Domain string `yaml:"domain"` Path string `yaml:"path"` SameSite string `yaml:"same_site"` Secure bool `yaml:"secure"` HttpOnly bool `yaml:"http_only"` Persistent bool `yaml:"persistent"` HostOnly bool `yaml:"host_only"` Expires time.Time `yaml:"expires"` }
type FormType ¶
type FormType struct { FileName string //filename ContentType string //Content-Type:Mime-Type File interface{} //FromFile | FromMem (这里就是您的从文件地址中读取和从内存中读取) }
FormType 自定义formdata文件名和流的类型
type TCookieJar ¶
type TCookieJar struct {
// contains filtered or unexported fields
}
func (*TCookieJar) InitCookieJarWithSqlite ¶
func (jar *TCookieJar) InitCookieJarWithSqlite(db *gorm.DB) (err error)
func (TCookieJar) SetCookies ¶
func (jar TCookieJar) SetCookies(u *url.URL, cookies []*http.Cookie)
Click to show internal directories.
Click to hide internal directories.