Documentation ¶ Index ¶ func GetSid(ctx context.Context) string func WithSid(ctx context.Context, sid string) context.Context type Body type Context type Header type MapHeader func (m MapHeader) Values() map[string]string type Path type Query type Request type Response type UserInfo Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetSid ¶ func GetSid(ctx context.Context) string func WithSid ¶ func WithSid(ctx context.Context, sid string) context.Context Types ¶ type Body ¶ type Body interface { Len() int io.Reader Scan(obj interface{}) error Bytes() []byte } type Context ¶ type Context interface { GetImpl() interface{} ServerType() string ServerName() string ResetContext(ctx context.Context) Context() context.Context Header(key string) string Request() Request Bind(interface{}) error Response() Response Meta() map[string]interface{} Log() log.Logger Close() } type Header ¶ type Header interface { Get(name string) string Set(name, val string) Values() map[string]string Keys() []string } type MapHeader ¶ type MapHeader xtypes.SMap func (MapHeader) Values ¶ func (m MapHeader) Values() map[string]string type Path ¶ type Path interface { GetURL() *url.URL FullPath() string Params() xtypes.SMap } type Query ¶ type Query interface { Get(name string) string Values() xtypes.SMap Scan(obj interface{}) error String() string } type Request ¶ type Request interface { GetMethod() string GetClientIP() string Header() Header GetHeader(key string) string SetHeader(key, val string) Path() Path Query() Query Body() Body } type Response ¶ type Response interface { Status(int) Header(key, val string) Write(obj interface{}) error WriteBytes([]byte) error } type UserInfo ¶ type UserInfo interface { IsValid() bool } Source Files ¶ View all Source files body.go context.go header.go path.go query.go request.go response.go session.go user.info.go Click to show internal directories. Click to hide internal directories.