Documentation ¶
Index ¶
- Variables
- func LogIn(bcPath string, store sessions.Store, r *http.Request, w http.ResponseWriter) error
- func SaveSession(ID string, bcPath string, cfg *lib.Config)
- type Config
- type Session
- func (s Session) Destroy(store sessions.Store, r *http.Request, w http.ResponseWriter) error
- func (s Session) GetAdminDarc() string
- func (s Session) GetByzCoinID() string
- func (s Session) GetIdentity() string
- func (s Session) GetRoster() string
- func (s Session) GetShortIdentity() string
- func (s Session) IsLogged() bool
- func (s *Session) PrepareAfterUnmarshal() error
- func (s *Session) PrepareBeforeMarshal()
- type TOMLConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionsMap = map[string]*Session{}
SessionsMap holds the session. It is public so that we can save and restore them from the main.go
Functions ¶
Types ¶
type Config ¶
type Config struct { *TOMLConfig TaskManager helpers.TaskManagerI Executor helpers.Executor CloudClient helpers.CloudClient }
Config holds the global configuration of the server
type Session ¶
Session ...
func GetSession ¶
GetSession return the current session. An error can happen if we can't get the session. If the session is not created we return an empty session.
func (Session) GetShortIdentity ¶
GetShortIdentity return the identity stored in the config in a short format
func (*Session) PrepareAfterUnmarshal ¶
PrepareAfterUnmarshal should be called after loading a savec Session
func (*Session) PrepareBeforeMarshal ¶
func (s *Session) PrepareBeforeMarshal()
PrepareBeforeMarshal should be called before the session is marshalled
type TOMLConfig ¶
type TOMLConfig struct { ConfigPath string CatalogID string LtsID string LtsKey string // Standalone mode means that the domanager will take responsibility itself // for making the Darc that controls access to the write instance for new // data sets. When Standalone is false (the default), domanager talks to the // Enclave manager to create the Darc. Standalone bool }
TOMLConfig is a struct matching the configuration parameters that are stored in the 'config.toml' file.
Click to show internal directories.
Click to hide internal directories.