Documentation ¶
Index ¶
- Constants
- func Start(env core.Environment, bind string, port int, storage string)
- type Case
- type CaseHandler
- func (handler *CaseHandler) Create(request *restful.Request, response *restful.Response)
- func (handler *CaseHandler) Get(request *restful.Request, response *restful.Response)
- func (handler *CaseHandler) GetFile(request *restful.Request, response *restful.Response)
- func (handler *CaseHandler) UploadFiles(request *restful.Request, response *restful.Response)
- type File
- type UploadFile
Constants ¶
View Source
const (
DefaultPort = 8080
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct { Id int `orm:"auto"` Description string `orm:"default(""), type(text)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now_add;type(datetime)"` IsSigned bool `orm:"default(false)"` IsPrivate bool `orm:"default(false)"` Token string Config string `orm:"default(""), type(text)"` Signed string `orm:"default(""), type(text)"` Files []*File `orm:"reverse(many)"` }
type CaseHandler ¶
type CaseHandler struct {
StoragePath string
}
func (*CaseHandler) Create ¶
func (handler *CaseHandler) Create(request *restful.Request, response *restful.Response)
func (*CaseHandler) Get ¶
func (handler *CaseHandler) Get(request *restful.Request, response *restful.Response)
func (*CaseHandler) GetFile ¶
func (handler *CaseHandler) GetFile(request *restful.Request, response *restful.Response)
func (*CaseHandler) UploadFiles ¶
func (handler *CaseHandler) UploadFiles(request *restful.Request, response *restful.Response)
type UploadFile ¶
Click to show internal directories.
Click to hide internal directories.