Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2022 Changes in this version + type HttpResponse struct + StatusCode int + func NewMockContext(req *http.Request) (*beegoCtx.Context, *HttpResponse) + func NewMockHttpResponse() *HttpResponse + func (m *HttpResponse) BodyToString() string + func (m *HttpResponse) Header() http.Header + func (m *HttpResponse) JsonUnmarshal(value interface{}) error + func (m *HttpResponse) Reset() + func (m *HttpResponse) Write(bytes []byte) (int, error) + func (m *HttpResponse) WriteHeader(statusCode int) + type SessionProvider struct + Store *SessionStore + func NewSessionProvider(name string) *SessionProvider + func (s *SessionProvider) SessionAll(ctx context.Context) int + func (s *SessionProvider) SessionDestroy(ctx context.Context, sid string) error + func (s *SessionProvider) SessionExist(ctx context.Context, sid string) (bool, error) + func (s *SessionProvider) SessionGC(ctx context.Context) + func (s *SessionProvider) SessionInit(ctx context.Context, gclifetime int64, config string) error + func (s *SessionProvider) SessionRead(ctx context.Context, sid string) (session.Store, error) + func (s *SessionProvider) SessionRegenerate(ctx context.Context, oldsid, sid string) (session.Store, error) + type SessionStore struct + func (s *SessionStore) Delete(ctx context.Context, key interface{}) error + func (s *SessionStore) Flush(ctx context.Context) error + func (s *SessionStore) Get(ctx context.Context, key interface{}) interface{} + func (s *SessionStore) SessionID(ctx context.Context) string + func (s *SessionStore) SessionRelease(ctx context.Context, w http.ResponseWriter) + func (s *SessionStore) Set(ctx context.Context, key, value interface{}) error Other modules containing this package github.com/whiliang/beego-multi-schema/v2