Documentation
¶
Index ¶
- func BindWebService(server *web.WebServer)
- type WebServiceGin
- func (this_ *WebServiceGin) ClientIP(request *web.WebRequest) string
- func (this_ *WebServiceGin) GetHeader(request *web.WebRequest, key string) string
- func (this_ *WebServiceGin) GetParam(request *web.WebRequest, key string) string
- func (this_ *WebServiceGin) Init() (err error)
- func (this_ *WebServiceGin) RawQuery(request *web.WebRequest) string
- func (this_ *WebServiceGin) RequestRead(request *web.WebRequest) []byte
- func (this_ *WebServiceGin) ResponseWrite(request *web.WebRequest, data []byte)
- func (this_ *WebServiceGin) ResponseWriteByReader(request *web.WebRequest, reader io.Reader) (written int64, err error)
- func (this_ *WebServiceGin) Serve() (err error)
- func (this_ *WebServiceGin) SetHeader(request *web.WebRequest, key, value string)
- func (this_ *WebServiceGin) SetStatus(request *web.WebRequest, status int)
- func (this_ *WebServiceGin) UserAgent(request *web.WebRequest) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindWebService ¶
Types ¶
type WebServiceGin ¶
type WebServiceGin struct {
// contains filtered or unexported fields
}
func (*WebServiceGin) ClientIP ¶
func (this_ *WebServiceGin) ClientIP(request *web.WebRequest) string
func (*WebServiceGin) GetHeader ¶
func (this_ *WebServiceGin) GetHeader(request *web.WebRequest, key string) string
func (*WebServiceGin) GetParam ¶
func (this_ *WebServiceGin) GetParam(request *web.WebRequest, key string) string
func (*WebServiceGin) Init ¶
func (this_ *WebServiceGin) Init() (err error)
func (*WebServiceGin) RawQuery ¶
func (this_ *WebServiceGin) RawQuery(request *web.WebRequest) string
func (*WebServiceGin) RequestRead ¶
func (this_ *WebServiceGin) RequestRead(request *web.WebRequest) []byte
func (*WebServiceGin) ResponseWrite ¶
func (this_ *WebServiceGin) ResponseWrite(request *web.WebRequest, data []byte)
func (*WebServiceGin) ResponseWriteByReader ¶
func (this_ *WebServiceGin) ResponseWriteByReader(request *web.WebRequest, reader io.Reader) (written int64, err error)
func (*WebServiceGin) Serve ¶
func (this_ *WebServiceGin) Serve() (err error)
func (*WebServiceGin) SetHeader ¶
func (this_ *WebServiceGin) SetHeader(request *web.WebRequest, key, value string)
func (*WebServiceGin) SetStatus ¶
func (this_ *WebServiceGin) SetStatus(request *web.WebRequest, status int)
func (*WebServiceGin) UserAgent ¶
func (this_ *WebServiceGin) UserAgent(request *web.WebRequest) string
Click to show internal directories.
Click to hide internal directories.