Documentation
¶
Index ¶
- func AddHttp(http Http)
- func Init()
- type Context
- type Http
- type Req
- func (this *Req) End(request *http.Request, response http.ResponseWriter)
- func (this *Req) Error(request *http.Request, response http.ResponseWriter) util.Result
- func (this *Req) Execute(request *http.Request, response http.ResponseWriter, dto util.DTO) util.Result
- func (this *Req) GetDTO() util.DTO
- func (this *Req) Method() []network.HttpMethod
- func (this *Req) Path() string
- func (this *Req) SetDTO(request *http.Request, dto util.DTO)
- func (this *Req) Start(request *http.Request, response http.ResponseWriter)
- func (this *Req) Verify(dto util.DTO) bool
- type V1Default
- type V1Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Http ¶
type Http interface {
Path() string
Method() []network.HttpMethod
GetDTO() util.DTO
SetDTO(request *http.Request, dto util.DTO)
Verify(dto util.DTO) bool
Start(request *http.Request, response http.ResponseWriter)
Execute(request *http.Request, response http.ResponseWriter, dto util.DTO) util.Result
Error(request *http.Request, response http.ResponseWriter) util.Result
End(request *http.Request, response http.ResponseWriter)
}
type Req ¶
type Req struct {
}
func (*Req) Method ¶
func (this *Req) Method() []network.HttpMethod
type V1Default ¶
type V1Default struct {
Req
}
func (*V1Default) Method ¶
func (this *V1Default) Method() []network.HttpMethod
Click to show internal directories.
Click to hide internal directories.