Documentation ¶
Index ¶
- Constants
- type Body
- type Counter
- type Request
- func (m *Request) Body() []byte
- func (m *Request) CanProc() bool
- func (m *Request) Context() sctx.Context
- func (m *Request) GetHeader() map[string]string
- func (m *Request) GetMethod() string
- func (m *Request) GetName() string
- func (m *Request) GetRemoteAddr() string
- func (m *Request) GetService() string
- func (m *Request) GetURL() *url.URL
- func (m *Request) Monopoly(monopolyJobs cmap.ConcurrentMap[string, *monopolyJob]) (*monopolyJob, bool, error)
- func (m *Request) Params() map[string]string
- func (m *Request) WithContext(ctx sctx.Context)
- type Response
- func (r *Response) Flush() error
- func (r *Response) Header() xtypes.SMap
- func (r *Response) Size() int
- func (r *Response) Status() int
- func (r *Response) Write(data []byte) (n int, err error)
- func (r *Response) WriteHeader(code int)
- func (r *Response) WriteString(s string) (n int, err error)
- func (r *Response) Written() bool
- type Round
- type Server
Constants ¶
View Source
const (
Proto = "alloter"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
Request 处理任务请求
func (*Request) GetRemoteAddr ¶
func (*Request) WithContext ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Request 处理任务请求
func (*Response) WriteHeader ¶
func (*Response) WriteString ¶
Writes the string into the response body.
Click to show internal directories.
Click to hide internal directories.