Documentation
¶
Index ¶
- Variables
- type Session
- func (s *Session) AccessRights() model.Role
- func (s *Session) Delete(k string)
- func (s *Session) DeleteAll() error
- func (s *Session) DeleteFile(filename string) error
- func (s *Session) DeleteMemory(k string)
- func (s *Session) FilePath(filename string) string
- func (s *Session) Get(k string, ref interface{}) error
- func (s *Session) GetMemory(k string) (interface{}, bool)
- func (s *Session) GetSessionDir() string
- func (s *Session) Put(k string, val interface{})
- func (s *Session) PutMemory(k string, val interface{})
- func (s *Session) UserID() string
- func (s *Session) WriteFile(filename string, reader io.Reader) error
- type System
- func (me *System) Configured() (bool, error)
- func (me *System) Export(writer io.Writer, s *Session, entities []portable.EntityType) (portable.ProcessedResults, error)
- func (me *System) ExportSingle(writer io.Writer, s *Session, entity portable.EntityType, id ...string) (portable.ProcessedResults, error)
- func (me *System) GetSession(sid string) (*Session, error)
- func (me *System) GetSettings() *model.Settings
- func (me *System) Import(reader io.Reader, s *Session, skipExisting bool) (portable.ProcessedResults, error)
- func (me *System) NewSession(usr *model.User) (*Session, error)
- func (me *System) PutSettings(stngs *model.Settings) error
- func (me *System) Shutdown()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Session ¶
func (*Session) AccessRights ¶
func (*Session) DeleteFile ¶
func (*Session) DeleteMemory ¶
func (*Session) GetSessionDir ¶
type System ¶
type System struct { TestMode bool AllowHttp bool DB *storage.DBSet DS *eio.DocumentServiceClient EmailSender email.EmailSender // contains filtered or unexported fields }
func NewWithSettings ¶
func (*System) Configured ¶
func (*System) Export ¶
func (me *System) Export(writer io.Writer, s *Session, entities []portable.EntityType) (portable.ProcessedResults, error)
func (*System) ExportSingle ¶
func (me *System) ExportSingle(writer io.Writer, s *Session, entity portable.EntityType, id ...string) (portable.ProcessedResults, error)
func (*System) GetSettings ¶
Click to show internal directories.
Click to hide internal directories.