Documentation ¶ Index ¶ type DBSession func NewDBSession(db *sqlx.DB, userID int) *DBSession func (s *DBSession) LoadSession(context.Context) ([]byte, error) func (s *DBSession) StoreSession(_ context.Context, data []byte) error type Server func New(db *sqlx.DB) *Server func (s *Server) Start() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DBSession ¶ type DBSession struct { // contains filtered or unexported fields } func NewDBSession ¶ func NewDBSession(db *sqlx.DB, userID int) *DBSession func (*DBSession) LoadSession ¶ func (s *DBSession) LoadSession(context.Context) ([]byte, error) LoadSession loads session from memory. func (*DBSession) StoreSession ¶ func (s *DBSession) StoreSession(_ context.Context, data []byte) error StoreSession stores session to memory. type Server ¶ type Server struct { DB *sqlx.DB } func New ¶ func New(db *sqlx.DB) *Server func (*Server) Start ¶ func (s *Server) Start() Source Files ¶ View all Source files server.go storage.go Click to show internal directories. Click to hide internal directories.